Failed Conditions
Push — develop ( 9800ca...d1cf9a )
by Marco
272:19 queued 264:21
created
lib/Doctrine/ORM/Annotation/DoctrineAnnotations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 require_once __DIR__.'/Annotation.php';
6 6
 require_once __DIR__.'/AssociationOverride.php';
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query.php 1 patch
Spacing   +8 added lines, -8 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;
6 6
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts.
28 28
      */
29
-    const STATE_CLEAN  = 1;
29
+    const STATE_CLEAN = 1;
30 30
 
31 31
     /**
32 32
      * A query object is in state DIRTY when it has DQL parts that have not yet been
@@ -717,11 +717,11 @@  discard block
 block discarded – undo
717 717
             ->getName();
718 718
 
719 719
         return md5(
720
-            $this->getDQL() . serialize($this->hints) .
721
-            '&platform=' . $platform .
722
-            ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '') .
723
-            '&firstResult=' . $this->firstResult . '&maxResult=' . $this->maxResults .
724
-            '&hydrationMode=' . $this->hydrationMode . '&types=' . serialize($this->parsedTypes) . 'DOCTRINE_QUERY_CACHE_SALT'
720
+            $this->getDQL().serialize($this->hints).
721
+            '&platform='.$platform.
722
+            ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '').
723
+            '&firstResult='.$this->firstResult.'&maxResult='.$this->maxResults.
724
+            '&hydrationMode='.$this->hydrationMode.'&types='.serialize($this->parsedTypes).'DOCTRINE_QUERY_CACHE_SALT'
725 725
         );
726 726
     }
727 727
 
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
      */
731 731
     protected function getHash()
732 732
     {
733
-        return sha1(parent::getHash(). '-'. $this->firstResult . '-' . $this->maxResults);
733
+        return sha1(parent::getHash().'-'.$this->firstResult.'-'.$this->maxResults);
734 734
     }
735 735
 
736 736
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityNotFoundException.php 1 patch
Spacing   +3 added lines, -3 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;
6 6
 
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
         $ids = [];
26 26
 
27 27
         foreach ($id as $key => $value) {
28
-            $ids[] = $key . '(' . $value . ')';
28
+            $ids[] = $key.'('.$value.')';
29 29
         }
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/Persisters/SqlValueVisitor.php 1 patch
Spacing   +2 added lines, -2 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\Persisters;
6 6
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @var array
26 26
      */
27
-    private $types  = [];
27
+    private $types = [];
28 28
 
29 29
     /**
30 30
      * Converts a comparison expression into the target query language output.
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Collection/CollectionPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Persisters\Collection;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/PersisterException.php 1 patch
Spacing   +2 added lines, -2 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\Persisters;
6 6
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     static public function matchingAssocationFieldRequiresObject($class, $associationName)
18 18
     {
19 19
         return new self(sprintf(
20
-            "Cannot match on %s::%s with a non-object value. Matching objects by id is " .
20
+            "Cannot match on %s::%s with a non-object value. Matching objects by id is ".
21 21
             "not compatible with matching on an in-memory collection, which compares objects by reference.",
22 22
             $class, $associationName
23 23
         ));
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/EntityPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Persisters\Entity;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/AbstractEntityInheritancePersister.php 1 patch
Spacing   +2 added lines, -2 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\Persisters\Entity;
6 6
 
@@ -59,6 +59,6 @@  discard block
 block discarded – undo
59 59
             $columnType
60 60
         );
61 61
 
62
-        return $columnType->convertToPHPValueSQL($sql, $this->platform) . ' AS ' . $columnAlias;
62
+        return $columnType->convertToPHPValueSQL($sql, $this->platform).' AS '.$columnAlias;
63 63
     }
64 64
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Utility/IdentifierFlattener.php 1 patch
Spacing   +2 added lines, -2 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\Utility;
6 6
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 //     ? $this->unitOfWork->getEntityIdentifier($id[$field])
75 75
                 //     : $targetClassPersister->getIdentifier($id[$field])
76 76
                 // ;
77
-                $identifiers          = $targetClassPersister->getIdentifier($id[$field]);
77
+                $identifiers = $targetClassPersister->getIdentifier($id[$field]);
78 78
 
79 79
                 $associatedId = $this->flattenIdentifier($targetClassMetadata, $identifiers);
80 80
 
Please login to merge, or discard this patch.