Failed Conditions
Push — develop ( 9800ca...d1cf9a )
by Marco
272:19 queued 264:21
created
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Mapping\Factory;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/AbstractClassMetadataFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Mapping\Factory;
7 7
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     private function getOrCreateClassMetadataDefinition(string $className, ?ClassMetadata $parent) : ClassMetadataDefinition
183 183
     {
184
-        if (! isset($this->definitions[$className])) {
184
+        if ( ! isset($this->definitions[$className])) {
185 185
             $this->definitions[$className] = $this->definitionFactory->build($className, $parent);
186 186
         }
187 187
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataDefinitionFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Mapping\Factory;
7 7
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $definition = $this->createDefinition($className, $parentMetadata);
44 44
 
45
-        if (! class_exists($definition->metadataClassName, false)) {
45
+        if ( ! class_exists($definition->metadataClassName, false)) {
46 46
             $metadataClassPath = $this->resolver->resolveMetadataClassPath($className);
47 47
 
48 48
             $this->generatorStrategy->generate($metadataClassPath, $definition);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ClassMetadataBuildingContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * <http://www.doctrine-project.org>.
19 19
  */
20 20
 
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace Doctrine\ORM\Mapping;
24 24
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/LocalColumnMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Mapping;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/TableMetadata.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Mapping;
7 7
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function getQuotedQualifiedName(AbstractPlatform $platform) : string
87 87
     {
88
-        if (!$this->schema) {
88
+        if ( ! $this->schema) {
89 89
             return $platform->quoteIdentifier($this->name);
90 90
         }
91 91
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function addIndex(array $index) : void
174 174
     {
175
-        if (! isset($index['name'])) {
175
+        if ( ! isset($index['name'])) {
176 176
             $this->indexes[] = $index;
177 177
 
178 178
             return;
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      */
215 215
     public function addUniqueConstraint(array $constraint) : void
216 216
     {
217
-        if (! isset($constraint['name'])) {
217
+        if ( ! isset($constraint['name'])) {
218 218
             $this->uniqueConstraints[] = $constraint;
219 219
 
220 220
             return;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/MappedSuperClassMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Mapping;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/EntityClassMetadata.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Mapping;
7 7
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      */
297 297
     public function getNamedQuery($queryName) : string
298 298
     {
299
-        if (! isset($this->namedQueries[$queryName])) {
299
+        if ( ! isset($this->namedQueries[$queryName])) {
300 300
             throw MappingException::queryNotFound($this->entityName, $queryName);
301 301
         }
302 302
 
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
      */
327 327
     public function getNamedNativeQuery($queryName) : array
328 328
     {
329
-        if (! isset($this->namedNativeQueries[$queryName])) {
329
+        if ( ! isset($this->namedNativeQueries[$queryName])) {
330 330
             throw MappingException::queryNotFound($this->entityName, $queryName);
331 331
         }
332 332
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      */
357 357
     public function getSqlResultSetMapping($name) : array
358 358
     {
359
-        if (! isset($this->sqlResultSetMappings[$name])) {
359
+        if ( ! isset($this->sqlResultSetMappings[$name])) {
360 360
             throw MappingException::resultMappingNotFound($this->entityName, $name);
361 361
         }
362 362
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Tools\Pagination;
6 6
 
@@ -194,11 +194,11 @@  discard block
 block discarded – undo
194 194
 
195 195
         $innerSql           = $this->getInnerSQL($AST);
196 196
         $sqlIdentifier      = $this->getSQLIdentifier($AST);
197
-        $sqlAliasIdentifier = array_map(function ($info) { return $info['alias']; }, $sqlIdentifier);
197
+        $sqlAliasIdentifier = array_map(function($info) { return $info['alias']; }, $sqlIdentifier);
198 198
 
199 199
         if ($hasOrderBy) {
200
-            $orderGroupBy = ' GROUP BY ' . implode(', ', $sqlAliasIdentifier);
201
-            $sqlPiece     = 'MIN(' . $this->walkResultVariable('dctrn_rownum') . ') AS dctrn_minrownum';
200
+            $orderGroupBy = ' GROUP BY '.implode(', ', $sqlAliasIdentifier);
201
+            $sqlPiece     = 'MIN('.$this->walkResultVariable('dctrn_rownum').') AS dctrn_minrownum';
202 202
 
203 203
             $sqlAliasIdentifier[] = $sqlPiece;
204 204
             $sqlIdentifier[] = [
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         $sql = sprintf('SELECT DISTINCT %s FROM (%s) dctrn_result', implode(', ', $sqlAliasIdentifier), $innerSql);
212 212
 
213 213
         if ($hasOrderBy) {
214
-            $sql .= $orderGroupBy . $outerOrderBy;
214
+            $sql .= $orderGroupBy.$outerOrderBy;
215 215
         }
216 216
 
217 217
         // Apply the limit and offset.
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
         $innerSql           = $this->getInnerSQL($AST);
258 258
         $sqlIdentifier      = $this->getSQLIdentifier($AST);
259
-        $sqlAliasIdentifier = array_map(function ($info) { return $info['alias']; }, $sqlIdentifier);
259
+        $sqlAliasIdentifier = array_map(function($info) { return $info['alias']; }, $sqlIdentifier);
260 260
 
261 261
         // Build the counter query
262 262
         $sql = sprintf('SELECT DISTINCT %s FROM (%s) dctrn_result', implode(', ', $sqlAliasIdentifier), $innerSql);
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
         ?OrderByClause $orderByClause
365 365
     ) : string {
366 366
         // If the sql statement has an order by clause, we need to wrap it in a new select distinct statement
367
-        if (! $orderByClause) {
367
+        if ( ! $orderByClause) {
368 368
             return $sql;
369 369
         }
370 370
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
             $orderByItems[] = $orderByItemString;
407 407
             $identifier     = \substr($orderByItemString, 0, \strrpos($orderByItemString, ' '));
408 408
 
409
-            if (! \in_array($identifier, $identifiers, true)) {
409
+            if ( ! \in_array($identifier, $identifiers, true)) {
410 410
                 $identifiers[] = $identifier;
411 411
             }
412 412
         }
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
      */
563 563
     public function walkPathExpression($pathExpr)
564 564
     {
565
-        if (!$this->inSubSelect && !$this->platformSupportsRowNumber() && !in_array($pathExpr, $this->orderByPathExpressions)) {
565
+        if ( ! $this->inSubSelect && ! $this->platformSupportsRowNumber() && ! in_array($pathExpr, $this->orderByPathExpressions)) {
566 566
             $this->orderByPathExpressions[] = $pathExpr;
567 567
         }
568 568
 
Please login to merge, or discard this patch.