src/mako/application/cli/commands/migrations/Command.php
protected function getOutstanding(): array
	{
		$migrations = $this->getMigrationsFilteredByConnection();

		if(!empty($migrations))
		{
			foreach($this->getMigrated() as $migrated)
			{
				foreach($migrations as $key => $migration)
				{
					if($migrated->package === $migration->package && $migrated->version === $migration->version)
					{
						unset($migrations[$key]);
					}
				}
			}

			usort($migrations, function($a, $b)
			{
				return strcmp($a->version, $b->version);
			});
		}

		return $migrations;
	}
protected function getOutstanding(): array
	{
		$migrations = $this->getMigrationsFilteredByConnection();

		if(!empty($migrations))
		{
			foreach($this->getMigrated() as $migrated)
			{
				foreach($migrations as $key => $migration)
				{
					if($migrated->package === $migration->package && $migrated->version === $migration->version)
					{
						unset($migrations[$key]);
					}
				}
			}

			usort($migrations, function($a, $b)
			{
				return strcmp($a->version, $b->version);
			});
		}

		return $migrations;
	}
protected function getOutstanding ( ) : array { $ migrations = $ this -> getMigrationsFilteredByConnection ( ) ; if ( ! empty ( $ migrations ) ) { foreach ( $ this -> getMigrated ( ) as $ migrated ) { foreach ( $ migrations as $ key => $ migration ) { if ( $ migrated -> package === $ migration -> package && $ migrated -> version === $ migration -> version ) { unset ( $ migrations [ $ key ] ) ; } } } usort ( $ migrations , function ( $ a , $ b ) { return strcmp ( $ a -> version , $ b -> version ) ; } ) ; } return $ migrations ; }
Returns an array of all outstanding migrations.

@return array
Returns an array of all outstanding migrations .