Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/Cache/CollectionCacheKey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache;
7 7
 
@@ -46,6 +46,6 @@  discard block
 block discarded – undo
46 46
         $this->ownerIdentifier  = $ownerIdentifier;
47 47
         $this->entityClass      = (string) $entityClass;
48 48
         $this->association      = (string) $association;
49
-        $this->hash             = str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' .  $association;
49
+        $this->hash             = str_replace('\\', '.', strtolower($entityClass)).'_'.implode(' ', $ownerIdentifier).'__'.$association;
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/MultiGetRegion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityManagerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/NativeQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/RepositoryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Repository;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Repository;
6 6
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function getRepository(EntityManagerInterface $entityManager, $entityName)
28 28
     {
29
-        $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName() . spl_object_hash($entityManager);
29
+        $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName().spl_object_hash($entityManager);
30 30
 
31 31
         if (isset($this->repositoryList[$repositoryHash])) {
32 32
             return $this->repositoryList[$repositoryHash];
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/ToolEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/SchemaTool.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools;
6 6
 
@@ -178,11 +178,11 @@  discard block
 block discarded – undo
178 178
                     $pkColumns = [];
179 179
 
180 180
                     foreach ($class->getProperties() as $fieldName => $property) {
181
-                        if (! ($property instanceof FieldMetadata)) {
181
+                        if ( ! ($property instanceof FieldMetadata)) {
182 182
                             continue;
183 183
                         }
184 184
 
185
-                        if (! $class->isInheritedProperty($fieldName)) {
185
+                        if ( ! $class->isInheritedProperty($fieldName)) {
186 186
                             $columnName = $this->platform->quoteIdentifier($property->getColumnName());
187 187
 
188 188
                             $this->gatherColumn($class, $property, $table);
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
             $processedClasses[$class->getClassName()] = true;
325 325
 
326 326
             foreach ($class->getProperties() as $property) {
327
-                if (! $property instanceof FieldMetadata
327
+                if ( ! $property instanceof FieldMetadata
328 328
                     || ! $property->hasValueGenerator()
329 329
                     || $property->getValueGenerator()->getType() !== GeneratorType::SEQUENCE
330 330
                     || $class->getClassName() !== $class->getRootClassName()) {
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
             }
347 347
         }
348 348
 
349
-        if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas() ) {
349
+        if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas()) {
350 350
             $schema->visit(new RemoveNamespacedAssets());
351 351
         }
352 352
 
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
                 break;
389 389
         }
390 390
 
391
-        if (!empty($discrColumn->getColumnDefinition())) {
391
+        if ( ! empty($discrColumn->getColumnDefinition())) {
392 392
             $options['columnDefinition'] = $discrColumn->getColumnDefinition();
393 393
         }
394 394
 
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
         $pkColumns = [];
410 410
 
411 411
         foreach ($class->getProperties() as $fieldName => $property) {
412
-            if (! ($property instanceof FieldMetadata)) {
412
+            if ( ! ($property instanceof FieldMetadata)) {
413 413
                 continue;
414 414
             }
415 415
 
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
     private function gatherRelationsSql($class, $table, $schema, &$addedFks, &$blacklistedFks)
528 528
     {
529 529
         foreach ($class->getProperties() as $fieldName => $property) {
530
-            if (! ($property instanceof AssociationMetadata)) {
530
+            if ( ! ($property instanceof AssociationMetadata)) {
531 531
                 continue;
532 532
             }
533 533
 
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
                 continue;
536 536
             }
537 537
 
538
-            if (! $property->isOwningSide()) {
538
+            if ( ! $property->isOwningSide()) {
539 539
                 continue;
540 540
             }
541 541
 
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
         $idColumns        = $class->getIdentifierColumns($this->em);
626 626
         $idColumnNameList = array_keys($idColumns);
627 627
 
628
-        if (! in_array($referencedColumnName, $idColumnNameList)) {
628
+        if ( ! in_array($referencedColumnName, $idColumnNameList)) {
629 629
             return null;
630 630
         }
631 631
 
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
         foreach ($class->getIdentifierFieldNames() as $fieldName) {
634 634
             $property = $class->getProperty($fieldName);
635 635
 
636
-            if (! ($property instanceof AssociationMetadata)) {
636
+            if ( ! ($property instanceof AssociationMetadata)) {
637 637
                 continue;
638 638
             }
639 639
 
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
                 $property  = $definingClass->getProperty($referencedFieldName);
716 716
                 $columnDef = null;
717 717
 
718
-                if (!empty($joinColumn->getColumnDefinition())) {
718
+                if ( ! empty($joinColumn->getColumnDefinition())) {
719 719
                     $columnDef = $joinColumn->getColumnDefinition();
720 720
                 } elseif ($property->getColumnDefinition()) {
721 721
                     $columnDef = $property->getColumnDefinition();
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
 
724 724
                 $columnType    = $property->getTypeName();
725 725
                 $columnOptions = [
726
-                    'notnull'          => !$joinColumn->isNullable(),
726
+                    'notnull'          => ! $joinColumn->isNullable(),
727 727
                     'columnDefinition' => $columnDef,
728 728
                 ];
729 729
 
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
                 $uniqueConstraints[] = ['columns' => [$quotedColumnName]];
750 750
             }
751 751
 
752
-            if (!empty($joinColumn->getOnDelete())) {
752
+            if ( ! empty($joinColumn->getOnDelete())) {
753 753
                 $fkOptions['onDelete'] = $joinColumn->getOnDelete();
754 754
             }
755 755
         }
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
             }
778 778
 
779 779
             $blacklistedFks[$compositeName] = true;
780
-        } elseif (!isset($blacklistedFks[$compositeName])) {
780
+        } elseif ( ! isset($blacklistedFks[$compositeName])) {
781 781
             $addedFks[$compositeName] = [
782 782
                 'foreignTableName' => $foreignTableName,
783 783
                 'foreignColumns'   => $foreignColumns
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
                 if ($table->hasPrimaryKey()) {
889 889
                     $columns = $table->getPrimaryKey()->getColumns();
890 890
                     if (count($columns) == 1) {
891
-                        $checkSequence = $table->getName() . "_" . $columns[0] . "_seq";
891
+                        $checkSequence = $table->getName()."_".$columns[0]."_seq";
892 892
                         if ($fullSchema->hasSequence($checkSequence)) {
893 893
                             $visitor->acceptSequence($fullSchema->getSequence($checkSequence));
894 894
                         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/ResolveTargetEntityListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools;
6 6
 
Please login to merge, or discard this patch.