@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $classes = []; |
| 99 | 99 | |
| 100 | 100 | foreach ($this->em->getMetadataFactory()->getAllMetadata() as $metadata) { |
| 101 | - if (! $metadata->isMappedSuperclass && ! (isset($metadata->isEmbeddedClass) && $metadata->isEmbeddedClass)) { |
|
| 101 | + if ( ! $metadata->isMappedSuperclass && ! (isset($metadata->isEmbeddedClass) && $metadata->isEmbeddedClass)) { |
|
| 102 | 102 | $classes[] = $metadata; |
| 103 | 103 | } |
| 104 | 104 | } |
@@ -132,9 +132,9 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | $schemaAssetsFilter = method_exists($connection->getConfiguration(), 'getSchemaAssetsFilter') ? $connection->getConfiguration()->getSchemaAssetsFilter() : null; |
| 134 | 134 | |
| 135 | - foreach($orderedTables as $tbl) { |
|
| 135 | + foreach ($orderedTables as $tbl) { |
|
| 136 | 136 | // If we have a filter expression, check it and skip if necessary |
| 137 | - if (!$emptyFilterExpression && !preg_match($filterExpr, $tbl)) { |
|
| 137 | + if ( ! $emptyFilterExpression && ! preg_match($filterExpr, $tbl)) { |
|
| 138 | 138 | continue; |
| 139 | 139 | } |
| 140 | 140 | |
@@ -144,12 +144,12 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | // Support schema asset filters as presented in |
| 147 | - if (is_callable($schemaAssetsFilter) && !$schemaAssetsFilter($tbl)) { |
|
| 147 | + if (is_callable($schemaAssetsFilter) && ! $schemaAssetsFilter($tbl)) { |
|
| 148 | 148 | continue; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | if ($this->purgeMode === self::PURGE_MODE_DELETE) { |
| 152 | - $connection->executeUpdate("DELETE FROM " . $tbl); |
|
| 152 | + $connection->executeUpdate("DELETE FROM ".$tbl); |
|
| 153 | 153 | } else { |
| 154 | 154 | $connection->executeUpdate($platform->getTruncateTableSQL($tbl, true)); |
| 155 | 155 | } |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | */ |
| 243 | 243 | private function getTableName($class, $platform) |
| 244 | 244 | { |
| 245 | - if (isset($class->table['schema']) && !method_exists($class, 'getSchemaName')) { |
|
| 245 | + if (isset($class->table['schema']) && ! method_exists($class, 'getSchemaName')) { |
|
| 246 | 246 | return $class->table['schema'].'.'.$this->em->getConfiguration()->getQuoteStrategy()->getTableName($class, $platform); |
| 247 | 247 | } |
| 248 | 248 | |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | */ |
| 259 | 259 | private function getJoinTableName($assoc, $class, $platform) |
| 260 | 260 | { |
| 261 | - if (isset($assoc['joinTable']['schema']) && !method_exists($class, 'getSchemaName')) { |
|
| 261 | + if (isset($assoc['joinTable']['schema']) && ! method_exists($class, 'getSchemaName')) { |
|
| 262 | 262 | return $assoc['joinTable']['schema'].'.'.$this->em->getConfiguration()->getQuoteStrategy()->getJoinTableName($assoc, $class, $platform); |
| 263 | 263 | } |
| 264 | 264 | |