Completed
Pull Request — master (#7902)
by
unknown
63:54
created
lib/Doctrine/ORM/Reflection/RuntimeReflectionService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function getParentClasses(string $className) : array
24 24
     {
25
-        if (! \class_exists($className)) {
25
+        if ( ! \class_exists($className)) {
26 26
             throw MappingException::nonExistingClass($className);
27 27
         }
28 28
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Reflection/StaticReflectionService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public function getClassShortName(string $className) : string
31 31
     {
32 32
         if (\strpos($className, '\\') !== false) {
33
-            $className = \substr($className, \strrpos($className, '\\')+1);
33
+            $className = \substr($className, \strrpos($className, '\\') + 1);
34 34
         }
35 35
 
36 36
         return $className;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $namespace = '';
45 45
 
46 46
         if (\strpos($className, '\\') !== false) {
47
-            $namespace = \strrev(\substr(\strrev($className), \strpos(\strrev($className), '\\')+1));
47
+            $namespace = \strrev(\substr(\strrev($className), \strpos(\strrev($className), '\\') + 1));
48 48
         }
49 49
 
50 50
         return $namespace;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/ORMInvalidArgumentException.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public static function scheduleInsertForManagedEntity($entity)
32 32
     {
33
-        return new self('A managed+dirty entity ' . self::objToStr($entity) . ' can not be scheduled for insertion.');
33
+        return new self('A managed+dirty entity '.self::objToStr($entity).' can not be scheduled for insertion.');
34 34
     }
35 35
 
36 36
     /**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public static function scheduleInsertForRemovedEntity($entity)
42 42
     {
43
-        return new self('Removed entity ' . self::objToStr($entity) . ' can not be scheduled for insertion.');
43
+        return new self('Removed entity '.self::objToStr($entity).' can not be scheduled for insertion.');
44 44
     }
45 45
 
46 46
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function scheduleInsertTwice($entity)
52 52
     {
53
-        return new self('Entity ' . self::objToStr($entity) . ' can not be scheduled for insertion twice.');
53
+        return new self('Entity '.self::objToStr($entity).' can not be scheduled for insertion twice.');
54 54
     }
55 55
 
56 56
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public static function entityWithoutIdentity($className, $entity)
63 63
     {
64 64
         return new self(
65
-            "The given entity of type '" . $className . "' (" . self::objToStr($entity) . ') has no identity/no ' .
65
+            "The given entity of type '".$className."' (".self::objToStr($entity).') has no identity/no '.
66 66
             'id values set. It cannot be added to the identity map.'
67 67
         );
68 68
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public static function readOnlyRequiresManagedEntity($entity)
76 76
     {
77
-        return new self('Only managed entities can be marked or checked as read only. But ' . self::objToStr($entity) . ' is not');
77
+        return new self('Only managed entities can be marked or checked as read only. But '.self::objToStr($entity).' is not');
78 78
     }
79 79
 
80 80
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     public static function newEntitiesFoundThroughRelationships($newEntitiesWithAssociations)
86 86
     {
87 87
         $errorMessages = \array_map(
88
-            static function (array $newEntityWithAssociation) : string {
88
+            static function(array $newEntityWithAssociation) : string {
89 89
                 [$associationMetadata, $entity] = $newEntityWithAssociation;
90 90
 
91 91
                 return self::newEntityFoundThroughRelationshipMessage($associationMetadata, $entity);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public static function entityNotManaged($entity)
156 156
     {
157
-        return new self('Entity ' . self::objToStr($entity) . ' is not managed. An entity is managed if its fetched ' .
157
+        return new self('Entity '.self::objToStr($entity).' is not managed. An entity is managed if its fetched '.
158 158
             'from the database or registered as new through EntityManager#persist');
159 159
     }
160 160
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public static function entityHasNoIdentity($entity, $operation)
168 168
     {
169
-        return new self('Entity has no identity, therefore ' . $operation . ' cannot be performed. ' . self::objToStr($entity));
169
+        return new self('Entity has no identity, therefore '.$operation.' cannot be performed. '.self::objToStr($entity));
170 170
     }
171 171
 
172 172
     /**
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      */
178 178
     public static function entityIsRemoved($entity, $operation)
179 179
     {
180
-        return new self('Entity is removed, therefore ' . $operation . ' cannot be performed. ' . self::objToStr($entity));
180
+        return new self('Entity is removed, therefore '.$operation.' cannot be performed. '.self::objToStr($entity));
181 181
     }
182 182
 
183 183
     /**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public static function detachedEntityCannot($entity, $operation)
190 190
     {
191
-        return new self('Detached entity ' . self::objToStr($entity) . ' cannot be ' . $operation);
191
+        return new self('Detached entity '.self::objToStr($entity).' cannot be '.$operation);
192 192
     }
193 193
 
194 194
     /**
@@ -200,8 +200,8 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public static function invalidObject($context, $given, $parameterIndex = 1)
202 202
     {
203
-        return new self($context . ' expects parameter ' . $parameterIndex .
204
-            ' to be an entity object, ' . \gettype($given) . ' given.');
203
+        return new self($context.' expects parameter '.$parameterIndex.
204
+            ' to be an entity object, '.\gettype($given).' given.');
205 205
     }
206 206
 
207 207
     /**
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public static function invalidCompositeIdentifier()
211 211
     {
212
-        return new self('Binding an entity with a composite primary key to a query is not supported. ' .
212
+        return new self('Binding an entity with a composite primary key to a query is not supported. '.
213 213
             'You should split the parameter into the explicit fields and bind them separately.');
214 214
     }
215 215
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     private static function objToStr($obj) : string
248 248
     {
249
-        return \method_exists($obj, '__toString') ? (string) $obj : \get_class($obj) . '@' . spl_object_id($obj);
249
+        return \method_exists($obj, '__toString') ? (string) $obj : \get_class($obj).'@'.spl_object_id($obj);
250 250
     }
251 251
 
252 252
     /**
@@ -255,15 +255,15 @@  discard block
 block discarded – undo
255 255
     private static function newEntityFoundThroughRelationshipMessage(AssociationMetadata $association, $entity) : string
256 256
     {
257 257
         return 'A new entity was found through the relationship \''
258
-            . $association->getSourceEntity() . '#' . $association->getName() . '\' that was not'
259
-            . ' configured to cascade persist operations for entity: ' . self::objToStr($entity) . '.'
258
+            . $association->getSourceEntity().'#'.$association->getName().'\' that was not'
259
+            . ' configured to cascade persist operations for entity: '.self::objToStr($entity).'.'
260 260
             . ' To solve this issue: Either explicitly call EntityManager#persist()'
261 261
             . ' on this unknown entity or configure cascade persist'
262 262
             . ' this association in the mapping for example @ManyToOne(..,cascade={"persist"}).'
263 263
             . (\method_exists($entity, '__toString')
264 264
                 ? ''
265 265
                 : ' If you cannot find out which entity causes the problem implement \''
266
-                . $association->getTargetEntity() . '#__toString()\' to get a clue.'
266
+                . $association->getTargetEntity().'#__toString()\' to get a clue.'
267 267
             );
268 268
     }
269 269
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityNotFoundException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
         $ids = [];
27 27
 
28 28
         foreach ($id as $key => $value) {
29
-            $ids[] = $key . '(' . $value . ')';
29
+            $ids[] = $key.'('.$value.')';
30 30
         }
31 31
 
32 32
         return new self(
33
-            'Entity of type \'' . $className . '\'' . ($ids ? ' for IDs ' . \implode(', ', $ids) : '') . ' was not found'
33
+            'Entity of type \''.$className.'\''.($ids ? ' for IDs '.\implode(', ', $ids) : '').' was not found'
34 34
         );
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/AbstractQuery.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
     public function getParameter($key)
302 302
     {
303 303
         $filteredParameters = $this->parameters->filter(
304
-            static function (Query\Parameter $parameter) use ($key) : bool {
304
+            static function(Query\Parameter $parameter) use ($key) : bool {
305 305
                 $parameterName = $parameter->getName();
306 306
 
307 307
                 return $key === $parameterName || (string) $key === (string) $parameterName;
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
             return $value;
395 395
         }
396 396
 
397
-        if (! \is_object($value)) {
397
+        if ( ! \is_object($value)) {
398 398
             return $value;
399 399
         }
400 400
 
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
             return null;
726 726
         }
727 727
 
728
-        if (! \is_array($result)) {
728
+        if ( ! \is_array($result)) {
729 729
             return $result;
730 730
         }
731 731
 
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
             throw new NoResultException();
760 760
         }
761 761
 
762
-        if (! \is_array($result)) {
762
+        if ( ! \is_array($result)) {
763 763
             return $result;
764 764
         }
765 765
 
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
             $this->setHydrationMode($hydrationMode);
850 850
         }
851 851
 
852
-        if (! empty($parameters)) {
852
+        if ( ! empty($parameters)) {
853 853
             $this->setParameters($parameters);
854 854
         }
855 855
 
@@ -888,11 +888,11 @@  discard block
 block discarded – undo
888 888
             $this->setHydrationMode($hydrationMode);
889 889
         }
890 890
 
891
-        if (! empty($parameters)) {
891
+        if ( ! empty($parameters)) {
892 892
             $this->setParameters($parameters);
893 893
         }
894 894
 
895
-        $setCacheEntry = static function () {
895
+        $setCacheEntry = static function() {
896 896
         };
897 897
 
898 898
         if ($this->hydrationCacheProfile !== null) {
@@ -906,11 +906,11 @@  discard block
 block discarded – undo
906 906
                 return $result[$realCacheKey];
907 907
             }
908 908
 
909
-            if (! $result) {
909
+            if ( ! $result) {
910 910
                 $result = [];
911 911
             }
912 912
 
913
-            $setCacheEntry = static function ($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) {
913
+            $setCacheEntry = static function($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) {
914 914
                 $result[$realCacheKey] = $data;
915 915
 
916 916
                 $cache->save($cacheKey, $result, $queryCacheProfile->getLifetime());
@@ -1072,7 +1072,7 @@  discard block
 block discarded – undo
1072 1072
     {
1073 1073
         $query  = $this->getSQL();
1074 1074
         $hints  = $this->getHints();
1075
-        $params = \array_map(function (Parameter $parameter) {
1075
+        $params = \array_map(function(Parameter $parameter) {
1076 1076
             $value = $parameter->getValue();
1077 1077
 
1078 1078
             // Small optimization
@@ -1086,6 +1086,6 @@  discard block
 block discarded – undo
1086 1086
 
1087 1087
         \ksort($hints);
1088 1088
 
1089
-        return \sha1($query . '-' . \serialize($params) . '-' . \serialize($hints));
1089
+        return \sha1($query.'-'.\serialize($params).'-'.\serialize($hints));
1090 1090
     }
1091 1091
 }
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
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      */
101 101
     private function assertValidField($field)
102 102
     {
103
-        if (! isset($this->entityChangeSet[$field])) {
103
+        if ( ! isset($this->entityChangeSet[$field])) {
104 104
             throw new InvalidArgumentException(\sprintf(
105 105
                 'Field "%s" is not a valid field of the entity "%s" in PreUpdateEventArgs.',
106 106
                 $field,
Please login to merge, or discard this patch.
lib/Doctrine/ORM/QueryBuilder.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1353,9 +1353,9 @@  discard block
 block discarded – undo
1353 1353
     private function getDQLForDelete()
1354 1354
     {
1355 1355
         return 'DELETE'
1356
-              . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', '])
1357
-              . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1358
-              . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1356
+                . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', '])
1357
+                . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1358
+                . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1359 1359
     }
1360 1360
 
1361 1361
     /**
@@ -1364,10 +1364,10 @@  discard block
 block discarded – undo
1364 1364
     private function getDQLForUpdate()
1365 1365
     {
1366 1366
         return 'UPDATE'
1367
-              . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', '])
1368
-              . $this->getReducedDQLQueryPart('set', ['pre' => ' SET ', 'separator' => ', '])
1369
-              . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1370
-              . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1367
+                . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', '])
1368
+                . $this->getReducedDQLQueryPart('set', ['pre' => ' SET ', 'separator' => ', '])
1369
+                . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1370
+                . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1371 1371
     }
1372 1372
 
1373 1373
     /**
@@ -1376,8 +1376,8 @@  discard block
 block discarded – undo
1376 1376
     private function getDQLForSelect()
1377 1377
     {
1378 1378
         $dql = 'SELECT'
1379
-             . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '')
1380
-             . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']);
1379
+                . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '')
1380
+                . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']);
1381 1381
 
1382 1382
         $fromParts   = $this->getDQLPart('from');
1383 1383
         $joinParts   = $this->getDQLPart('join');
@@ -1401,10 +1401,10 @@  discard block
 block discarded – undo
1401 1401
         }
1402 1402
 
1403 1403
         $dql .= \implode(', ', $fromClauses)
1404
-              . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1405
-              . $this->getReducedDQLQueryPart('groupBy', ['pre' => ' GROUP BY ', 'separator' => ', '])
1406
-              . $this->getReducedDQLQueryPart('having', ['pre' => ' HAVING '])
1407
-              . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1404
+                . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1405
+                . $this->getReducedDQLQueryPart('groupBy', ['pre' => ' GROUP BY ', 'separator' => ', '])
1406
+                . $this->getReducedDQLQueryPart('having', ['pre' => ' HAVING '])
1407
+                . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1408 1408
 
1409 1409
         return $dql;
1410 1410
     }
@@ -1424,8 +1424,8 @@  discard block
 block discarded – undo
1424 1424
         }
1425 1425
 
1426 1426
         return ($options['pre'] ?? '')
1427
-             . (\is_array($queryPart) ? \implode($options['separator'], $queryPart) : $queryPart)
1428
-             . ($options['post'] ?? '');
1427
+                . (\is_array($queryPart) ? \implode($options['separator'], $queryPart) : $queryPart)
1428
+                . ($options['post'] ?? '');
1429 1429
     }
1430 1430
 
1431 1431
     /**
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     {
418 418
         $aliases = $this->getRootAliases();
419 419
 
420
-        if (! isset($aliases[0])) {
420
+        if ( ! isset($aliases[0])) {
421 421
             throw new RuntimeException('No alias was set before invoking getRootAlias().');
422 422
         }
423 423
 
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
     public function getParameter($key)
601 601
     {
602 602
         $filteredParameters = $this->parameters->filter(
603
-            static function (Query\Parameter $parameter) use ($key) : bool {
603
+            static function(Query\Parameter $parameter) use ($key) : bool {
604 604
                 $parameterName = $parameter->getName();
605 605
 
606 606
                 return $key === $parameterName || (string) $key === (string) $parameterName;
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
     {
677 677
         if ($append && ($dqlPartName === 'where' || $dqlPartName === 'having')) {
678 678
             throw new InvalidArgumentException(
679
-                "Using \$append = true does not have an effect with 'where' or 'having' " .
679
+                "Using \$append = true does not have an effect with 'where' or 'having' ".
680 680
                 'parts. See QueryBuilder#andWhere() for an example for correct usage.'
681 681
             );
682 682
         }
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
     {
818 818
         $this->type = self::DELETE;
819 819
 
820
-        if (! $delete) {
820
+        if ( ! $delete) {
821 821
             return $this;
822 822
         }
823 823
 
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
     {
845 845
         $this->type = self::UPDATE;
846 846
 
847
-        if (! $update) {
847
+        if ( ! $update) {
848 848
             return $this;
849 849
         }
850 850
 
@@ -899,7 +899,7 @@  discard block
 block discarded – undo
899 899
     {
900 900
         $rootAliases = $this->getRootAliases();
901 901
 
902
-        if (! \in_array($alias, $rootAliases, true)) {
902
+        if ( ! \in_array($alias, $rootAliases, true)) {
903 903
             throw new Query\QueryException(
904 904
                 \sprintf('Specified root alias %s must be set before invoking indexBy().', $alias)
905 905
             );
@@ -1060,7 +1060,7 @@  discard block
 block discarded – undo
1060 1060
      */
1061 1061
     public function where($predicates)
1062 1062
     {
1063
-        if (! (\func_num_args() === 1 && $predicates instanceof Expr\Composite)) {
1063
+        if ( ! (\func_num_args() === 1 && $predicates instanceof Expr\Composite)) {
1064 1064
             $predicates = new Expr\Andx(\func_get_args());
1065 1065
         }
1066 1066
 
@@ -1179,7 +1179,7 @@  discard block
 block discarded – undo
1179 1179
      */
1180 1180
     public function having($having)
1181 1181
     {
1182
-        if (! (\func_num_args() === 1 && ($having instanceof Expr\Andx || $having instanceof Expr\Orx))) {
1182
+        if ( ! (\func_num_args() === 1 && ($having instanceof Expr\Andx || $having instanceof Expr\Orx))) {
1183 1183
             $having = new Expr\Andx(\func_get_args());
1184 1184
         }
1185 1185
 
@@ -1277,7 +1277,7 @@  discard block
 block discarded – undo
1277 1277
     public function addCriteria(Criteria $criteria)
1278 1278
     {
1279 1279
         $allAliases = $this->getAllAliases();
1280
-        if (! isset($allAliases[0])) {
1280
+        if ( ! isset($allAliases[0])) {
1281 1281
             throw new Query\QueryException('No aliases are set before invoking addCriteria().');
1282 1282
         }
1283 1283
 
@@ -1295,14 +1295,14 @@  discard block
 block discarded – undo
1295 1295
             foreach ($criteria->getOrderings() as $sort => $order) {
1296 1296
                 $hasValidAlias = false;
1297 1297
                 foreach ($allAliases as $alias) {
1298
-                    if (\strpos($sort . '.', $alias . '.') === 0) {
1298
+                    if (\strpos($sort.'.', $alias.'.') === 0) {
1299 1299
                         $hasValidAlias = true;
1300 1300
                         break;
1301 1301
                     }
1302 1302
                 }
1303 1303
 
1304
-                if (! $hasValidAlias) {
1305
-                    $sort = $allAliases[0] . '.' . $sort;
1304
+                if ( ! $hasValidAlias) {
1305
+                    $sort = $allAliases[0].'.'.$sort;
1306 1306
                 }
1307 1307
 
1308 1308
                 $this->addOrderBy($sort, $order);
@@ -1376,7 +1376,7 @@  discard block
 block discarded – undo
1376 1376
     private function getDQLForSelect()
1377 1377
     {
1378 1378
         $dql = 'SELECT'
1379
-             . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '')
1379
+             . ($this->dqlParts['distinct'] === true ? ' DISTINCT' : '')
1380 1380
              . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']);
1381 1381
 
1382 1382
         $fromParts   = $this->getDQLPart('from');
@@ -1384,7 +1384,7 @@  discard block
 block discarded – undo
1384 1384
         $fromClauses = [];
1385 1385
 
1386 1386
         // Loop through all FROM clauses
1387
-        if (! empty($fromParts)) {
1387
+        if ( ! empty($fromParts)) {
1388 1388
             $dql .= ' FROM ';
1389 1389
 
1390 1390
             foreach ($fromParts as $from) {
@@ -1392,7 +1392,7 @@  discard block
 block discarded – undo
1392 1392
 
1393 1393
                 if ($from instanceof Expr\From && isset($joinParts[$from->getAlias()])) {
1394 1394
                     foreach ($joinParts[$from->getAlias()] as $join) {
1395
-                        $fromClause .= ' ' . ((string) $join);
1395
+                        $fromClause .= ' '.((string) $join);
1396 1396
                     }
1397 1397
                 }
1398 1398
 
Please login to merge, or discard this patch.
bin/doctrine-pear.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 $classLoader = new \Doctrine\Common\ClassLoader('Symfony');
12 12
 $classLoader->register();
13 13
 
14
-$configFile = \getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';
14
+$configFile = \getcwd().DIRECTORY_SEPARATOR.'cli-config.php';
15 15
 
16 16
 $helperSet = null;
17 17
 if (\file_exists($configFile)) {
18 18
     if ( ! \is_readable($configFile)) {
19 19
         \trigger_error(
20
-            'Configuration file [' . $configFile . '] does not have read permission.', E_USER_ERROR
20
+            'Configuration file ['.$configFile.'] does not have read permission.', E_USER_ERROR
21 21
         );
22 22
     }
23 23
 
Please login to merge, or discard this patch.
bin/doctrine.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
 use Doctrine\ORM\Tools\Console\ConsoleRunner;
7 7
 
8 8
 $autoloadFiles = [
9
-    __DIR__ . '/../vendor/autoload.php',
10
-    __DIR__ . '/../../../autoload.php'
9
+    __DIR__.'/../vendor/autoload.php',
10
+    __DIR__.'/../../../autoload.php'
11 11
 ];
12 12
 
13 13
 foreach ($autoloadFiles as $autoloadFile) {
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
     }
18 18
 }
19 19
 
20
-$directories = [\getcwd(), \getcwd() . DIRECTORY_SEPARATOR . 'config'];
20
+$directories = [\getcwd(), \getcwd().DIRECTORY_SEPARATOR.'config'];
21 21
 
22 22
 $configFile = null;
23 23
 foreach ($directories as $directory) {
24
-    $configFile = $directory . DIRECTORY_SEPARATOR . 'cli-config.php';
24
+    $configFile = $directory.DIRECTORY_SEPARATOR.'cli-config.php';
25 25
 
26 26
     if (\file_exists($configFile)) {
27 27
         break;
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 }
35 35
 
36 36
 if ( ! \is_readable($configFile)) {
37
-    echo 'Configuration file [' . $configFile . '] does not have read permission.' . "\n";
37
+    echo 'Configuration file ['.$configFile.'] does not have read permission.'."\n";
38 38
     exit(1);
39 39
 }
40 40
 
Please login to merge, or discard this patch.