src/mako/application/cli/commands/migrations/Command.php
protected function outputMigrationList(array $migrations): void
	{
		$tableBody = [];

		foreach($migrations as $migration)
		{
			$name = $migration->version;

			if(!empty($migration->package))
			{
				$name .= ' (' . $migration->package . ')';
			}

			$description = $this->resolve($migration)->getDescription();

			$tableBody[] = [$name, $description];
		}

		$this->table(['Migration', 'Description'], $tableBody);
	}
protected function outputMigrationList(array $migrations): void
	{
		$tableBody = [];

		foreach($migrations as $migration)
		{
			$name = $migration->version;

			if(!empty($migration->package))
			{
				$name .= ' (' . $migration->package . ')';
			}

			$description = $this->resolve($migration)->getDescription();

			$tableBody[] = [$name, $description];
		}

		$this->table(['Migration', 'Description'], $tableBody);
	}
protected function outputMigrationList ( array $ migrations ) : void { $ tableBody = [ ] ; foreach ( $ migrations as $ migration ) { $ name = $ migration -> version ; if ( ! empty ( $ migration -> package ) ) { $ name .= ' (' . $ migration -> package . ')' ; } $ description = $ this -> resolve ( $ migration ) -> getDescription ( ) ; $ tableBody [ ] = [ $ name , $ description ] ; } $ this -> table ( [ 'Migration' , 'Description' ] , $ tableBody ) ; }
Outputs a migration list.

@param array $migrations Migrations
Outputs a migration list .