Completed
Branch 2.8.x (a416a9)
by Luís
09:21 queued 01:20
created
lib/Doctrine/ORM/UnitOfWork.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         try {
382 382
             // Collection deletions (deletions of complete collections)
383 383
             foreach ($this->collectionDeletions as $collectionToDelete) {
384
-                if (! $collectionToDelete instanceof PersistentCollection) {
384
+                if ( ! $collectionToDelete instanceof PersistentCollection) {
385 385
                     $this->getCollectionPersister($collectionToDelete->getMapping())->delete($collectionToDelete);
386 386
 
387 387
                     continue;
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
         $state = $this->getEntityState($entity);
514 514
 
515 515
         if ($state !== self::STATE_MANAGED && $state !== self::STATE_REMOVED) {
516
-            throw new \InvalidArgumentException("Entity has to be managed or scheduled for removal for single computation " . self::objToStr($entity));
516
+            throw new \InvalidArgumentException("Entity has to be managed or scheduled for removal for single computation ".self::objToStr($entity));
517 517
         }
518 518
 
519 519
         $class = $this->em->getClassMetadata(get_class($entity));
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
         $oid  = spl_object_hash($entity);
570 570
         $data = [];
571 571
 
572
-        if (!isset($this->entityChangeSets[$oid])) {
572
+        if ( ! isset($this->entityChangeSets[$oid])) {
573 573
             return $data;
574 574
         }
575 575
 
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
                     if ($owner === null) { // cloned
733 733
                         $actualValue->setOwner($entity, $assoc);
734 734
                     } else if ($owner !== $entity) { // no clone, we have to fix
735
-                        if (!$actualValue->isInitialized()) {
735
+                        if ( ! $actualValue->isInitialized()) {
736 736
                             $actualValue->initialize(); // we have to do this otherwise the cols share state
737 737
                         }
738 738
                         $newValue = clone $actualValue;
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
         $targetClass    = $this->em->getClassMetadata($assoc['targetEntity']);
879 879
 
880 880
         foreach ($unwrappedValue as $key => $entry) {
881
-            if (! ($entry instanceof $targetClass->name)) {
881
+            if ( ! ($entry instanceof $targetClass->name)) {
882 882
                 throw ORMInvalidArgumentException::invalidAssociation($targetClass, $assoc, $entry);
883 883
             }
884 884
 
@@ -956,7 +956,7 @@  discard block
 block discarded – undo
956 956
 
957 957
             // Some identifiers may be foreign keys to new entities.
958 958
             // In this case, we don't have the value yet and should treat it as if we have a post-insert generator
959
-            if (! $this->hasMissingIdsWhichAreForeignKeys($class, $idValue)) {
959
+            if ( ! $this->hasMissingIdsWhichAreForeignKeys($class, $idValue)) {
960 960
                 $this->entityIdentifiers[$oid] = $idValue;
961 961
             }
962 962
         }
@@ -1105,7 +1105,7 @@  discard block
 block discarded – undo
1105 1105
             }
1106 1106
         } else {
1107 1107
             foreach ($insertionsForClass as $oid => $entity) {
1108
-                if (! isset($this->entityIdentifiers[$oid])) {
1108
+                if ( ! isset($this->entityIdentifiers[$oid])) {
1109 1109
                     //entity was not added to identity map because some identifiers are foreign keys to new entities.
1110 1110
                     //add it now
1111 1111
                     $this->addToEntityIdentifiersAndEntityMap($class, $oid, $entity);
@@ -1270,7 +1270,7 @@  discard block
 block discarded – undo
1270 1270
 
1271 1271
                 $joinColumns = reset($assoc['joinColumns']);
1272 1272
 
1273
-                $calc->addDependency($targetClass->name, $class->name, (int)empty($joinColumns['nullable']));
1273
+                $calc->addDependency($targetClass->name, $class->name, (int) empty($joinColumns['nullable']));
1274 1274
 
1275 1275
                 // If the target class has mapped subclasses, these share the same dependency.
1276 1276
                 if ( ! $targetClass->subClasses) {
@@ -1793,7 +1793,7 @@  discard block
 block discarded – undo
1793 1793
                 throw ORMInvalidArgumentException::detachedEntityCannot($entity, "persisted");
1794 1794
 
1795 1795
             default:
1796
-                throw new UnexpectedValueException("Unexpected entity state: $entityState." . self::objToStr($entity));
1796
+                throw new UnexpectedValueException("Unexpected entity state: $entityState.".self::objToStr($entity));
1797 1797
         }
1798 1798
 
1799 1799
         $this->cascadePersist($entity, $visited);
@@ -1863,7 +1863,7 @@  discard block
 block discarded – undo
1863 1863
             case self::STATE_DETACHED:
1864 1864
                 throw ORMInvalidArgumentException::detachedEntityCannot($entity, "removed");
1865 1865
             default:
1866
-                throw new UnexpectedValueException("Unexpected entity state: $entityState." . self::objToStr($entity));
1866
+                throw new UnexpectedValueException("Unexpected entity state: $entityState.".self::objToStr($entity));
1867 1867
         }
1868 1868
 
1869 1869
     }
@@ -2002,7 +2002,7 @@  discard block
 block discarded – undo
2002 2002
      */
2003 2003
     private function ensureVersionMatch(ClassMetadata $class, $entity, $managedCopy)
2004 2004
     {
2005
-        if (! ($class->isVersioned && $this->isLoaded($managedCopy) && $this->isLoaded($entity))) {
2005
+        if ( ! ($class->isVersioned && $this->isLoaded($managedCopy) && $this->isLoaded($entity))) {
2006 2006
             return;
2007 2007
         }
2008 2008
 
@@ -2027,7 +2027,7 @@  discard block
 block discarded – undo
2027 2027
      */
2028 2028
     private function isLoaded($entity)
2029 2029
     {
2030
-        return !($entity instanceof Proxy) || $entity->__isInitialized();
2030
+        return ! ($entity instanceof Proxy) || $entity->__isInitialized();
2031 2031
     }
2032 2032
 
2033 2033
     /**
@@ -2185,7 +2185,7 @@  discard block
 block discarded – undo
2185 2185
 
2186 2186
         $associationMappings = array_filter(
2187 2187
             $class->associationMappings,
2188
-            function ($assoc) { return $assoc['isCascadeRefresh']; }
2188
+            function($assoc) { return $assoc['isCascadeRefresh']; }
2189 2189
         );
2190 2190
 
2191 2191
         foreach ($associationMappings as $assoc) {
@@ -2228,7 +2228,7 @@  discard block
 block discarded – undo
2228 2228
 
2229 2229
         $associationMappings = array_filter(
2230 2230
             $class->associationMappings,
2231
-            function ($assoc) { return $assoc['isCascadeDetach']; }
2231
+            function($assoc) { return $assoc['isCascadeDetach']; }
2232 2232
         );
2233 2233
 
2234 2234
         foreach ($associationMappings as $assoc) {
@@ -2272,7 +2272,7 @@  discard block
 block discarded – undo
2272 2272
 
2273 2273
         $associationMappings = array_filter(
2274 2274
             $class->associationMappings,
2275
-            function ($assoc) { return $assoc['isCascadeMerge']; }
2275
+            function($assoc) { return $assoc['isCascadeMerge']; }
2276 2276
         );
2277 2277
 
2278 2278
         foreach ($associationMappings as $assoc) {
@@ -2311,7 +2311,7 @@  discard block
 block discarded – undo
2311 2311
 
2312 2312
         $associationMappings = array_filter(
2313 2313
             $class->associationMappings,
2314
-            function ($assoc) { return $assoc['isCascadePersist']; }
2314
+            function($assoc) { return $assoc['isCascadePersist']; }
2315 2315
         );
2316 2316
 
2317 2317
         foreach ($associationMappings as $assoc) {
@@ -2340,7 +2340,7 @@  discard block
 block discarded – undo
2340 2340
                     break;
2341 2341
 
2342 2342
                 case ($relatedEntities !== null):
2343
-                    if (! $relatedEntities instanceof $assoc['targetEntity']) {
2343
+                    if ( ! $relatedEntities instanceof $assoc['targetEntity']) {
2344 2344
                         throw ORMInvalidArgumentException::invalidAssociation(
2345 2345
                             $this->em->getClassMetadata($assoc['targetEntity']),
2346 2346
                             $assoc,
@@ -2371,13 +2371,13 @@  discard block
 block discarded – undo
2371 2371
 
2372 2372
         $associationMappings = array_filter(
2373 2373
             $class->associationMappings,
2374
-            function ($assoc) { return $assoc['isCascadeRemove']; }
2374
+            function($assoc) { return $assoc['isCascadeRemove']; }
2375 2375
         );
2376 2376
 
2377 2377
         $entitiesToCascade = [];
2378 2378
 
2379 2379
         foreach ($associationMappings as $assoc) {
2380
-            if ($entity instanceof Proxy && !$entity->__isInitialized__) {
2380
+            if ($entity instanceof Proxy && ! $entity->__isInitialized__) {
2381 2381
                 $entity->__load();
2382 2382
             }
2383 2383
 
@@ -2441,7 +2441,7 @@  discard block
 block discarded – undo
2441 2441
                     return;
2442 2442
                 }
2443 2443
 
2444
-                if ($entity instanceof Proxy && !$entity->__isInitialized__) {
2444
+                if ($entity instanceof Proxy && ! $entity->__isInitialized__) {
2445 2445
                     $entity->__load();
2446 2446
                 }
2447 2447
 
@@ -2456,7 +2456,7 @@  discard block
 block discarded – undo
2456 2456
             case LockMode::NONE === $lockMode:
2457 2457
             case LockMode::PESSIMISTIC_READ === $lockMode:
2458 2458
             case LockMode::PESSIMISTIC_WRITE === $lockMode:
2459
-                if (!$this->em->getConnection()->isTransactionActive()) {
2459
+                if ( ! $this->em->getConnection()->isTransactionActive()) {
2460 2460
                     throw TransactionRequiredException::transactionRequired();
2461 2461
                 }
2462 2462
 
@@ -2781,7 +2781,7 @@  discard block
 block discarded – undo
2781 2781
                             // then we can append this entity for eager loading!
2782 2782
                             if ($hints['fetchMode'][$class->name][$field] == ClassMetadata::FETCH_EAGER &&
2783 2783
                                 isset($hints[self::HINT_DEFEREAGERLOAD]) &&
2784
-                                !$targetClass->isIdentifierComposite &&
2784
+                                ! $targetClass->isIdentifierComposite &&
2785 2785
                                 $newValue instanceof Proxy &&
2786 2786
                                 $newValue->__isInitialized__ === false) {
2787 2787
 
@@ -3146,7 +3146,7 @@  discard block
 block discarded – undo
3146 3146
     public function getCollectionPersister(array $association)
3147 3147
     {
3148 3148
         $role = isset($association['cache'])
3149
-            ? $association['sourceEntity'] . '::' . $association['fieldName']
3149
+            ? $association['sourceEntity'].'::'.$association['fieldName']
3150 3150
             : $association['type'];
3151 3151
 
3152 3152
         if (isset($this->collectionPersisters[$role])) {
@@ -3364,7 +3364,7 @@  discard block
 block discarded – undo
3364 3364
      */
3365 3365
     private function afterTransactionComplete()
3366 3366
     {
3367
-        $this->performCallbackOnCachedPersister(function (CachedPersister $persister) {
3367
+        $this->performCallbackOnCachedPersister(function(CachedPersister $persister) {
3368 3368
             $persister->afterTransactionComplete();
3369 3369
         });
3370 3370
     }
@@ -3374,7 +3374,7 @@  discard block
 block discarded – undo
3374 3374
      */
3375 3375
     private function afterTransactionRolledBack()
3376 3376
     {
3377
-        $this->performCallbackOnCachedPersister(function (CachedPersister $persister) {
3377
+        $this->performCallbackOnCachedPersister(function(CachedPersister $persister) {
3378 3378
             $persister->afterTransactionRolledBack();
3379 3379
         });
3380 3380
     }
@@ -3470,11 +3470,11 @@  discard block
 block discarded – undo
3470 3470
      */
3471 3471
     private function mergeEntityStateIntoManagedCopy($entity, $managedCopy)
3472 3472
     {
3473
-        if (! $this->isLoaded($entity)) {
3473
+        if ( ! $this->isLoaded($entity)) {
3474 3474
             return;
3475 3475
         }
3476 3476
 
3477
-        if (! $this->isLoaded($managedCopy)) {
3477
+        if ( ! $this->isLoaded($managedCopy)) {
3478 3478
             $managedCopy->__load();
3479 3479
         }
3480 3480
 
@@ -3497,7 +3497,7 @@  discard block
 block discarded – undo
3497 3497
                     if ($other === null) {
3498 3498
                         $prop->setValue($managedCopy, null);
3499 3499
                     } else {
3500
-                        if ($other instanceof Proxy && !$other->__isInitialized()) {
3500
+                        if ($other instanceof Proxy && ! $other->__isInitialized()) {
3501 3501
                             // do not merge fields marked lazy that have not been fetched.
3502 3502
                             continue;
3503 3503
                         }
@@ -3584,7 +3584,7 @@  discard block
 block discarded – undo
3584 3584
      */
3585 3585
     private function clearIdentityMapForEntityName($entityName)
3586 3586
     {
3587
-        if (! isset($this->identityMap[$entityName])) {
3587
+        if ( ! isset($this->identityMap[$entityName])) {
3588 3588
             return;
3589 3589
         }
3590 3590
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
                         : $value;
318 318
 
319 319
                     if ($cacheKeyInfo['isIdentifier'] && $value !== null) {
320
-                        $id[$dqlAlias] .= '|' . $value;
320
+                        $id[$dqlAlias] .= '|'.$value;
321 321
                         $nonemptyComponents[$dqlAlias] = true;
322 322
                     }
323 323
                     break;
@@ -352,11 +352,11 @@  discard block
 block discarded – undo
352 352
 
353 353
             // WARNING: BC break! We know this is the desired behavior to type convert values, but this
354 354
             // erroneous behavior exists since 2.0 and we're forced to keep compatibility.
355
-            if (! isset($cacheKeyInfo['isScalar'])) {
355
+            if ( ! isset($cacheKeyInfo['isScalar'])) {
356 356
                 $type  = $cacheKeyInfo['type'];
357 357
                 $value = $type ? $type->convertToPHPValue($value, $this->_platform) : $value;
358 358
 
359
-                $fieldName = $cacheKeyInfo['dqlAlias'] . '_' . $fieldName;
359
+                $fieldName = $cacheKeyInfo['dqlAlias'].'_'.$fieldName;
360 360
             }
361 361
 
362 362
             $rowData[$fieldName] = $value;
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
     private function getDiscriminatorValues(ClassMetadata $classMetadata) : array
466 466
     {
467 467
         $values = array_map(
468
-            function (string $subClass) : string {
468
+            function(string $subClass) : string {
469 469
                 return (string) $this->getClassMetadata($subClass)->discriminatorValue;
470 470
             },
471 471
             $classMetadata->subClasses
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH7079Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,11 +69,11 @@
 block discarded – undo
69 69
     private function getTableFullName(array $table) : string
70 70
     {
71 71
         $join = '.';
72
-        if (! $this->platform->supportsSchemas() && $this->platform->canEmulateSchemas()) {
72
+        if ( ! $this->platform->supportsSchemas() && $this->platform->canEmulateSchemas()) {
73 73
             $join = '__';
74 74
         }
75 75
 
76
-        return $table['schema'] . $join . $table['name'];
76
+        return $table['schema'].$join.$table['name'];
77 77
     }
78 78
 
79 79
     private function createClassMetadata(string $className) : ClassMetadata
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
     public function __construct()
48 48
     {
49
-        @trigger_error(self::class . ' is deprecated and will be removed in Doctrine ORM 3.0', E_USER_DEPRECATED);
49
+        @trigger_error(self::class.' is deprecated and will be removed in Doctrine ORM 3.0', E_USER_DEPRECATED);
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/AbstractExporter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function __construct($dir = null)
62 62
     {
63
-        @trigger_error(static::class . ' is deprecated and will be removed in Doctrine ORM 3.0', E_USER_DEPRECATED);
63
+        @trigger_error(static::class.' is deprecated and will be removed in Doctrine ORM 3.0', E_USER_DEPRECATED);
64 64
 
65 65
         $this->_outputDir = $dir;
66 66
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 if ( ! is_dir($dir)) {
147 147
                     mkdir($dir, 0775, true);
148 148
                 }
149
-                if (file_exists($path) && !$this->_overwriteExistingFiles) {
149
+                if (file_exists($path) && ! $this->_overwriteExistingFiles) {
150 150
                     throw ExportException::attemptOverwriteExistingFile($path);
151 151
                 }
152 152
                 file_put_contents($path, $output);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     protected function _generateOutputPath(ClassMetadataInfo $metadata)
166 166
     {
167
-        return $this->_outputDir . '/' . str_replace('\\', '.', $metadata->name) . $this->_extension;
167
+        return $this->_outputDir.'/'.str_replace('\\', '.', $metadata->name).$this->_extension;
168 168
     }
169 169
 
170 170
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityManager.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function transactional($func)
229 229
     {
230
-        if (!is_callable($func)) {
231
-            throw new \InvalidArgumentException('Expected argument of type "callable", got "' . gettype($func) . '"');
230
+        if ( ! is_callable($func)) {
231
+            throw new \InvalidArgumentException('Expected argument of type "callable", got "'.gettype($func).'"');
232 232
         }
233 233
 
234 234
         $this->conn->beginTransaction();
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     {
359 359
         if ($entity !== null) {
360 360
             @trigger_error(
361
-                'Calling ' . __METHOD__ . '() with any arguments to flush specific entities is deprecated and will not be supported in Doctrine ORM 3.0.',
361
+                'Calling '.__METHOD__.'() with any arguments to flush specific entities is deprecated and will not be supported in Doctrine ORM 3.0.',
362 362
                 E_USER_DEPRECATED
363 363
             );
364 364
         }
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 
559 559
         if ($entityName !== null) {
560 560
             @trigger_error(
561
-                'Calling ' . __METHOD__ . '() with any arguments to clear specific entities is deprecated and will not be supported in Doctrine ORM 3.0.',
561
+                'Calling '.__METHOD__.'() with any arguments to clear specific entities is deprecated and will not be supported in Doctrine ORM 3.0.',
562 562
                 E_USER_DEPRECATED
563 563
             );
564 564
         }
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
      */
671 671
     public function detach($entity)
672 672
     {
673
-        @trigger_error('Method ' . __METHOD__ . '() is deprecated and will be removed in Doctrine ORM 3.0.', E_USER_DEPRECATED);
673
+        @trigger_error('Method '.__METHOD__.'() is deprecated and will be removed in Doctrine ORM 3.0.', E_USER_DEPRECATED);
674 674
 
675 675
         if ( ! is_object($entity)) {
676 676
             throw ORMInvalidArgumentException::invalidObject('EntityManager#detach()', $entity);
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
      */
696 696
     public function merge($entity)
697 697
     {
698
-        @trigger_error('Method ' . __METHOD__ . '() is deprecated and will be removed in Doctrine ORM 3.0.', E_USER_DEPRECATED);
698
+        @trigger_error('Method '.__METHOD__.'() is deprecated and will be removed in Doctrine ORM 3.0.', E_USER_DEPRECATED);
699 699
 
700 700
         if ( ! is_object($entity)) {
701 701
             throw ORMInvalidArgumentException::invalidObject('EntityManager#merge()', $entity);
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
      */
712 712
     public function copy($entity, $deep = false)
713 713
     {
714
-        @trigger_error('Method ' . __METHOD__ . '() is deprecated and will be removed in Doctrine ORM 3.0.', E_USER_DEPRECATED);
714
+        @trigger_error('Method '.__METHOD__.'() is deprecated and will be removed in Doctrine ORM 3.0.', E_USER_DEPRECATED);
715 715
 
716 716
         throw new \BadMethodCallException("Not implemented.");
717 717
     }
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
      */
786 786
     public function isOpen()
787 787
     {
788
-        return (!$this->closed);
788
+        return ( ! $this->closed);
789 789
     }
790 790
 
791 791
     /**
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
                 sprintf(
897 897
                     'Invalid $connection argument of type %s given%s.',
898 898
                     is_object($connection) ? get_class($connection) : gettype($connection),
899
-                    is_object($connection) ? '' : ': "' . $connection . '"'
899
+                    is_object($connection) ? '' : ': "'.$connection.'"'
900 900
                 )
901 901
             );
902 902
         }
@@ -946,13 +946,13 @@  discard block
 block discarded – undo
946 946
     {
947 947
         switch ($lockMode) {
948 948
             case LockMode::OPTIMISTIC:
949
-                if (!$class->isVersioned) {
949
+                if ( ! $class->isVersioned) {
950 950
                     throw OptimisticLockException::notVersioned($class->name);
951 951
                 }
952 952
                 break;
953 953
             case LockMode::PESSIMISTIC_READ:
954 954
             case LockMode::PESSIMISTIC_WRITE:
955
-                if (!$this->getConnection()->isTransactionActive()) {
955
+                if ( ! $this->getConnection()->isTransactionActive()) {
956 956
                     throw TransactionRequiredException::transactionRequired();
957 957
                 }
958 958
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/UnderscoreNamingStrategy.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function __construct($case = CASE_LOWER, bool $numberAware = false)
62 62
     {
63
-        if (! $numberAware) {
63
+        if ( ! $numberAware) {
64 64
             @trigger_error(
65
-                'Creating ' . self::class . ' without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.',
65
+                'Creating '.self::class.' without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.',
66 66
                 E_USER_DEPRECATED
67 67
             );
68 68
         }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function referenceColumnName()
127 127
     {
128
-        return $this->case === CASE_UPPER ?  'ID' : 'id';
128
+        return $this->case === CASE_UPPER ? 'ID' : 'id';
129 129
     }
130 130
 
131 131
     /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function joinColumnName($propertyName, $className = null)
135 135
     {
136
-        return $this->underscore($propertyName) . '_' . $this->referenceColumnName();
136
+        return $this->underscore($propertyName).'_'.$this->referenceColumnName();
137 137
     }
138 138
 
139 139
     /**
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
143 143
     {
144
-        return $this->classToTableName($sourceEntity) . '_' . $this->classToTableName($targetEntity);
144
+        return $this->classToTableName($sourceEntity).'_'.$this->classToTableName($targetEntity);
145 145
     }
146 146
 
147 147
     /**
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function joinKeyColumnName($entityName, $referencedColumnName = null)
151 151
     {
152
-        return $this->classToTableName($entityName) . '_' .
152
+        return $this->classToTableName($entityName).'_'.
153 153
                 ($referencedColumnName ?: $this->referenceColumnName());
154 154
     }
155 155
 
Please login to merge, or discard this patch.