@@ -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 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $input->getOption('line-length') |
116 | 116 | ); |
117 | 117 | |
118 | - if (! $up && ! $down) { |
|
118 | + if (!$up && !$down) { |
|
119 | 119 | $output->writeln('No changes detected in your mapping information.', 'ERROR'); |
120 | 120 | |
121 | 121 | return; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $output->writeln(sprintf('Generated new migration class to "<info>%s</info>" from schema differences.', $path)); |
128 | 128 | } |
129 | 129 | |
130 | - private function buildCodeFromSql(Configuration $configuration, array $sql, $formatted=false, $lineLength=120) |
|
130 | + private function buildCodeFromSql(Configuration $configuration, array $sql, $formatted = false, $lineLength = 120) |
|
131 | 131 | { |
132 | 132 | $currentPlatform = $configuration->getConnection()->getDatabasePlatform()->getName(); |
133 | 133 | $code = []; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | if ($formatted) { |
140 | 140 | if (!class_exists('\SqlFormatter')) { |
141 | 141 | throw new \InvalidArgumentException( |
142 | - 'The "--formatted" option can only be used if the sql formatter is installed.'. |
|
142 | + 'The "--formatted" option can only be used if the sql formatter is installed.' . |
|
143 | 143 | 'Please run "composer require jdorn/sql-formatter".' |
144 | 144 | ); |
145 | 145 | } |