Passed
Pull Request — master (#7840)
by Peter
09:06
created
lib/Doctrine/ORM/Query/QueryException.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function syntaxError($message, $previous = null)
34 34
     {
35
-        return new self('[Syntax Error] ' . $message, 0, $previous);
35
+        return new self('[Syntax Error] '.$message, 0, $previous);
36 36
     }
37 37
 
38 38
     /**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public static function semanticalError($message, $previous = null)
45 45
     {
46
-        return new self('[Semantical Error] ' . $message, 0, $previous);
46
+        return new self('[Semantical Error] '.$message, 0, $previous);
47 47
     }
48 48
 
49 49
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public static function invalidParameterType($expected, $received)
64 64
     {
65
-        return new self('Invalid parameter type, ' . $received . ' given, but ' . $expected . ' expected.');
65
+        return new self('Invalid parameter type, '.$received.' given, but '.$expected.' expected.');
66 66
     }
67 67
 
68 68
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public static function invalidParameterPosition($pos)
74 74
     {
75
-        return new self('Invalid parameter position: ' . $pos);
75
+        return new self('Invalid parameter position: '.$pos);
76 76
     }
77 77
 
78 78
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public static function tooManyParameters($expected, $received)
85 85
     {
86
-        return new self('Too many parameters: the query defines ' . $expected . ' parameters and you bound ' . $received);
86
+        return new self('Too many parameters: the query defines '.$expected.' parameters and you bound '.$received);
87 87
     }
88 88
 
89 89
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public static function tooFewParameters($expected, $received)
96 96
     {
97
-        return new self('Too few parameters: the query defines ' . $expected . ' parameters but you only bound ' . $received);
97
+        return new self('Too few parameters: the query defines '.$expected.' parameters but you only bound '.$received);
98 98
     }
99 99
 
100 100
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public static function invalidParameterFormat($value)
106 106
     {
107
-        return new self('Invalid parameter format, ' . $value . ' given, but :<name> or ?<num> expected.');
107
+        return new self('Invalid parameter format, '.$value.' given, but :<name> or ?<num> expected.');
108 108
     }
109 109
 
110 110
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public static function unknownParameter($key)
116 116
     {
117
-        return new self('Invalid parameter: token ' . $key . ' is not defined in the query.');
117
+        return new self('Invalid parameter: token '.$key.' is not defined in the query.');
118 118
     }
119 119
 
120 120
     /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     public static function invalidPathExpression($pathExpr)
134 134
     {
135 135
         return new self(
136
-            "Invalid PathExpression '" . $pathExpr->identificationVariable . '.' . $pathExpr->field . "'."
136
+            "Invalid PathExpression '".$pathExpr->identificationVariable.'.'.$pathExpr->field."'."
137 137
         );
138 138
     }
139 139
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public static function invalidLiteral($literal)
146 146
     {
147
-        return new self("Invalid literal '" . $literal . "'");
147
+        return new self("Invalid literal '".$literal."'");
148 148
     }
149 149
 
150 150
     /**
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
     public static function iterateWithFetchJoinCollectionNotAllowed($assoc)
156 156
     {
157 157
         return new self(
158
-            'Invalid query operation: Not allowed to iterate over fetch join collections ' .
159
-            'in class ' . $assoc['sourceEntity'] . ' association ' . $assoc['fieldName']
158
+            'Invalid query operation: Not allowed to iterate over fetch join collections '.
159
+            'in class '.$assoc['sourceEntity'].' association '.$assoc['fieldName']
160 160
         );
161 161
     }
162 162
 
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
     public static function partialObjectsAreDangerous()
167 167
     {
168 168
         return new self(
169
-            'Loading partial objects is dangerous. Fetch full objects or consider ' .
170
-            'using a different fetch mode. If you really want partial objects, ' .
169
+            'Loading partial objects is dangerous. Fetch full objects or consider '.
170
+            'using a different fetch mode. If you really want partial objects, '.
171 171
             'set the doctrine.forcePartialLoad query hint to TRUE.'
172 172
         );
173 173
     }
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
     public static function overwritingJoinConditionsNotYetSupported($assoc)
181 181
     {
182 182
         return new self(
183
-            'Unsupported query operation: It is not yet possible to overwrite the join ' .
184
-            'conditions in class ' . $assoc['sourceEntityName'] . ' association ' . $assoc['fieldName'] . '. ' .
183
+            'Unsupported query operation: It is not yet possible to overwrite the join '.
184
+            'conditions in class '.$assoc['sourceEntityName'].' association '.$assoc['fieldName'].'. '.
185 185
             'Use WITH to append additional join conditions to the association.'
186 186
         );
187 187
     }
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
     public static function associationPathInverseSideNotSupported(PathExpression $pathExpr)
193 193
     {
194 194
         return new self(
195
-            'A single-valued association path expression to an inverse side is not supported in DQL queries. ' .
196
-            'Instead of "' . $pathExpr->identificationVariable . '.' . $pathExpr->field . '" use an explicit join.'
195
+            'A single-valued association path expression to an inverse side is not supported in DQL queries. '.
196
+            'Instead of "'.$pathExpr->identificationVariable.'.'.$pathExpr->field.'" use an explicit join.'
197 197
         );
198 198
     }
199 199
 
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
     public static function associationPathCompositeKeyNotSupported()
218 218
     {
219 219
         return new self(
220
-            'A single-valued association path expression to an entity with a composite primary ' .
221
-            'key is not supported. Explicitly name the components of the composite primary key ' .
220
+            'A single-valued association path expression to an entity with a composite primary '.
221
+            'key is not supported. Explicitly name the components of the composite primary key '.
222 222
             'in the query.'
223 223
         );
224 224
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public static function instanceOfUnrelatedClass($className, $rootClass)
233 233
     {
234
-        return new self("Cannot check if a child of '" . $rootClass . "' is instanceof '" . $className . "', " .
234
+        return new self("Cannot check if a child of '".$rootClass."' is instanceof '".$className."', ".
235 235
             'inheritance hierarchy does not exists between these two classes.');
236 236
     }
237 237
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     public static function invalidQueryComponent($dqlAlias)
244 244
     {
245 245
         return new self(
246
-            "Invalid query component given for DQL alias '" . $dqlAlias . "', " .
246
+            "Invalid query component given for DQL alias '".$dqlAlias."', ".
247 247
             "requires 'metadata', 'parent', 'relation', 'map', 'nestingLevel' and 'token' keys."
248 248
         );
249 249
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/ToolsException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
 {
15 15
     public static function schemaToolFailure(string $sql, Throwable $e) : self
16 16
     {
17
-        return new self("Schema-Tool failed with Error '" . $e->getMessage() . "' while executing DDL: " . $sql, 0, $e);
17
+        return new self("Schema-Tool failed with Error '".$e->getMessage()."' while executing DDL: ".$sql, 0, $e);
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/Paginator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         /** @var Query $countQuery */
222 222
         $countQuery = $this->cloneQuery($this->query);
223 223
 
224
-        if (! $countQuery->hasHint(CountWalker::HINT_DISTINCT)) {
224
+        if ( ! $countQuery->hasHint(CountWalker::HINT_DISTINCT)) {
225 225
             $countQuery->setHint(CountWalker::HINT_DISTINCT, true);
226 226
         }
227 227
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         foreach ($parameters as $key => $parameter) {
249 249
             $parameterName = $parameter->getName();
250 250
 
251
-            if (! (isset($parameterMappings[$parameterName]) || array_key_exists($parameterName, $parameterMappings))) {
251
+            if ( ! (isset($parameterMappings[$parameterName]) || array_key_exists($parameterName, $parameterMappings))) {
252 252
                 unset($parameters[$key]);
253 253
             }
254 254
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/RowNumberOverFunction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
      */
29 29
     public function getSql(SqlWalker $sqlWalker)
30 30
     {
31
-        return 'ROW_NUMBER() OVER(' . trim($sqlWalker->walkOrderByClause(
31
+        return 'ROW_NUMBER() OVER('.trim($sqlWalker->walkOrderByClause(
32 32
             $this->orderByClause
33
-        )) . ')';
33
+        )).')';
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
                 [$pathExpression]
90 90
             );
91 91
             $expression                                       = new InExpression($arithmeticExpression);
92
-            $expression->literals[]                           = new InputParameter(':' . self::PAGINATOR_ID_ALIAS);
92
+            $expression->literals[]                           = new InputParameter(':'.self::PAGINATOR_ID_ALIAS);
93 93
         } else {
94 94
             $expression      = new NullComparisonExpression($pathExpression);
95 95
             $expression->not = false;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Annotation/DoctrineAnnotations.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -2,44 +2,44 @@
 block discarded – undo
2 2
 
3 3
 declare(strict_types=1);
4 4
 
5
-require_once __DIR__ . '/Annotation.php';
6
-require_once __DIR__ . '/AssociationOverride.php';
7
-require_once __DIR__ . '/AssociationOverrides.php';
8
-require_once __DIR__ . '/AttributeOverride.php';
9
-require_once __DIR__ . '/AttributeOverrides.php';
10
-require_once __DIR__ . '/Cache.php';
11
-require_once __DIR__ . '/ChangeTrackingPolicy.php';
12
-require_once __DIR__ . '/Column.php';
13
-require_once __DIR__ . '/CustomIdGenerator.php';
14
-require_once __DIR__ . '/DiscriminatorColumn.php';
15
-require_once __DIR__ . '/DiscriminatorMap.php';
16
-require_once __DIR__ . '/Embeddable.php';
17
-require_once __DIR__ . '/Embedded.php';
18
-require_once __DIR__ . '/Entity.php';
19
-require_once __DIR__ . '/EntityListeners.php';
20
-require_once __DIR__ . '/GeneratedValue.php';
21
-require_once __DIR__ . '/HasLifecycleCallbacks.php';
22
-require_once __DIR__ . '/Id.php';
23
-require_once __DIR__ . '/Index.php';
24
-require_once __DIR__ . '/InheritanceType.php';
25
-require_once __DIR__ . '/JoinColumn.php';
26
-require_once __DIR__ . '/JoinColumns.php';
27
-require_once __DIR__ . '/JoinTable.php';
28
-require_once __DIR__ . '/ManyToMany.php';
29
-require_once __DIR__ . '/ManyToOne.php';
30
-require_once __DIR__ . '/MappedSuperclass.php';
31
-require_once __DIR__ . '/OneToMany.php';
32
-require_once __DIR__ . '/OneToOne.php';
33
-require_once __DIR__ . '/OrderBy.php';
34
-require_once __DIR__ . '/PrePersist.php';
35
-require_once __DIR__ . '/PostLoad.php';
36
-require_once __DIR__ . '/PostPersist.php';
37
-require_once __DIR__ . '/PostRemove.php';
38
-require_once __DIR__ . '/PostUpdate.php';
39
-require_once __DIR__ . '/PreFlush.php';
40
-require_once __DIR__ . '/PreRemove.php';
41
-require_once __DIR__ . '/PreUpdate.php';
42
-require_once __DIR__ . '/SequenceGenerator.php';
43
-require_once __DIR__ . '/Table.php';
44
-require_once __DIR__ . '/UniqueConstraint.php';
45
-require_once __DIR__ . '/Version.php';
5
+require_once __DIR__.'/Annotation.php';
6
+require_once __DIR__.'/AssociationOverride.php';
7
+require_once __DIR__.'/AssociationOverrides.php';
8
+require_once __DIR__.'/AttributeOverride.php';
9
+require_once __DIR__.'/AttributeOverrides.php';
10
+require_once __DIR__.'/Cache.php';
11
+require_once __DIR__.'/ChangeTrackingPolicy.php';
12
+require_once __DIR__.'/Column.php';
13
+require_once __DIR__.'/CustomIdGenerator.php';
14
+require_once __DIR__.'/DiscriminatorColumn.php';
15
+require_once __DIR__.'/DiscriminatorMap.php';
16
+require_once __DIR__.'/Embeddable.php';
17
+require_once __DIR__.'/Embedded.php';
18
+require_once __DIR__.'/Entity.php';
19
+require_once __DIR__.'/EntityListeners.php';
20
+require_once __DIR__.'/GeneratedValue.php';
21
+require_once __DIR__.'/HasLifecycleCallbacks.php';
22
+require_once __DIR__.'/Id.php';
23
+require_once __DIR__.'/Index.php';
24
+require_once __DIR__.'/InheritanceType.php';
25
+require_once __DIR__.'/JoinColumn.php';
26
+require_once __DIR__.'/JoinColumns.php';
27
+require_once __DIR__.'/JoinTable.php';
28
+require_once __DIR__.'/ManyToMany.php';
29
+require_once __DIR__.'/ManyToOne.php';
30
+require_once __DIR__.'/MappedSuperclass.php';
31
+require_once __DIR__.'/OneToMany.php';
32
+require_once __DIR__.'/OneToOne.php';
33
+require_once __DIR__.'/OrderBy.php';
34
+require_once __DIR__.'/PrePersist.php';
35
+require_once __DIR__.'/PostLoad.php';
36
+require_once __DIR__.'/PostPersist.php';
37
+require_once __DIR__.'/PostRemove.php';
38
+require_once __DIR__.'/PostUpdate.php';
39
+require_once __DIR__.'/PreFlush.php';
40
+require_once __DIR__.'/PreRemove.php';
41
+require_once __DIR__.'/PreUpdate.php';
42
+require_once __DIR__.'/SequenceGenerator.php';
43
+require_once __DIR__.'/Table.php';
44
+require_once __DIR__.'/UniqueConstraint.php';
45
+require_once __DIR__.'/Version.php';
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/IterableResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,6 @@
 block discarded – undo
77 77
      */
78 78
     public function valid()
79 79
     {
80
-        return $this->current!==false;
80
+        return $this->current !== false;
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/HydrationException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
      */
41 41
     public static function emptyDiscriminatorValue($dqlAlias)
42 42
     {
43
-        return new self("The DQL alias '" . $dqlAlias . "' contains an entity " .
44
-            'of an inheritance hierarchy with an empty discriminator value. This means ' .
45
-            'that the database contains inconsistent data with an empty ' .
43
+        return new self("The DQL alias '".$dqlAlias."' contains an entity ".
44
+            'of an inheritance hierarchy with an empty discriminator value. This means '.
45
+            'that the database contains inconsistent data with an empty '.
46 46
             'discriminator value in a table row.');
47 47
     }
48 48
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 $discrColumnName = $metaMappingDiscrColumnName;
84 84
             }
85 85
 
86
-            if (! isset($sqlResult[$discrColumnName])) {
86
+            if ( ! isset($sqlResult[$discrColumnName])) {
87 87
                 throw HydrationException::missingDiscriminatorColumn($entityName, $discrColumnName, key($this->rsm->aliasMap));
88 88
             }
89 89
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
             $discrMap = $this->class->discriminatorMap;
95 95
 
96
-            if (! isset($discrMap[$sqlResult[$discrColumnName]])) {
96
+            if ( ! isset($discrMap[$sqlResult[$discrColumnName]])) {
97 97
                 throw HydrationException::invalidDiscriminatorValue($sqlResult[$discrColumnName], array_keys($discrMap));
98 98
             }
99 99
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
             $cacheKeyInfo = $this->hydrateColumnInfo($column);
112 112
 
113
-            if (! $cacheKeyInfo) {
113
+            if ( ! $cacheKeyInfo) {
114 114
                 continue;
115 115
             }
116 116
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             $fieldName = $cacheKeyInfo['fieldName'];
127 127
 
128 128
             // Prevent overwrite in case of inherit classes using same property name (See AbstractHydrator)
129
-            if (! isset($data[$fieldName]) || ! $valueIsNull) {
129
+            if ( ! isset($data[$fieldName]) || ! $valueIsNull) {
130 130
                 $data[$fieldName] = $value;
131 131
             }
132 132
         }
Please login to merge, or discard this patch.