Failed Conditions
Pull Request — 2.7 (#8046)
by
unknown
06:06
created
lib/Doctrine/ORM/Tools/SchemaTool.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
                             $targetEntity = current(
232 232
                                 array_filter(
233 233
                                     $classes,
234
-                                    function (ClassMetadata $class) use ($idMapping) : bool {
234
+                                    function(ClassMetadata $class) use ($idMapping) : bool {
235 235
                                         return $class->name === $idMapping['targetEntity'];
236 236
                                     }
237 237
                                 )
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
      */
383 383
     private function addSchemaNameSpaceFromTable(Schema $schema, Table $table): void
384 384
     {
385
-        if (!$this->platform->supportsSchemas()) {
385
+        if ( ! $this->platform->supportsSchemas()) {
386 386
             return;
387 387
         }
388 388
 
@@ -672,8 +672,8 @@  discard block
 block discarded – undo
672 672
 
673 673
             if ( ! $definingClass) {
674 674
                 throw new ORMException(
675
-                    'Column name `' . $joinColumn['referencedColumnName'] . '` referenced for relation from '
676
-                    . $mapping['sourceEntity'] . ' towards ' . $mapping['targetEntity'] . ' does not exist.'
675
+                    'Column name `'.$joinColumn['referencedColumnName'].'` referenced for relation from '
676
+                    . $mapping['sourceEntity'].' towards '.$mapping['targetEntity'].' does not exist.'
677 677
                 );
678 678
             }
679 679
 
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
      */
769 769
     private function gatherColumnOptions(array $mapping) : array
770 770
     {
771
-        if (! isset($mapping['options'])) {
771
+        if ( ! isset($mapping['options'])) {
772 772
             return [];
773 773
         }
774 774
 
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
                 if ($table->hasPrimaryKey()) {
875 875
                     $columns = $table->getPrimaryKey()->getColumns();
876 876
                     if (count($columns) == 1) {
877
-                        $checkSequence = $table->getName() . '_' . $columns[0] . '_seq';
877
+                        $checkSequence = $table->getName().'_'.$columns[0].'_seq';
878 878
                         if ($fullSchema->hasSequence($checkSequence)) {
879 879
                             $visitor->acceptSequence($fullSchema->getSequence($checkSequence));
880 880
                         }
@@ -948,7 +948,7 @@  discard block
 block discarded – undo
948 948
         }
949 949
 
950 950
         // whitelist assets we already know about in $toSchema, use the existing filter otherwise
951
-        $config->setSchemaAssetsFilter(static function ($asset) use ($previousFilter, $toSchema) : bool {
951
+        $config->setSchemaAssetsFilter(static function($asset) use ($previousFilter, $toSchema) : bool {
952 952
             $assetName = $asset instanceof AbstractAsset ? $asset->getName() : $asset;
953 953
 
954 954
             return $toSchema->hasTable($assetName) || $toSchema->hasSequence($assetName) || $previousFilter($asset);
Please login to merge, or discard this patch.