Completed
Pull Request — master (#5866)
by Šimon
14:49
created
lib/Doctrine/ORM/Mapping/Builder/ClassMetadataBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
      */
151 151
     public function addIndex(array $columns, $name)
152 152
     {
153
-        if (!isset($this->cm->table['indexes'])) {
153
+        if ( ! isset($this->cm->table['indexes'])) {
154 154
             $this->cm->table['indexes'] = array();
155 155
         }
156 156
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     /**
144 144
      * Adds Index.
145 145
      *
146
-     * @param array  $columns
146
+     * @param string[]  $columns
147 147
      * @param string $name
148 148
      *
149 149
      * @return ClassMetadataBuilder
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * Adds Unique Constraint.
164 164
      *
165
-     * @param array  $columns
165
+     * @param string[]  $columns
166 166
      * @param string $name
167 167
      *
168 168
      * @return ClassMetadataBuilder
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     protected function onNotFoundMetadata($className)
107 107
     {
108
-        if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) {
108
+        if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) {
109 109
             return;
110 110
         }
111 111
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             $this->completeIdGeneratorMapping($class);
163 163
         }
164 164
 
165
-        if (!$class->isMappedSuperclass) {
165
+        if ( ! $class->isMappedSuperclass) {
166 166
             foreach ($class->embeddedClasses as $property => $embeddableClass) {
167 167
 
168 168
                 if (isset($embeddableClass['inherited'])) {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
                 $identifier = $embeddableMetadata->getIdentifier();
189 189
 
190
-                if (! empty($identifier)) {
190
+                if ( ! empty($identifier)) {
191 191
                     $this->inheritIdGeneratorMapping($class, $embeddableMetadata);
192 192
                 }
193 193
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     protected function validateRuntimeMetadata($class, $parent)
259 259
     {
260
-        if ( ! $class->reflClass ) {
260
+        if ( ! $class->reflClass) {
261 261
             // only validate if there is a reflection class instance
262 262
             return;
263 263
         }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         $class->validateLifecycleCallbacks($this->getReflectionService());
268 268
 
269 269
         // verify inheritance
270
-        if ( ! $class->isMappedSuperclass && !$class->isInheritanceTypeNone()) {
270
+        if ( ! $class->isMappedSuperclass && ! $class->isInheritanceTypeNone()) {
271 271
             if ( ! $parent) {
272 272
                 if (count($class->discriminatorMap) == 0) {
273 273
                     throw MappingException::missingDiscriminatorMap($class->name);
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     {
429 429
         foreach ($parentClass->associationMappings as $field => $mapping) {
430 430
             if ($parentClass->isMappedSuperclass) {
431
-                if ($mapping['type'] & ClassMetadata::TO_MANY && !$mapping['isOwningSide']) {
431
+                if ($mapping['type'] & ClassMetadata::TO_MANY && ! $mapping['isOwningSide']) {
432 432
                     throw MappingException::illegalToManyAssociationOnMappedSuperclass($parentClass->name, $field);
433 433
                 }
434 434
                 $mapping['sourceEntity'] = $subClass->name;
@@ -476,11 +476,11 @@  discard block
 block discarded – undo
476 476
             $embeddableMetadata = $this->getMetadataFor($embeddableClass['class']);
477 477
 
478 478
             $parentClass->mapEmbedded(array(
479
-                'fieldName' => $prefix . '.' . $property,
479
+                'fieldName' => $prefix.'.'.$property,
480 480
                 'class' => $embeddableMetadata->name,
481 481
                 'columnPrefix' => $embeddableClass['columnPrefix'],
482 482
                 'declaredField' => $embeddableClass['declaredField']
483
-                        ? $prefix . '.' . $embeddableClass['declaredField']
483
+                        ? $prefix.'.'.$embeddableClass['declaredField']
484 484
                         : $prefix,
485 485
                 'originalField' => $embeddableClass['originalField'] ?: $property,
486 486
             ));
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
      */
498 498
     private function addInheritedIndexes(ClassMetadata $subClass, ClassMetadata $parentClass)
499 499
     {
500
-        if (! $parentClass->isMappedSuperclass) {
500
+        if ( ! $parentClass->isMappedSuperclass) {
501 501
             return;
502 502
         }
503 503
 
@@ -696,14 +696,14 @@  discard block
 block discarded – undo
696 696
             case ClassMetadata::GENERATOR_TYPE_CUSTOM:
697 697
                 $definition = $class->customGeneratorDefinition;
698 698
                 if ( ! class_exists($definition['class'])) {
699
-                    throw new ORMException("Can't instantiate custom generator : " .
699
+                    throw new ORMException("Can't instantiate custom generator : ".
700 700
                         $definition['class']);
701 701
                 }
702 702
                 $class->setIdGenerator(new $definition['class']);
703 703
                 break;
704 704
 
705 705
             default:
706
-                throw new ORMException("Unknown generator type: " . $class->generatorType);
706
+                throw new ORMException("Unknown generator type: ".$class->generatorType);
707 707
         }
708 708
     }
709 709
 
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
      */
754 754
     protected function getFqcnFromAlias($namespaceAlias, $simpleClassName)
755 755
     {
756
-        return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName;
756
+        return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName;
757 757
     }
758 758
 
759 759
     /**
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
      */
778 778
     private function getTargetPlatform()
779 779
     {
780
-        if (!$this->targetPlatform) {
780
+        if ( ! $this->targetPlatform) {
781 781
             $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform();
782 782
         }
783 783
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/DefaultEntityListenerResolver.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     public function resolve($className)
68 68
     {
69 69
         if (isset($this->instances[$className = trim($className, '\\')])) {
70
-           return $this->instances[$className];
70
+            return $this->instances[$className];
71 71
         }
72 72
 
73 73
         return $this->instances[$className] = new $className();
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
  */
42 42
 abstract class AbstractEntityPersister implements CachedEntityPersister
43 43
 {
44
-     /**
45
-     * @var \Doctrine\ORM\UnitOfWork
46
-     */
44
+        /**
45
+         * @var \Doctrine\ORM\UnitOfWork
46
+         */
47 47
     protected $uow;
48 48
 
49 49
     /**
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
      */
62 62
     protected $class;
63 63
 
64
-     /**
65
-     * @var array
66
-     */
64
+        /**
65
+         * @var array
66
+         */
67 67
     protected $queuedCache = array();
68 68
 
69 69
     /**
Please login to merge, or discard this patch.
ORM/Cache/Persister/Collection/ReadOnlyCachedCollectionPersister.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -715,9 +715,9 @@
 block discarded – undo
715 715
         );
716 716
     }
717 717
 
718
-     /**
719
-     * {@inheritdoc}
720
-     */
718
+        /**
719
+         * {@inheritdoc}
720
+         */
721 721
     protected function getHash()
722 722
     {
723 723
         return sha1(parent::getHash(). '-'. $this->_firstResult . '-' . $this->_maxResults);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
             $exporter->setMetadata($metadata);
221 221
             $exporter->export();
222 222
 
223
-            $output->writeln(PHP_EOL . sprintf(
223
+            $output->writeln(PHP_EOL.sprintf(
224 224
                 'Converting Doctrine 1.X schema to "<info>%s</info>" mapping type in "<info>%s</info>"', $toType, $destPath
225 225
             ));
226 226
         } else {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr/GroupBy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * @var string
35 35
      */
36
-    protected $preSeparator  = '';
36
+    protected $preSeparator = '';
37 37
 
38 38
     /**
39 39
      * @var string
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/Paginator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /**
58 58
      * Constructor.
59 59
      *
60
-     * @param Query|QueryBuilder $query               A Doctrine ORM query or query builder.
60
+     * @param Query $query               A Doctrine ORM query or query builder.
61 61
      * @param boolean            $fetchJoinCollection Whether the query joins a collection (true by default).
62 62
      */
63 63
     public function __construct($query, $fetchJoinCollection = true)
Please login to merge, or discard this patch.
lib/Doctrine/ORM/UnitOfWork.php 3 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1237,7 +1237,7 @@  discard block
 block discarded – undo
1237 1237
     /**
1238 1238
      * Schedules an entity for being updated.
1239 1239
      *
1240
-     * @param object $entity The entity to schedule for being updated.
1240
+     * @param \Doctrine\Tests\Models\Forum\ForumUser $entity The entity to schedule for being updated.
1241 1241
      *
1242 1242
      * @return void
1243 1243
      *
@@ -1305,7 +1305,7 @@  discard block
 block discarded – undo
1305 1305
     /**
1306 1306
      * Checks whether an entity is registered to be checked in the unit of work.
1307 1307
      *
1308
-     * @param object $entity
1308
+     * @param \Doctrine\Tests\ORM\NotifyChangedEntity $entity
1309 1309
      *
1310 1310
      * @return boolean
1311 1311
      */
@@ -3121,7 +3121,7 @@  discard block
 block discarded – undo
3121 3121
      *
3122 3122
      * @param object $entity       The entity that owns the property.
3123 3123
      * @param string $propertyName The name of the property that changed.
3124
-     * @param mixed  $oldValue     The old value of the property.
3124
+     * @param null|integer  $oldValue     The old value of the property.
3125 3125
      * @param mixed  $newValue     The new value of the property.
3126 3126
      *
3127 3127
      * @return void
@@ -3321,7 +3321,7 @@  discard block
 block discarded – undo
3321 3321
     /**
3322 3322
      * Verifies if two given entities actually are the same based on identifier comparison
3323 3323
      *
3324
-     * @param object $entity1
3324
+     * @param Proxy $entity1
3325 3325
      * @param object $entity2
3326 3326
      *
3327 3327
      * @return bool
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
 use Exception;
27 27
 use InvalidArgumentException;
28 28
 use UnexpectedValueException;
29
-
30 29
 use Doctrine\Common\Collections\ArrayCollection;
31 30
 use Doctrine\Common\Collections\Collection;
32 31
 use Doctrine\Common\NotifyPropertyChanged;
@@ -34,14 +33,12 @@  discard block
 block discarded – undo
34 33
 use Doctrine\Common\Persistence\ObjectManagerAware;
35 34
 use Doctrine\ORM\Mapping\ClassMetadata;
36 35
 use Doctrine\ORM\Proxy\Proxy;
37
-
38 36
 use Doctrine\ORM\Event\LifecycleEventArgs;
39 37
 use Doctrine\ORM\Event\PreUpdateEventArgs;
40 38
 use Doctrine\ORM\Event\PreFlushEventArgs;
41 39
 use Doctrine\ORM\Event\OnFlushEventArgs;
42 40
 use Doctrine\ORM\Event\PostFlushEventArgs;
43 41
 use Doctrine\ORM\Event\ListenersInvoker;
44
-
45 42
 use Doctrine\ORM\Cache\Persister\CachedPersister;
46 43
 use Doctrine\ORM\Persisters\Entity\BasicEntityPersister;
47 44
 use Doctrine\ORM\Persisters\Entity\SingleTablePersister;
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
         $state = $this->getEntityState($entity);
466 466
 
467 467
         if ($state !== self::STATE_MANAGED && $state !== self::STATE_REMOVED) {
468
-            throw new \InvalidArgumentException("Entity has to be managed or scheduled for removal for single computation " . self::objToStr($entity));
468
+            throw new \InvalidArgumentException("Entity has to be managed or scheduled for removal for single computation ".self::objToStr($entity));
469 469
         }
470 470
 
471 471
         $class = $this->em->getClassMetadata(get_class($entity));
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
         $oid  = spl_object_hash($entity);
522 522
         $data = array();
523 523
 
524
-        if (!isset($this->entityChangeSets[$oid])) {
524
+        if ( ! isset($this->entityChangeSets[$oid])) {
525 525
             return $data;
526 526
         }
527 527
 
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
                     if ($owner === null) { // cloned
685 685
                         $actualValue->setOwner($entity, $assoc);
686 686
                     } else if ($owner !== $entity) { // no clone, we have to fix
687
-                        if (!$actualValue->isInitialized()) {
687
+                        if ( ! $actualValue->isInitialized()) {
688 688
                             $actualValue->initialize(); // we have to do this otherwise the cols share state
689 689
                         }
690 690
                         $newValue = clone $actualValue;
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
         $targetClass    = $this->em->getClassMetadata($assoc['targetEntity']);
831 831
 
832 832
         foreach ($unwrappedValue as $key => $entry) {
833
-            if (! ($entry instanceof $targetClass->name)) {
833
+            if ( ! ($entry instanceof $targetClass->name)) {
834 834
                 throw ORMInvalidArgumentException::invalidAssociation($targetClass, $assoc, $entry);
835 835
             }
836 836
 
@@ -1689,7 +1689,7 @@  discard block
 block discarded – undo
1689 1689
                 throw ORMInvalidArgumentException::detachedEntityCannot($entity, "persisted");
1690 1690
 
1691 1691
             default:
1692
-                throw new UnexpectedValueException("Unexpected entity state: $entityState." . self::objToStr($entity));
1692
+                throw new UnexpectedValueException("Unexpected entity state: $entityState.".self::objToStr($entity));
1693 1693
         }
1694 1694
 
1695 1695
         $this->cascadePersist($entity, $visited);
@@ -1759,7 +1759,7 @@  discard block
 block discarded – undo
1759 1759
             case self::STATE_DETACHED:
1760 1760
                 throw ORMInvalidArgumentException::detachedEntityCannot($entity, "removed");
1761 1761
             default:
1762
-                throw new UnexpectedValueException("Unexpected entity state: $entityState." . self::objToStr($entity));
1762
+                throw new UnexpectedValueException("Unexpected entity state: $entityState.".self::objToStr($entity));
1763 1763
         }
1764 1764
 
1765 1765
     }
@@ -1910,7 +1910,7 @@  discard block
 block discarded – undo
1910 1910
      */
1911 1911
     private function isLoaded($entity)
1912 1912
     {
1913
-        return !($entity instanceof Proxy) || $entity->__isInitialized();
1913
+        return ! ($entity instanceof Proxy) || $entity->__isInitialized();
1914 1914
     }
1915 1915
 
1916 1916
     /**
@@ -2068,7 +2068,7 @@  discard block
 block discarded – undo
2068 2068
 
2069 2069
         $associationMappings = array_filter(
2070 2070
             $class->associationMappings,
2071
-            function ($assoc) { return $assoc['isCascadeRefresh']; }
2071
+            function($assoc) { return $assoc['isCascadeRefresh']; }
2072 2072
         );
2073 2073
 
2074 2074
         foreach ($associationMappings as $assoc) {
@@ -2111,7 +2111,7 @@  discard block
 block discarded – undo
2111 2111
 
2112 2112
         $associationMappings = array_filter(
2113 2113
             $class->associationMappings,
2114
-            function ($assoc) { return $assoc['isCascadeDetach']; }
2114
+            function($assoc) { return $assoc['isCascadeDetach']; }
2115 2115
         );
2116 2116
 
2117 2117
         foreach ($associationMappings as $assoc) {
@@ -2155,7 +2155,7 @@  discard block
 block discarded – undo
2155 2155
 
2156 2156
         $associationMappings = array_filter(
2157 2157
             $class->associationMappings,
2158
-            function ($assoc) { return $assoc['isCascadeMerge']; }
2158
+            function($assoc) { return $assoc['isCascadeMerge']; }
2159 2159
         );
2160 2160
 
2161 2161
         foreach ($associationMappings as $assoc) {
@@ -2194,7 +2194,7 @@  discard block
 block discarded – undo
2194 2194
 
2195 2195
         $associationMappings = array_filter(
2196 2196
             $class->associationMappings,
2197
-            function ($assoc) { return $assoc['isCascadePersist']; }
2197
+            function($assoc) { return $assoc['isCascadePersist']; }
2198 2198
         );
2199 2199
 
2200 2200
         foreach ($associationMappings as $assoc) {
@@ -2223,7 +2223,7 @@  discard block
 block discarded – undo
2223 2223
                     break;
2224 2224
 
2225 2225
                 case ($relatedEntities !== null):
2226
-                    if (! $relatedEntities instanceof $assoc['targetEntity']) {
2226
+                    if ( ! $relatedEntities instanceof $assoc['targetEntity']) {
2227 2227
                         throw ORMInvalidArgumentException::invalidAssociation(
2228 2228
                             $this->em->getClassMetadata($assoc['targetEntity']),
2229 2229
                             $assoc,
@@ -2254,13 +2254,13 @@  discard block
 block discarded – undo
2254 2254
 
2255 2255
         $associationMappings = array_filter(
2256 2256
             $class->associationMappings,
2257
-            function ($assoc) { return $assoc['isCascadeRemove']; }
2257
+            function($assoc) { return $assoc['isCascadeRemove']; }
2258 2258
         );
2259 2259
 
2260 2260
         $entitiesToCascade = array();
2261 2261
 
2262 2262
         foreach ($associationMappings as $assoc) {
2263
-            if ($entity instanceof Proxy && !$entity->__isInitialized__) {
2263
+            if ($entity instanceof Proxy && ! $entity->__isInitialized__) {
2264 2264
                 $entity->__load();
2265 2265
             }
2266 2266
 
@@ -2324,7 +2324,7 @@  discard block
 block discarded – undo
2324 2324
                     return;
2325 2325
                 }
2326 2326
 
2327
-                if ($entity instanceof Proxy && !$entity->__isInitialized__) {
2327
+                if ($entity instanceof Proxy && ! $entity->__isInitialized__) {
2328 2328
                     $entity->__load();
2329 2329
                 }
2330 2330
 
@@ -2339,7 +2339,7 @@  discard block
 block discarded – undo
2339 2339
             case LockMode::NONE === $lockMode:
2340 2340
             case LockMode::PESSIMISTIC_READ === $lockMode:
2341 2341
             case LockMode::PESSIMISTIC_WRITE === $lockMode:
2342
-                if (!$this->em->getConnection()->isTransactionActive()) {
2342
+                if ( ! $this->em->getConnection()->isTransactionActive()) {
2343 2343
                     throw TransactionRequiredException::transactionRequired();
2344 2344
                 }
2345 2345
 
@@ -2675,7 +2675,7 @@  discard block
 block discarded – undo
2675 2675
                             // then we can append this entity for eager loading!
2676 2676
                             if ($hints['fetchMode'][$class->name][$field] == ClassMetadata::FETCH_EAGER &&
2677 2677
                                 isset($hints[self::HINT_DEFEREAGERLOAD]) &&
2678
-                                !$targetClass->isIdentifierComposite &&
2678
+                                ! $targetClass->isIdentifierComposite &&
2679 2679
                                 $newValue instanceof Proxy &&
2680 2680
                                 $newValue->__isInitialized__ === false) {
2681 2681
 
@@ -2987,7 +2987,7 @@  discard block
 block discarded – undo
2987 2987
      */
2988 2988
     public function size()
2989 2989
     {
2990
-        $countArray = array_map(function ($item) { return count($item); }, $this->identityMap);
2990
+        $countArray = array_map(function($item) { return count($item); }, $this->identityMap);
2991 2991
 
2992 2992
         return array_sum($countArray);
2993 2993
     }
@@ -3046,7 +3046,7 @@  discard block
 block discarded – undo
3046 3046
     public function getCollectionPersister(array $association)
3047 3047
     {
3048 3048
         $role = isset($association['cache'])
3049
-            ? $association['sourceEntity'] . '::' . $association['fieldName']
3049
+            ? $association['sourceEntity'].'::'.$association['fieldName']
3050 3050
             : $association['type'];
3051 3051
 
3052 3052
         if (isset($this->collectionPersisters[$role])) {
@@ -3264,7 +3264,7 @@  discard block
 block discarded – undo
3264 3264
      */
3265 3265
     private function afterTransactionComplete()
3266 3266
     {
3267
-        $this->performCallbackOnCachedPersister(function (CachedPersister $persister) {
3267
+        $this->performCallbackOnCachedPersister(function(CachedPersister $persister) {
3268 3268
             $persister->afterTransactionComplete();
3269 3269
         });
3270 3270
     }
@@ -3274,7 +3274,7 @@  discard block
 block discarded – undo
3274 3274
      */
3275 3275
     private function afterTransactionRolledBack()
3276 3276
     {
3277
-        $this->performCallbackOnCachedPersister(function (CachedPersister $persister) {
3277
+        $this->performCallbackOnCachedPersister(function(CachedPersister $persister) {
3278 3278
             $persister->afterTransactionRolledBack();
3279 3279
         });
3280 3280
     }
@@ -3313,7 +3313,7 @@  discard block
 block discarded – undo
3313 3313
 
3314 3314
     private function dispatchAfterFlush()
3315 3315
     {
3316
-        if($this->evm->hasListeners(Events::afterFlush)) {
3316
+        if ($this->evm->hasListeners(Events::afterFlush)) {
3317 3317
             $this->evm->dispatchEvent(Events::afterFlush);
3318 3318
         }
3319 3319
     }
@@ -3380,7 +3380,7 @@  discard block
 block discarded – undo
3380 3380
                     if ($other === null) {
3381 3381
                         $prop->setValue($managedCopy, null);
3382 3382
                     } else {
3383
-                        if ($other instanceof Proxy && !$other->__isInitialized()) {
3383
+                        if ($other instanceof Proxy && ! $other->__isInitialized()) {
3384 3384
                             // do not merge fields marked lazy that have not been fetched.
3385 3385
                             continue;
3386 3386
                         }
@@ -3469,7 +3469,7 @@  discard block
 block discarded – undo
3469 3469
      */
3470 3470
     private function clearIdentityMapForEntityName($entityName)
3471 3471
     {
3472
-        if (! isset($this->identityMap[$entityName])) {
3472
+        if ( ! isset($this->identityMap[$entityName])) {
3473 3473
             return;
3474 3474
         }
3475 3475
 
Please login to merge, or discard this patch.