@@ -93,16 +93,16 @@ 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 | } |
103 | 103 | } |
104 | 104 | |
105 | - $up = $this->buildCodeFromSql( |
|
105 | + $up = $this->buildCodeFromSql( |
|
106 | 106 | $configuration, |
107 | 107 | $fromSchema->getMigrateToSql($toSchema, $platform), |
108 | 108 | $input->getOption('formatted'), |
@@ -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.'); |
120 | 120 | |
121 | 121 | return; |
@@ -138,9 +138,9 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | if ($formatted) { |
141 | - if ( ! class_exists('\SqlFormatter')) { |
|
141 | + if (!class_exists('\SqlFormatter')) { |
|
142 | 142 | throw new \InvalidArgumentException( |
143 | - 'The "--formatted" option can only be used if the sql formatter is installed.' . |
|
143 | + 'The "--formatted" option can only be used if the sql formatter is installed.'. |
|
144 | 144 | 'Please run "composer require jdorn/sql-formatter".' |
145 | 145 | ); |
146 | 146 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | $code[] = sprintf("\$this->addSql(%s);", var_export($query, true)); |
156 | 156 | } |
157 | 157 | |
158 | - if ( ! empty($code)) { |
|
158 | + if (!empty($code)) { |
|
159 | 159 | array_unshift( |
160 | 160 | $code, |
161 | 161 | sprintf( |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | |
173 | 173 | private function getSchemaProvider() |
174 | 174 | { |
175 | - if ( ! $this->schemaProvider) { |
|
175 | + if (!$this->schemaProvider) { |
|
176 | 176 | $this->schemaProvider = new OrmSchemaProvider($this->getHelper('entityManager')->getEntityManager()); |
177 | 177 | } |
178 | 178 |