Completed
Pull Request — master (#7902)
by
unknown
63:54
created
tests/Doctrine/Tests/Mocks/HydratorMockStatement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     public function fetchColumn($columnNumber = 0)
45 45
     {
46 46
         $row = \current($this->resultSet);
47
-        if (! \is_array($row)) {
47
+        if ( ! \is_array($row)) {
48 48
             return false;
49 49
         }
50 50
         $val = \array_shift($row);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/ConnectionMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
     public function quote($input, $type = null)
117 117
     {
118 118
         if (\is_string($input)) {
119
-            return "'" . $input . "'";
119
+            return "'".$input."'";
120 120
         }
121 121
 
122 122
         return $input;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/TestInit.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,20 +15,20 @@
 block discarded – undo
15 15
 \error_reporting(E_ALL | E_STRICT);
16 16
 \date_default_timezone_set('UTC');
17 17
 
18
-if (\file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
18
+if (\file_exists(__DIR__.'/../../../vendor/autoload.php')) {
19 19
     // dependencies were installed via composer - this is the main project
20
-    require __DIR__ . '/../../../vendor/autoload.php';
21
-} elseif (\file_exists(__DIR__ . '/../../../../../autoload.php')) {
20
+    require __DIR__.'/../../../vendor/autoload.php';
21
+} elseif (\file_exists(__DIR__.'/../../../../../autoload.php')) {
22 22
     // installed as a dependency in `vendor`
23
-    require __DIR__ . '/../../../../../autoload.php';
23
+    require __DIR__.'/../../../../../autoload.php';
24 24
 } else {
25 25
     throw new Exception('Can\'t find autoload.php. Did you install dependencies via composer?');
26 26
 }
27 27
 
28
-if (! \file_exists(__DIR__ . '/Proxies') && ! \mkdir(__DIR__ . '/Proxies')) {
29
-    throw new Exception('Could not create ' . __DIR__ . '/Proxies Folder.');
28
+if ( ! \file_exists(__DIR__.'/Proxies') && ! \mkdir(__DIR__.'/Proxies')) {
29
+    throw new Exception('Could not create '.__DIR__.'/Proxies Folder.');
30 30
 }
31 31
 
32
-if (! \file_exists(__DIR__ . '/ORM/Proxy/generated') && ! \mkdir(__DIR__ . '/ORM/Proxy/generated')) {
33
-    throw new Exception('Could not create ' . __DIR__ . '/ORM/Proxy/generated Folder.');
32
+if ( ! \file_exists(__DIR__.'/ORM/Proxy/generated') && ! \mkdir(__DIR__.'/ORM/Proxy/generated')) {
33
+    throw new Exception('Could not create '.__DIR__.'/ORM/Proxy/generated Folder.');
34 34
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Proxy/Factory/StaticProxyFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function generateProxyClasses(array $classes) : int
58 58
     {
59
-        $concreteClasses = \array_filter($classes, static function (ClassMetadata $metadata) : bool {
59
+        $concreteClasses = \array_filter($classes, static function(ClassMetadata $metadata) : bool {
60 60
             return ! ($metadata->isMappedSuperclass || $metadata->getReflectionClass()->isAbstract());
61 61
         });
62 62
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 ->proxyFactory
66 66
                 ->createProxy(
67 67
                     $metadata->getClassName(),
68
-                    static function () {
68
+                    static function() {
69 69
                         // empty closure, serves its purpose, for now
70 70
                     },
71 71
                     $this->skippedFieldsFqns($metadata)
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 ->getUnitOfWork()
90 90
                 ->getEntityPersister($metadata->getClassName());
91 91
 
92
-        $proxyInstance                                            = $this
92
+        $proxyInstance = $this
93 93
             ->proxyFactory
94 94
             ->createProxy(
95 95
                 $metadata->getClassName(),
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
     private function makeInitializer(ClassMetadata $metadata, EntityPersister $persister) : Closure
110 110
     {
111
-        return static function (
111
+        return static function(
112 112
             GhostObjectInterface $ghostObject,
113 113
             string $method,
114 114
             // we don't care
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             $identifier = $persister->getIdentifier($ghostObject);
128 128
 
129 129
             // @TODO how do we use `$properties` in the persister? That would be a massive optimisation
130
-            if (! $persister->loadById($identifier, $ghostObject)) {
130
+            if ( ! $persister->loadById($identifier, $ghostObject)) {
131 131
                 $initializer = $originalInitializer;
132 132
 
133 133
                 throw EntityNotFoundException::fromClassNameAndIdentifier(
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $transientFieldsFqns = [];
160 160
 
161 161
         foreach ($metadata->getPropertiesIterator() as $name => $property) {
162
-            if (! $property instanceof TransientMetadata) {
162
+            if ( ! $property instanceof TransientMetadata) {
163 163
                 continue;
164 164
             }
165 165
 
@@ -197,11 +197,11 @@  discard block
 block discarded – undo
197 197
     private function propertyFqcn(ReflectionProperty $property) : string
198 198
     {
199 199
         if ($property->isPrivate()) {
200
-            return "\0" . $property->getDeclaringClass()->getName() . "\0" . $property->getName();
200
+            return "\0".$property->getDeclaringClass()->getName()."\0".$property->getName();
201 201
         }
202 202
 
203 203
         if ($property->isProtected()) {
204
-            return "\0*\0" . $property->getName();
204
+            return "\0*\0".$property->getName();
205 205
         }
206 206
 
207 207
         return $property->getName();
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/QueryExpressionVisitor.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             case CompositeExpression::TYPE_OR:
95 95
                 return new Expr\Orx($expressionList);
96 96
             default:
97
-                throw new RuntimeException('Unknown composite ' . $expr->getType());
97
+                throw new RuntimeException('Unknown composite '.$expr->getType());
98 98
         }
99 99
     }
100 100
 
@@ -103,14 +103,14 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function walkComparison(Comparison $comparison)
105 105
     {
106
-        if (! isset($this->queryAliases[0])) {
106
+        if ( ! isset($this->queryAliases[0])) {
107 107
             throw new QueryException('No aliases are set before invoking walkComparison().');
108 108
         }
109 109
 
110
-        $field = $this->queryAliases[0] . '.' . $comparison->getField();
110
+        $field = $this->queryAliases[0].'.'.$comparison->getField();
111 111
 
112 112
         foreach ($this->queryAliases as $alias) {
113
-            if (\strpos($comparison->getField() . '.', $alias . '.') === 0) {
113
+            if (\strpos($comparison->getField().'.', $alias.'.') === 0) {
114 114
                 $field = $comparison->getField();
115 115
                 break;
116 116
             }
@@ -121,13 +121,13 @@  discard block
 block discarded – undo
121 121
 
122 122
         foreach ($this->parameters as $parameter) {
123 123
             if ($parameter->getName() === $parameterName) {
124
-                $parameterName .= '_' . $parameterCount;
124
+                $parameterName .= '_'.$parameterCount;
125 125
                 break;
126 126
             }
127 127
         }
128 128
 
129 129
         $parameter   = new Parameter($parameterName, $this->walkValue($comparison->getValue()));
130
-        $placeholder = ':' . $parameterName;
130
+        $placeholder = ':'.$parameterName;
131 131
 
132 132
         switch ($comparison->getOperator()) {
133 133
             case Comparison::IN:
@@ -154,17 +154,17 @@  discard block
 block discarded – undo
154 154
 
155 155
                 return $this->expr->neq($field, $placeholder);
156 156
             case Comparison::CONTAINS:
157
-                $parameter->setValue('%' . $parameter->getValue() . '%', $parameter->getType());
157
+                $parameter->setValue('%'.$parameter->getValue().'%', $parameter->getType());
158 158
                 $this->parameters[] = $parameter;
159 159
 
160 160
                 return $this->expr->like($field, $placeholder);
161 161
             case Comparison::STARTS_WITH:
162
-                $parameter->setValue($parameter->getValue() . '%', $parameter->getType());
162
+                $parameter->setValue($parameter->getValue().'%', $parameter->getType());
163 163
                 $this->parameters[] = $parameter;
164 164
 
165 165
                 return $this->expr->like($field, $placeholder);
166 166
             case Comparison::ENDS_WITH:
167
-                $parameter->setValue('%' . $parameter->getValue(), $parameter->getType());
167
+                $parameter->setValue('%'.$parameter->getValue(), $parameter->getType());
168 168
                 $this->parameters[] = $parameter;
169 169
 
170 170
                 return $this->expr->like($field, $placeholder);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                     );
181 181
                 }
182 182
 
183
-                throw new RuntimeException('Unknown comparison operator: ' . $comparison->getOperator());
183
+                throw new RuntimeException('Unknown comparison operator: '.$comparison->getOperator());
184 184
         }
185 185
     }
186 186
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
         // 1. Create an INSERT INTO temptable ... SELECT identifiers WHERE $AST->getWhereClause()
58 58
         $sqlWalker->setSQLTableAlias($primaryClass->getTableName(), 'i0', $primaryDqlAlias);
59 59
 
60
-        $this->insertSql = 'INSERT INTO ' . $tempTable . ' (' . $idColumnNameList . ')'
61
-                . ' SELECT i0.' . \implode(', i0.', \array_keys($idColumns));
60
+        $this->insertSql = 'INSERT INTO '.$tempTable.' ('.$idColumnNameList.')'
61
+                . ' SELECT i0.'.\implode(', i0.', \array_keys($idColumns));
62 62
 
63 63
         $rangeDecl        = new AST\RangeVariableDeclaration($primaryClass->getClassName(), $primaryDqlAlias);
64 64
         $fromClause       = new AST\FromClause([new AST\IdentificationVariableDeclaration($rangeDecl, null, [])]);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         // 3. Create and store DELETE statements
81 81
         $hierarchyClasses = \array_merge(
82 82
             \array_map(
83
-                static function ($className) use ($em) {
83
+                static function($className) use ($em) {
84 84
                     return $em->getClassMetadata($className);
85 85
                 },
86 86
                 \array_reverse($primaryClass->getSubClasses())
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
             ];
104 104
         }
105 105
 
106
-        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' ('
107
-                . $platform->getColumnDeclarationListSQL($columnDefinitions) . ')';
106
+        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL().' '.$tempTable.' ('
107
+                . $platform->getColumnDeclarationListSQL($columnDefinitions).')';
108 108
 
109 109
         $this->dropTempTableSql = $platform->getDropTemporaryTableSQL($tempTable);
110 110
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Exec/MultiTableUpdateExecutor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         // 1. Create an INSERT INTO temptable ... SELECT identifiers WHERE $AST->getWhereClause()
68 68
         $sqlWalker->setSQLTableAlias($primaryClass->getTableName(), 'i0', $updateClause->aliasIdentificationVariable);
69 69
 
70
-        $this->insertSql = 'INSERT INTO ' . $tempTable . ' (' . $idColumnNameList . ')'
71
-                . ' SELECT i0.' . \implode(', i0.', \array_keys($idColumns));
70
+        $this->insertSql = 'INSERT INTO '.$tempTable.' ('.$idColumnNameList.')'
71
+                . ' SELECT i0.'.\implode(', i0.', \array_keys($idColumns));
72 72
 
73 73
         $rangeDecl  = new AST\RangeVariableDeclaration($primaryClass->getClassName(), $updateClause->aliasIdentificationVariable);
74 74
         $fromClause = new AST\FromClause([new AST\IdentificationVariableDeclaration($rangeDecl, null, [])]);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         // 3. Create and store UPDATE statements
87 87
         $hierarchyClasses = \array_merge(
88 88
             \array_map(
89
-                static function ($className) use ($em) {
89
+                static function($className) use ($em) {
90 90
                     return $em->getClassMetadata($className);
91 91
                 },
92 92
                 \array_reverse($primaryClass->getSubClasses())
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
             ];
143 143
         }
144 144
 
145
-        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL() . ' ' . $tempTable . ' ('
146
-                . $platform->getColumnDeclarationListSQL($columnDefinitions) . ')';
145
+        $this->createTempTableSql = $platform->getCreateTemporaryTableSnippetSQL().' '.$tempTable.' ('
146
+                . $platform->getColumnDeclarationListSQL($columnDefinitions).')';
147 147
 
148 148
         $this->dropTempTableSql = $platform->getDropTemporaryTableSQL($tempTable);
149 149
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/ResultSetMapping.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         $found = false;
223 223
 
224 224
         foreach (\array_merge($this->metaMappings, $this->fieldMappings) as $columnName => $columnFieldName) {
225
-            if (! ($columnFieldName === $fieldName && $this->columnOwnerMap[$columnName] === $alias)) {
225
+            if ( ! ($columnFieldName === $fieldName && $this->columnOwnerMap[$columnName] === $alias)) {
226 226
                 continue;
227 227
             }
228 228
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         // field name => class name of declaring class
332 332
         $this->declaringClasses[$columnName] = $declaringClass ?: $this->aliasMap[$alias];
333 333
 
334
-        if (! $this->isMixed && $this->scalarMappings) {
334
+        if ( ! $this->isMixed && $this->scalarMappings) {
335 335
             $this->isMixed = true;
336 336
         }
337 337
 
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         $this->scalarMappings[$columnName] = $alias;
377 377
         $this->typeMappings[$columnName]   = $type;
378 378
 
379
-        if (! $this->isMixed && $this->fieldMappings) {
379
+        if ( ! $this->isMixed && $this->fieldMappings) {
380 380
             $this->isMixed = true;
381 381
         }
382 382
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Parser.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
         }
399 399
 
400 400
         foreach ($this->queryComponents as $dqlAlias => $qComp) {
401
-            if (! isset($this->identVariableExpressions[$dqlAlias])) {
401
+            if ( ! isset($this->identVariableExpressions[$dqlAlias])) {
402 402
                 continue;
403 403
             }
404 404
 
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
         $tokenStr = \substr($dql, (int) $token['position'], $length);
463 463
 
464 464
         // Building informative message
465
-        $message = 'line 0, col ' . $tokenPos . " near '" . $tokenStr . "': Error: " . $message;
465
+        $message = 'line 0, col '.$tokenPos." near '".$tokenStr."': Error: ".$message;
466 466
 
467 467
         throw QueryException::semanticalError(
468 468
             $message,
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
             $identVariable = $deferredItem['expression'];
566 566
 
567 567
             // Check if IdentificationVariable exists in queryComponents
568
-            if (! isset($this->queryComponents[$identVariable])) {
568
+            if ( ! isset($this->queryComponents[$identVariable])) {
569 569
                 $this->semanticalError(
570 570
                     \sprintf("'%s' is not defined.", $identVariable),
571 571
                     $deferredItem['token']
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
             $qComp = $this->queryComponents[$identVariable];
576 576
 
577 577
             // Check if queryComponent points to an AbstractSchemaName or a ResultVariable
578
-            if (! isset($qComp['metadata'])) {
578
+            if ( ! isset($qComp['metadata'])) {
579 579
                 $this->semanticalError(
580 580
                     \sprintf("'%s' does not point to a Class.", $identVariable),
581 581
                     $deferredItem['token']
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
             // If the namespace is not given then assumes the first FROM entity namespace
610 610
             if (\strpos($className, '\\') === false && ! \class_exists($className) && \strpos($fromClassName, '\\') !== false) {
611 611
                 $namespace = \substr($fromClassName, 0, \strrpos($fromClassName, '\\'));
612
-                $fqcn      = $namespace . '\\' . $className;
612
+                $fqcn      = $namespace.'\\'.$className;
613 613
 
614 614
                 if (\class_exists($fqcn)) {
615 615
                     $expression->className = $fqcn;
@@ -617,13 +617,13 @@  discard block
 block discarded – undo
617 617
                 }
618 618
             }
619 619
 
620
-            if (! \class_exists($className)) {
620
+            if ( ! \class_exists($className)) {
621 621
                 $this->semanticalError(\sprintf('Class "%s" is not defined.', $className), $token);
622 622
             }
623 623
 
624 624
             $class = new ReflectionClass($className);
625 625
 
626
-            if (! $class->isInstantiable()) {
626
+            if ( ! $class->isInstantiable()) {
627 627
                 $this->semanticalError(\sprintf('Class "%s" can not be instantiated.', $className), $token);
628 628
             }
629 629
 
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
             $resultVariable = $deferredItem['expression'];
681 681
 
682 682
             // Check if ResultVariable exists in queryComponents
683
-            if (! isset($this->queryComponents[$resultVariable])) {
683
+            if ( ! isset($this->queryComponents[$resultVariable])) {
684 684
                 $this->semanticalError(
685 685
                     \sprintf("'%s' is not defined.", $resultVariable),
686 686
                     $deferredItem['token']
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
             $qComp = $this->queryComponents[$resultVariable];
691 691
 
692 692
             // Check if queryComponent points to an AbstractSchemaName or a ResultVariable
693
-            if (! isset($qComp['resultVariable'])) {
693
+            if ( ! isset($qComp['resultVariable'])) {
694 694
                 $this->semanticalError(
695 695
                     \sprintf("'%s' does not point to a ResultVariable.", $resultVariable),
696 696
                     $deferredItem['token']
@@ -732,9 +732,9 @@  discard block
 block discarded – undo
732 732
             $property = $class->getProperty($field);
733 733
 
734 734
             // Check if field or association exists
735
-            if (! $property) {
735
+            if ( ! $property) {
736 736
                 $this->semanticalError(
737
-                    'Class ' . $class->getClassName() . ' has no field or association named ' . $field,
737
+                    'Class '.$class->getClassName().' has no field or association named '.$field,
738 738
                     $deferredItem['token']
739 739
                 );
740 740
             }
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
             // Validate if PathExpression is one of the expected types
751 751
             $expectedType = $pathExpression->expectedType;
752 752
 
753
-            if (! ($expectedType & $fieldType)) {
753
+            if ( ! ($expectedType & $fieldType)) {
754 754
                 // We need to recognize which was expected type(s)
755 755
                 $expectedStringTypes = [];
756 756
 
@@ -772,8 +772,8 @@  discard block
 block discarded – undo
772 772
                 // Build the error message
773 773
                 $semanticalError  = 'Invalid PathExpression. ';
774 774
                 $semanticalError .= \count($expectedStringTypes) === 1
775
-                    ? 'Must be a ' . $expectedStringTypes[0] . '.'
776
-                    : \implode(' or ', $expectedStringTypes) . ' expected.';
775
+                    ? 'Must be a '.$expectedStringTypes[0].'.'
776
+                    : \implode(' or ', $expectedStringTypes).' expected.';
777 777
 
778 778
                 $this->semanticalError($semanticalError, $deferredItem['token']);
779 779
             }
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
 
786 786
     private function processRootEntityAliasSelected()
787 787
     {
788
-        if (! $this->identVariableExpressions) {
788
+        if ( ! $this->identVariableExpressions) {
789 789
             return;
790 790
         }
791 791
 
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
 
943 943
         [$namespaceAlias, $simpleClassName] = \explode(':', $this->lexer->token['value']);
944 944
 
945
-        return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName;
945
+        return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName;
946 946
     }
947 947
 
948 948
     /**
@@ -1021,9 +1021,9 @@  discard block
 block discarded – undo
1021 1021
     {
1022 1022
         $identVariable = $this->IdentificationVariable();
1023 1023
 
1024
-        if (! isset($this->queryComponents[$identVariable])) {
1024
+        if ( ! isset($this->queryComponents[$identVariable])) {
1025 1025
             $this->semanticalError(
1026
-                'Identification Variable ' . $identVariable . ' used in join path expression but was not defined before.'
1026
+                'Identification Variable '.$identVariable.' used in join path expression but was not defined before.'
1027 1027
             );
1028 1028
         }
1029 1029
 
@@ -1037,8 +1037,8 @@  discard block
 block discarded – undo
1037 1037
         $class    = $qComp['metadata'];
1038 1038
         $property = $class->getProperty($field);
1039 1039
 
1040
-        if (! ($property !== null && $property instanceof AssociationMetadata)) {
1041
-            $this->semanticalError('Class ' . $class->getClassName() . ' has no association named ' . $field);
1040
+        if ( ! ($property !== null && $property instanceof AssociationMetadata)) {
1041
+            $this->semanticalError('Class '.$class->getClassName().' has no association named '.$field);
1042 1042
         }
1043 1043
 
1044 1044
         return new AST\JoinAssociationPathExpression($identVariable, $field);
@@ -1068,7 +1068,7 @@  discard block
 block discarded – undo
1068 1068
             while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1069 1069
                 $this->match(Lexer::T_DOT);
1070 1070
                 $this->match(Lexer::T_IDENTIFIER);
1071
-                $field .= '.' . $this->lexer->token['value'];
1071
+                $field .= '.'.$this->lexer->token['value'];
1072 1072
             }
1073 1073
         }
1074 1074
 
@@ -1450,7 +1450,7 @@  discard block
 block discarded – undo
1450 1450
         // Still need to decide between IdentificationVariable or ResultVariable
1451 1451
         $lookaheadValue = $this->lexer->lookahead['value'];
1452 1452
 
1453
-        if (! isset($this->queryComponents[$lookaheadValue])) {
1453
+        if ( ! isset($this->queryComponents[$lookaheadValue])) {
1454 1454
             $this->semanticalError('Cannot group by undefined identification or result variable.');
1455 1455
         }
1456 1456
 
@@ -1798,7 +1798,7 @@  discard block
 block discarded – undo
1798 1798
         while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1799 1799
             $this->match(Lexer::T_DOT);
1800 1800
             $this->match(Lexer::T_IDENTIFIER);
1801
-            $field .= '.' . $this->lexer->token['value'];
1801
+            $field .= '.'.$this->lexer->token['value'];
1802 1802
         }
1803 1803
 
1804 1804
         $partialFieldSet[] = $field;
@@ -1812,7 +1812,7 @@  discard block
 block discarded – undo
1812 1812
             while ($this->lexer->isNextToken(Lexer::T_DOT)) {
1813 1813
                 $this->match(Lexer::T_DOT);
1814 1814
                 $this->match(Lexer::T_IDENTIFIER);
1815
-                $field .= '.' . $this->lexer->token['value'];
1815
+                $field .= '.'.$this->lexer->token['value'];
1816 1816
             }
1817 1817
 
1818 1818
             $partialFieldSet[] = $field;
@@ -2418,7 +2418,7 @@  discard block
 block discarded – undo
2418 2418
 
2419 2419
         // Phase 1 AST optimization: Prevent AST\ConditionalFactor
2420 2420
         // if only one AST\ConditionalPrimary is defined
2421
-        if (! $not) {
2421
+        if ( ! $not) {
2422 2422
             return $conditionalPrimary;
2423 2423
         }
2424 2424
 
@@ -2437,7 +2437,7 @@  discard block
 block discarded – undo
2437 2437
     {
2438 2438
         $condPrimary = new AST\ConditionalPrimary();
2439 2439
 
2440
-        if (! $this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS)) {
2440
+        if ( ! $this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS)) {
2441 2441
             $condPrimary->simpleConditionalExpression = $this->SimpleConditionalExpression();
2442 2442
 
2443 2443
             return $condPrimary;
@@ -2605,7 +2605,7 @@  discard block
 block discarded – undo
2605 2605
             $this->match(Lexer::T_OF);
2606 2606
         }
2607 2607
 
2608
-        $collMemberExpr      = new AST\CollectionMemberExpression(
2608
+        $collMemberExpr = new AST\CollectionMemberExpression(
2609 2609
             $entityExpr,
2610 2610
             $this->CollectionValuedPathExpression()
2611 2611
         );
@@ -2939,7 +2939,7 @@  discard block
 block discarded – undo
2939 2939
         $lookaheadType = $this->lexer->lookahead['type'];
2940 2940
         $isDistinct    = false;
2941 2941
 
2942
-        if (! \in_array($lookaheadType, [Lexer::T_COUNT, Lexer::T_AVG, Lexer::T_MAX, Lexer::T_MIN, Lexer::T_SUM], true)) {
2942
+        if ( ! \in_array($lookaheadType, [Lexer::T_COUNT, Lexer::T_AVG, Lexer::T_MAX, Lexer::T_MIN, Lexer::T_SUM], true)) {
2943 2943
             $this->syntaxError('One of: MAX, MIN, AVG, SUM, COUNT');
2944 2944
         }
2945 2945
 
@@ -2969,7 +2969,7 @@  discard block
 block discarded – undo
2969 2969
         $lookaheadType = $this->lexer->lookahead['type'];
2970 2970
         $value         = $this->lexer->lookahead['value'];
2971 2971
 
2972
-        if (! \in_array($lookaheadType, [Lexer::T_ALL, Lexer::T_ANY, Lexer::T_SOME], true)) {
2972
+        if ( ! \in_array($lookaheadType, [Lexer::T_ALL, Lexer::T_ANY, Lexer::T_SOME], true)) {
2973 2973
             $this->syntaxError('ALL, ANY or SOME');
2974 2974
         }
2975 2975
 
@@ -3207,7 +3207,7 @@  discard block
 block discarded – undo
3207 3207
                 $lookaheadValue = $this->lexer->lookahead['value'];
3208 3208
 
3209 3209
                 // Validate existing component
3210
-                if (! isset($this->queryComponents[$lookaheadValue])) {
3210
+                if ( ! isset($this->queryComponents[$lookaheadValue])) {
3211 3211
                     $this->semanticalError('Cannot add having condition on undefined result variable.');
3212 3212
                 }
3213 3213
 
@@ -3218,7 +3218,7 @@  discard block
 block discarded – undo
3218 3218
                 }
3219 3219
 
3220 3220
                 // Validating ResultVariable
3221
-                if (! isset($this->queryComponents[$lookaheadValue]['resultVariable'])) {
3221
+                if ( ! isset($this->queryComponents[$lookaheadValue]['resultVariable'])) {
3222 3222
                     $this->semanticalError('Cannot add having condition on a non result variable.');
3223 3223
                 }
3224 3224
 
Please login to merge, or discard this patch.