@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | protected $schemaProvider; |
| 45 | 45 | |
| 46 | - public function __construct(SchemaProviderInterface $schemaProvider=null) |
|
| 46 | + public function __construct(SchemaProviderInterface $schemaProvider = null) |
|
| 47 | 47 | { |
| 48 | 48 | $this->schemaProvider = $schemaProvider; |
| 49 | 49 | parent::__construct(); |
@@ -93,10 +93,10 @@ discard block |
||
| 93 | 93 | $toSchema = $this->getSchemaProvider()->createSchema(); |
| 94 | 94 | |
| 95 | 95 | //Not using value from options, because filters can be set from config.yml |
| 96 | - if ( ! $isDbalOld && $filterExpr = $conn->getConfiguration()->getFilterSchemaAssetsExpression()) { |
|
| 96 | + if (!$isDbalOld && $filterExpr = $conn->getConfiguration()->getFilterSchemaAssetsExpression()) { |
|
| 97 | 97 | foreach ($toSchema->getTables() as $table) { |
| 98 | 98 | $tableName = $table->getName(); |
| 99 | - if ( ! preg_match($filterExpr, $this->resolveTableName($tableName))) { |
|
| 99 | + if (!preg_match($filterExpr, $this->resolveTableName($tableName))) { |
|
| 100 | 100 | $toSchema->dropTable($tableName); |
| 101 | 101 | } |
| 102 | 102 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $up = $this->buildCodeFromSql($configuration, $input, $fromSchema->getMigrateToSql($toSchema, $platform)); |
| 106 | 106 | $down = $this->buildCodeFromSql($configuration, $input, $fromSchema->getMigrateFromSql($toSchema, $platform)); |
| 107 | 107 | |
| 108 | - if (! $up && ! $down) { |
|
| 108 | + if (!$up && !$down) { |
|
| 109 | 109 | $output->writeln('No changes detected in your mapping information.', 'ERROR'); |
| 110 | 110 | |
| 111 | 111 | return; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | if ($input->hasOption('formatted')) { |
| 130 | 130 | if (!class_exists('\SqlFormatter')) { |
| 131 | 131 | throw new \InvalidArgumentException( |
| 132 | - 'The "--formatted" option can only be used if the sql formatter is installed.'. |
|
| 132 | + 'The "--formatted" option can only be used if the sql formatter is installed.' . |
|
| 133 | 133 | 'Please run "composer require jdorn/sql-formatter".' |
| 134 | 134 | ); |
| 135 | 135 | } |