Failed Conditions
Pull Request — master (#7242)
by Gabriel
08:46
created
lib/Doctrine/ORM/Mapping/Factory/AbstractClassMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
      */
152 152
     private function getOrCreateClassMetadataDefinition(string $className, ?ClassMetadata $parent) : ClassMetadataDefinition
153 153
     {
154
-        if (! isset($this->definitions[$className])) {
154
+        if ( ! isset($this->definitions[$className])) {
155 155
             $this->definitions[$className] = $this->definitionFactory->build($className, $parent);
156 156
         }
157 157
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/DefaultNamingStrategy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null)
41 41
     {
42
-        return $propertyName . '_' . $embeddedColumnName;
42
+        return $propertyName.'_'.$embeddedColumnName;
43 43
     }
44 44
 
45 45
     /**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function joinColumnName($propertyName, $className = null)
57 57
     {
58
-        return $propertyName . '_' . $this->referenceColumnName();
58
+        return $propertyName.'_'.$this->referenceColumnName();
59 59
     }
60 60
 
61 61
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
65 65
     {
66
-        return strtolower($this->classToTableName($sourceEntity) . '_' .
66
+        return strtolower($this->classToTableName($sourceEntity).'_'.
67 67
             $this->classToTableName($targetEntity));
68 68
     }
69 69
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function joinKeyColumnName($entityName, $referencedColumnName = null)
74 74
     {
75
-        return strtolower($this->classToTableName($entityName) . '_' .
75
+        return strtolower($this->classToTableName($entityName).'_'.
76 76
             ($referencedColumnName ?: $this->referenceColumnName()));
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/MappingException.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public static function pathRequired()
24 24
     {
25
-        return new self('Specifying the paths to your entities is required ' .
25
+        return new self('Specifying the paths to your entities is required '.
26 26
             'in the AnnotationDriver to retrieve all class names.');
27 27
     }
28 28
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public static function missingQueryMapping($entity, $queryName)
214 214
     {
215
-        return new self('Query named "' . $queryName . '" in "' . $entity . ' requires a result class or result set mapping.');
215
+        return new self('Query named "'.$queryName.'" in "'.$entity.' requires a result class or result set mapping.');
216 216
     }
217 217
 
218 218
     /**
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      */
224 224
     public static function missingResultSetMappingEntity($entity, $resultName)
225 225
     {
226
-        return new self('Result set mapping named "' . $resultName . '" in "' . $entity . ' requires a entity class name.');
226
+        return new self('Result set mapping named "'.$resultName.'" in "'.$entity.' requires a entity class name.');
227 227
     }
228 228
 
229 229
     /**
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public static function missingResultSetMappingFieldName($entity, $resultName)
236 236
     {
237
-        return new self('Result set mapping named "' . $resultName . '" in "' . $entity . ' requires a field name.');
237
+        return new self('Result set mapping named "'.$resultName.'" in "'.$entity.' requires a field name.');
238 238
     }
239 239
 
240 240
     /**
@@ -281,8 +281,8 @@  discard block
 block discarded – undo
281 281
     {
282 282
         $message = sprintf("The mapping of field '%s' is invalid: The option '%s' is required.", $field, $expectedOption);
283 283
 
284
-        if (! empty($hint)) {
285
-            $message .= ' (Hint: ' . $hint . ')';
284
+        if ( ! empty($hint)) {
285
+            $message .= ' (Hint: '.$hint.')';
286 286
         }
287 287
 
288 288
         return new self($message);
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     public static function reflectionFailure($entity, \ReflectionException $previousException)
313 313
     {
314
-        return new self('An error occurred in ' . $entity, 0, $previousException);
314
+        return new self('An error occurred in '.$entity, 0, $previousException);
315 315
     }
316 316
 
317 317
     /**
@@ -322,8 +322,8 @@  discard block
 block discarded – undo
322 322
      */
323 323
     public static function joinColumnMustPointToMappedField($className, $joinColumn)
324 324
     {
325
-        return new self('The column ' . $joinColumn . ' must be mapped to a field in class '
326
-            . $className . ' since it is referenced by a join column of another class.');
325
+        return new self('The column '.$joinColumn.' must be mapped to a field in class '
326
+            . $className.' since it is referenced by a join column of another class.');
327 327
     }
328 328
 
329 329
     /**
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
      */
358 358
     public static function propertyTypeIsRequired($className, $propertyName)
359 359
     {
360
-        return new self("The attribute 'type' is required for the column description of property " . $className . '::$' . $propertyName . '.');
360
+        return new self("The attribute 'type' is required for the column description of property ".$className.'::$'.$propertyName.'.');
361 361
     }
362 362
 
363 363
     /**
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
      */
368 368
     public static function tableIdGeneratorNotImplemented($className)
369 369
     {
370
-        return new self('TableIdGenerator is not yet implemented for use with class ' . $className);
370
+        return new self('TableIdGenerator is not yet implemented for use with class '.$className);
371 371
     }
372 372
 
373 373
     /**
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      */
394 394
     public static function duplicateQueryMapping($entity, $queryName)
395 395
     {
396
-        return new self('Query named "' . $queryName . '" in "' . $entity . '" was already declared, but it must be declared only once');
396
+        return new self('Query named "'.$queryName.'" in "'.$entity.'" was already declared, but it must be declared only once');
397 397
     }
398 398
 
399 399
     /**
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
      */
405 405
     public static function duplicateResultSetMapping($entity, $resultName)
406 406
     {
407
-        return new self('Result set mapping named "' . $resultName . '" in "' . $entity . '" was already declared, but it must be declared only once');
407
+        return new self('Result set mapping named "'.$resultName.'" in "'.$entity.'" was already declared, but it must be declared only once');
408 408
     }
409 409
 
410 410
     /**
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
      */
415 415
     public static function singleIdNotAllowedOnCompositePrimaryKey($entity)
416 416
     {
417
-        return new self('Single id is not allowed on composite primary key in entity ' . $entity);
417
+        return new self('Single id is not allowed on composite primary key in entity '.$entity);
418 418
     }
419 419
 
420 420
     /**
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      */
425 425
     public static function noIdDefined($entity)
426 426
     {
427
-        return new self('No ID defined for entity ' . $entity);
427
+        return new self('No ID defined for entity '.$entity);
428 428
     }
429 429
 
430 430
     /**
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      */
435 435
     public static function unsupportedOptimisticLockingType($unsupportedType)
436 436
     {
437
-        return new self('Locking type "' . $unsupportedType . '" is not supported by Doctrine.');
437
+        return new self('Locking type "'.$unsupportedType.'" is not supported by Doctrine.');
438 438
     }
439 439
 
440 440
     /**
@@ -444,13 +444,13 @@  discard block
 block discarded – undo
444 444
      */
445 445
     public static function fileMappingDriversRequireConfiguredDirectoryPath($path = null)
446 446
     {
447
-        if (! empty($path)) {
448
-            $path = '[' . $path . ']';
447
+        if ( ! empty($path)) {
448
+            $path = '['.$path.']';
449 449
         }
450 450
 
451 451
         return new self(
452
-            'File mapping drivers must have a valid directory path, ' .
453
-            'however the given path ' . $path . ' seems to be incorrect!'
452
+            'File mapping drivers must have a valid directory path, '.
453
+            'however the given path '.$path.' seems to be incorrect!'
454 454
         );
455 455
     }
456 456
 
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
     public static function invalidClassInDiscriminatorMap($className, $owningClass)
467 467
     {
468 468
         return new self(sprintf(
469
-            "Entity class '%s' used in the discriminator map of class '%s' " .
469
+            "Entity class '%s' used in the discriminator map of class '%s' ".
470 470
             'does not exist.',
471 471
             $className,
472 472
             $owningClass
@@ -483,15 +483,15 @@  discard block
 block discarded – undo
483 483
     public static function duplicateDiscriminatorEntry($className, array $entries, array $map)
484 484
     {
485 485
         return new self(
486
-            'The entries ' . implode(', ', $entries) . " in discriminator map of class '" . $className . "' is duplicated. " .
487
-            'If the discriminator map is automatically generated you have to convert it to an explicit discriminator map now. ' .
488
-            'The entries of the current map are: @DiscriminatorMap({' . implode(', ', array_map(
489
-                function ($a, $b) {
486
+            'The entries '.implode(', ', $entries)." in discriminator map of class '".$className."' is duplicated. ".
487
+            'If the discriminator map is automatically generated you have to convert it to an explicit discriminator map now. '.
488
+            'The entries of the current map are: @DiscriminatorMap({'.implode(', ', array_map(
489
+                function($a, $b) {
490 490
                     return sprintf("'%s': '%s'", $a, $b);
491 491
                 },
492 492
                 array_keys($map),
493 493
                 array_values($map)
494
-            )) . '})'
494
+            )).'})'
495 495
         );
496 496
     }
497 497
 
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
     public static function sqlConversionNotAllowedForPrimaryKeyProperties($className, Property $property)
555 555
     {
556 556
         return new self(sprintf(
557
-            'It is not possible to set id field "%s" to type "%s" in entity class "%s". ' .
557
+            'It is not possible to set id field "%s" to type "%s" in entity class "%s". '.
558 558
             'The type "%s" requires conversion SQL which is not allowed for identifiers.',
559 559
             $property->getName(),
560 560
             $property->getTypeName(),
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
      */
591 591
     public static function duplicateColumnName($className, $columnName)
592 592
     {
593
-        return new self("Duplicate definition of column '" . $columnName . "' on entity '" . $className . "' in a field or discriminator column mapping.");
593
+        return new self("Duplicate definition of column '".$columnName."' on entity '".$className."' in a field or discriminator column mapping.");
594 594
     }
595 595
 
596 596
     /**
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
      */
602 602
     public static function illegalToManyAssociationOnMappedSuperclass($className, $field)
603 603
     {
604
-        return new self("It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass '" . $className . '#' . $field . "'.");
604
+        return new self("It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass '".$className.'#'.$field."'.");
605 605
     }
606 606
 
607 607
     /**
@@ -613,8 +613,8 @@  discard block
 block discarded – undo
613 613
      */
614 614
     public static function cannotMapCompositePrimaryKeyEntitiesAsForeignId($className, $targetEntity, $targetField)
615 615
     {
616
-        return new self("It is not possible to map entity '" . $className . "' with a composite primary key " .
617
-            "as part of the primary key of another entity '" . $targetEntity . '#' . $targetField . "'.");
616
+        return new self("It is not possible to map entity '".$className."' with a composite primary key ".
617
+            "as part of the primary key of another entity '".$targetEntity.'#'.$targetField."'.");
618 618
     }
619 619
 
620 620
     /**
@@ -668,8 +668,8 @@  discard block
 block discarded – undo
668 668
      */
669 669
     public static function illegalOrphanRemoval($className, $field)
670 670
     {
671
-        return new self('Orphan removal is only allowed on one-to-one and one-to-many ' .
672
-            'associations, but ' . $className . '#' . $field . ' is not.');
671
+        return new self('Orphan removal is only allowed on one-to-one and one-to-many '.
672
+            'associations, but '.$className.'#'.$field.' is not.');
673 673
     }
674 674
 
675 675
     /**
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
      */
702 702
     public static function noInheritanceOnMappedSuperClass($className)
703 703
     {
704
-        return new self("It is not supported to define inheritance information on a mapped superclass '" . $className . "'.");
704
+        return new self("It is not supported to define inheritance information on a mapped superclass '".$className."'.");
705 705
     }
706 706
 
707 707
     /**
@@ -713,8 +713,8 @@  discard block
 block discarded – undo
713 713
     public static function mappedClassNotPartOfDiscriminatorMap($className, $rootClassName)
714 714
     {
715 715
         return new self(
716
-            "Entity '" . $className . "' has to be part of the discriminator map of '" . $rootClassName . "' " .
717
-            "to be properly mapped in the inheritance hierarchy. Alternatively you can make '" . $className . "' an abstract class " .
716
+            "Entity '".$className."' has to be part of the discriminator map of '".$rootClassName."' ".
717
+            "to be properly mapped in the inheritance hierarchy. Alternatively you can make '".$className."' an abstract class ".
718 718
             'to avoid this exception from occurring.'
719 719
         );
720 720
     }
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
      */
728 728
     public static function lifecycleCallbackMethodNotFound($className, $methodName)
729 729
     {
730
-        return new self("Entity '" . $className . "' has no method '" . $methodName . "' to be registered as lifecycle callback.");
730
+        return new self("Entity '".$className."' has no method '".$methodName."' to be registered as lifecycle callback.");
731 731
     }
732 732
 
733 733
     /**
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
      */
774 774
     public static function invalidFetchMode($className, $annotation)
775 775
     {
776
-        return new self("Entity '" . $className . "' has a mapping with invalid fetch mode '" . $annotation . "'");
776
+        return new self("Entity '".$className."' has a mapping with invalid fetch mode '".$annotation."'");
777 777
     }
778 778
 
779 779
     /**
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
      */
784 784
     public static function compositeKeyAssignedIdGeneratorRequired($className)
785 785
     {
786
-        return new self("Entity '" . $className . "' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported.");
786
+        return new self("Entity '".$className."' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported.");
787 787
     }
788 788
 
789 789
     /**
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
      */
796 796
     public static function invalidTargetEntityClass($targetEntity, $sourceEntity, $associationName)
797 797
     {
798
-        return new self("The target-entity '" . $targetEntity . "' cannot be found in '" . $sourceEntity . '#' . $associationName . "'.");
798
+        return new self("The target-entity '".$targetEntity."' cannot be found in '".$sourceEntity.'#'.$associationName."'.");
799 799
     }
800 800
 
801 801
     /**
@@ -807,8 +807,8 @@  discard block
 block discarded – undo
807 807
      */
808 808
     public static function invalidCascadeOption(array $cascades, $className, $propertyName)
809 809
     {
810
-        $cascades = implode(', ', array_map(function ($e) {
811
-            return "'" . $e . "'";
810
+        $cascades = implode(', ', array_map(function($e) {
811
+            return "'".$e."'";
812 812
         }, $cascades));
813 813
 
814 814
         return new self(sprintf(
@@ -841,7 +841,7 @@  discard block
 block discarded – undo
841 841
     {
842 842
         return new self(
843 843
             sprintf(
844
-                'Infinite nesting detected for embedded property %s::%s. ' .
844
+                'Infinite nesting detected for embedded property %s::%s. '.
845 845
                 'You cannot embed an embeddable from the same type inside an embeddable.',
846 846
                 $className,
847 847
                 $propertyName
@@ -856,7 +856,7 @@  discard block
 block discarded – undo
856 856
     {
857 857
         return new self(
858 858
             sprintf(
859
-                'Class %s not found in namespaces %s.' .
859
+                'Class %s not found in namespaces %s.'.
860 860
                 $className,
861 861
                 implode(', ', $namespaces)
862 862
             )
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/UuidGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public function generate(EntityManagerInterface $em, ?object $entity)
18 18
     {
19 19
         $conn = $em->getConnection();
20
-        $sql  = 'SELECT ' . $conn->getDatabasePlatform()->getGuidExpression();
20
+        $sql  = 'SELECT '.$conn->getDatabasePlatform()->getGuidExpression();
21 21
 
22 22
         return $conn->query($sql)->fetchColumn(0);
23 23
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/CompositeValueGenerationPlan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function executeDeferred(EntityManagerInterface $entityManager, object $entity) : void
40 40
     {
41 41
         foreach ($this->executors as $executor) {
42
-            if (! $executor->isDeferred()) {
42
+            if ( ! $executor->isDeferred()) {
43 43
                 continue;
44 44
             }
45 45
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/TableGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                         $this->allocationSize
59 59
                     );
60 60
 
61
-                    if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel+1]) !== 1) {
61
+                    if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel + 1]) !== 1) {
62 62
                         // no affected rows, concurrency issue, throw exception
63 63
                     }
64 64
                 } else {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/PersistentObject.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         if ($entityManager !== self::$entityManager) {
79 79
             throw new \RuntimeException(
80
-                'Trying to use PersistentObject with different EntityManager instances. ' .
80
+                'Trying to use PersistentObject with different EntityManager instances. '.
81 81
                 'Was PersistentObject::setEntityManager() called?'
82 82
             );
83 83
         }
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
 
103 103
         $property = $this->cm->getProperty($field);
104 104
 
105
-        if (! $property) {
106
-            throw new \BadMethodCallException("no field with name '" . $field . "' exists on '" . $this->cm->getClassName() . "'");
105
+        if ( ! $property) {
106
+            throw new \BadMethodCallException("no field with name '".$field."' exists on '".$this->cm->getClassName()."'");
107 107
         }
108 108
 
109 109
         switch (true) {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                 $targetClassName = $property->getTargetEntity();
116 116
 
117 117
                 if ($args[0] !== null && ! ($args[0] instanceof $targetClassName)) {
118
-                    throw new \InvalidArgumentException("Expected persistent object of type '" . $targetClassName . "'");
118
+                    throw new \InvalidArgumentException("Expected persistent object of type '".$targetClassName."'");
119 119
                 }
120 120
 
121 121
                 $this->{$field} = $args[0];
@@ -141,8 +141,8 @@  discard block
 block discarded – undo
141 141
 
142 142
         $property = $this->cm->getProperty($field);
143 143
 
144
-        if (! $property) {
145
-            throw new \BadMethodCallException("no field with name '" . $field . "' exists on '" . $this->cm->getClassName() . "'");
144
+        if ( ! $property) {
145
+            throw new \BadMethodCallException("no field with name '".$field."' exists on '".$this->cm->getClassName()."'");
146 146
         }
147 147
 
148 148
         return $this->{$field};
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $mappedByField    = $property->getMappedBy();
165 165
         $targetMetadata   = self::$entityManager->getClassMetadata($property->getTargetEntity());
166 166
         $targetProperty   = $targetMetadata->getProperty($mappedByField);
167
-        $setterMethodName = ($targetProperty instanceof ToManyAssociationMetadata ? 'add' : 'set') . $mappedByField;
167
+        $setterMethodName = ($targetProperty instanceof ToManyAssociationMetadata ? 'add' : 'set').$mappedByField;
168 168
 
169 169
         $targetObject->{$setterMethodName}($this);
170 170
     }
@@ -186,21 +186,21 @@  discard block
 block discarded – undo
186 186
 
187 187
         $property = $this->cm->getProperty($field);
188 188
 
189
-        if (! $property) {
190
-            throw new \BadMethodCallException("no field with name '" . $field . "' exists on '" . $this->cm->getClassName() . "'");
189
+        if ( ! $property) {
190
+            throw new \BadMethodCallException("no field with name '".$field."' exists on '".$this->cm->getClassName()."'");
191 191
         }
192 192
 
193
-        if (! ($property instanceof ToManyAssociationMetadata)) {
194
-            throw new \BadMethodCallException('There is no method add' . $field . '() on ' . $this->cm->getClassName());
193
+        if ( ! ($property instanceof ToManyAssociationMetadata)) {
194
+            throw new \BadMethodCallException('There is no method add'.$field.'() on '.$this->cm->getClassName());
195 195
         }
196 196
 
197 197
         $targetClassName = $property->getTargetEntity();
198 198
 
199
-        if (! ($args[0] instanceof $targetClassName)) {
200
-            throw new \InvalidArgumentException("Expected persistent object of type '" . $targetClassName . "'");
199
+        if ( ! ($args[0] instanceof $targetClassName)) {
200
+            throw new \InvalidArgumentException("Expected persistent object of type '".$targetClassName."'");
201 201
         }
202 202
 
203
-        if (! ($this->{$field} instanceof Collection)) {
203
+        if ( ! ($this->{$field} instanceof Collection)) {
204 204
             $this->{$field} = new ArrayCollection($this->{$field} ?: []);
205 205
         }
206 206
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
             return;
223 223
         }
224 224
 
225
-        if (! self::$entityManager) {
225
+        if ( ! self::$entityManager) {
226 226
             throw new \RuntimeException('No runtime entity manager set. Call PersistentObject#setEntityManager().');
227 227
         }
228 228
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
                 return $this->add($field, $args);
256 256
 
257 257
             default:
258
-                throw new \BadMethodCallException('There is no method ' . $method . ' on ' . $this->cm->getClassName());
258
+                throw new \BadMethodCallException('There is no method '.$method.' on '.$this->cm->getClassName());
259 259
         }
260 260
     }
261 261
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Event/PreUpdateEventArgs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      */
100 100
     private function assertValidField($field)
101 101
     {
102
-        if (! isset($this->entityChangeSet[$field])) {
102
+        if ( ! isset($this->entityChangeSet[$field])) {
103 103
             throw new \InvalidArgumentException(sprintf(
104 104
                 'Field "%s" is not a valid field of the entity "%s" in PreUpdateEventArgs.',
105 105
                 $field,
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Utility/PersisterHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@
 block discarded – undo
57 57
 
58 58
         // iterate over association mappings
59 59
         foreach ($class->getDeclaredPropertiesIterator() as $association) {
60
-            if (! ($association instanceof AssociationMetadata)) {
60
+            if ( ! ($association instanceof AssociationMetadata)) {
61 61
                 continue;
62 62
             }
63 63
 
64 64
             // resolve join columns over to-one or to-many
65 65
             $targetClass = $em->getClassMetadata($association->getTargetEntity());
66 66
 
67
-            if (! $association->isOwningSide()) {
67
+            if ( ! $association->isOwningSide()) {
68 68
                 $association = $targetClass->getProperty($association->getMappedBy());
69 69
                 $targetClass = $em->getClassMetadata($association->getTargetEntity());
70 70
             }
Please login to merge, or discard this patch.