@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | $targetEntity = current( |
227 | 227 | array_filter( |
228 | 228 | $classes, |
229 | - function (ClassMetadata $class) use ($idMapping) : bool { |
|
229 | + function(ClassMetadata $class) use ($idMapping) : bool { |
|
230 | 230 | return $class->name === $idMapping['targetEntity']; |
231 | 231 | } |
232 | 232 | ) |
@@ -646,8 +646,8 @@ discard block |
||
646 | 646 | |
647 | 647 | if ( ! $definingClass) { |
648 | 648 | throw new \Doctrine\ORM\ORMException( |
649 | - 'Column name `' . $joinColumn['referencedColumnName'] . '` referenced for relation from ' |
|
650 | - . $mapping['sourceEntity'] . ' towards ' . $mapping['targetEntity'] . ' does not exist.' |
|
649 | + 'Column name `'.$joinColumn['referencedColumnName'].'` referenced for relation from ' |
|
650 | + . $mapping['sourceEntity'].' towards '.$mapping['targetEntity'].' does not exist.' |
|
651 | 651 | ); |
652 | 652 | } |
653 | 653 | |
@@ -742,7 +742,7 @@ discard block |
||
742 | 742 | */ |
743 | 743 | private function gatherColumnOptions(array $mapping) : array |
744 | 744 | { |
745 | - if (! isset($mapping['options'])) { |
|
745 | + if ( ! isset($mapping['options'])) { |
|
746 | 746 | return []; |
747 | 747 | } |
748 | 748 | |
@@ -848,7 +848,7 @@ discard block |
||
848 | 848 | if ($table->hasPrimaryKey()) { |
849 | 849 | $columns = $table->getPrimaryKey()->getColumns(); |
850 | 850 | if (count($columns) == 1) { |
851 | - $checkSequence = $table->getName() . '_' . $columns[0] . '_seq'; |
|
851 | + $checkSequence = $table->getName().'_'.$columns[0].'_seq'; |
|
852 | 852 | if ($fullSchema->hasSequence($checkSequence)) { |
853 | 853 | $visitor->acceptSequence($fullSchema->getSequence($checkSequence)); |
854 | 854 | } |
@@ -922,7 +922,7 @@ discard block |
||
922 | 922 | } |
923 | 923 | |
924 | 924 | // whitelist assets we already know about in $toSchema, use the existing filter otherwise |
925 | - $config->setSchemaAssetsFilter(static function ($asset) use ($previousFilter, $toSchema) : bool { |
|
925 | + $config->setSchemaAssetsFilter(static function($asset) use ($previousFilter, $toSchema) : bool { |
|
926 | 926 | $assetName = $asset instanceof AbstractAsset ? $asset->getName() : $asset; |
927 | 927 | |
928 | 928 | return $toSchema->hasTable($assetName) || $toSchema->hasSequence($assetName) || $previousFilter($asset); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | private function filterCreateTable(array $sqls, string $tableName) : array |
34 | 34 | { |
35 | - return array_filter($sqls, static function (string $sql) use ($tableName) : bool { |
|
35 | + return array_filter($sqls, static function(string $sql) use ($tableName) : bool { |
|
36 | 36 | return strpos($sql, sprintf('CREATE TABLE %s (', $tableName)) === 0; |
37 | 37 | }); |
38 | 38 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | $this->_em->getConnection()->exec(current($sqls)); |
50 | 50 | |
51 | - $sqls = array_filter($tool->getUpdateSchemaSql($classes), static function (string $sql) : bool { |
|
51 | + $sqls = array_filter($tool->getUpdateSchemaSql($classes), static function(string $sql) : bool { |
|
52 | 52 | return (bool) strpos($sql, 'gh7875_my_entity'); |
53 | 53 | }); |
54 | 54 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | ['/^(?!my_enti)/', null], |
72 | 72 | [ |
73 | 73 | null, |
74 | - static function ($assetName) : bool { |
|
74 | + static function($assetName) : bool { |
|
75 | 75 | return $assetName !== 'gh7875_my_entity'; |
76 | 76 | }, |
77 | 77 | ], |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $previousFilter = $config->getSchemaAssetsFilter(); |
101 | 101 | |
102 | 102 | $sqls = $tool->getUpdateSchemaSql($classes); |
103 | - $sqls = array_filter($sqls, static function (string $sql) : bool { |
|
103 | + $sqls = array_filter($sqls, static function(string $sql) : bool { |
|
104 | 104 | return (bool) strpos($sql, 'gh7875_my_entity'); |
105 | 105 | }); |
106 | 106 |