Passed
Pull Request — master (#7791)
by
unknown
10:37
created
Cache/Persister/Collection/NonStrictReadWriteCachedCollectionPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $isInitialized = $collection->isInitialized();
62 62
         $isDirty       = $collection->isDirty();
63 63
 
64
-        if (! $isInitialized && ! $isDirty) {
64
+        if ( ! $isInitialized && ! $isDirty) {
65 65
             return;
66 66
         }
67 67
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
         $targetHydrator  = $targetPersister->getEntityHydrator();
144 144
 
145 145
         // Only preserve ordering if association configured it
146
-        if (! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) {
146
+        if ( ! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) {
147 147
             // Elements may be an array or a Collection
148 148
             $elements = array_values($elements instanceof Collection ? $elements->getValues() : $elements);
149 149
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/CollectionCacheKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
47 47
         $this->ownerIdentifier = $ownerIdentifier;
48 48
         $this->entityClass     = (string) $entityClass;
49 49
         $this->association     = (string) $association;
50
-        $this->hash            = str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' . $association;
50
+        $this->hash            = str_replace('\\', '.', strtolower($entityClass)).'_'.implode(' ', $ownerIdentifier).'__'.$association;
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Exception/MetadataCacheUsesNonPersistentCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public static function fromDriver(Cache $cache) : self
13 13
     {
14 14
         return new self(
15
-            'Metadata Cache uses a non-persistent cache driver, ' . get_class($cache) . '.'
15
+            'Metadata Cache uses a non-persistent cache driver, '.get_class($cache).'.'
16 16
         );
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Exception/QueryCacheUsesNonPersistentCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public static function fromDriver(Cache $cache) : self
13 13
     {
14 14
         return new self(
15
-            'Query Cache uses a non-persistent cache driver, ' . get_class($cache) . '.'
15
+            'Query Cache uses a non-persistent cache driver, '.get_class($cache).'.'
16 16
         );
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Reflection/RuntimeReflectionService.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
      */
19 19
     public function getParentClasses(string $className) : array
20 20
     {
21
-        if (! class_exists($className)) {
21
+        if ( ! class_exists($className)) {
22 22
             throw MappingException::nonExistingClass($className);
23 23
         }
24 24
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function getRepository(EntityManagerInterface $entityManager, $entityName)
28 28
     {
29
-        $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName() . spl_object_id($entityManager);
29
+        $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName().spl_object_id($entityManager);
30 30
 
31 31
         return $this->repositoryList[$repositoryHash]
32 32
                 ?? $this->repositoryList[$repositoryHash] = $this->createRepository($entityManager, $entityName);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/Exception/InvalidMagicMethodCall.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
         string $method
15 15
     ) : self {
16 16
         return new self(
17
-            "Entity '" . $entityName . "' has no field '" . $fieldName . "'. " .
18
-            "You can therefore not call '" . $method . "' on the entities' repository."
17
+            "Entity '".$entityName."' has no field '".$fieldName."'. ".
18
+            "You can therefore not call '".$method."' on the entities' repository."
19 19
         );
20 20
     }
21 21
 
22 22
     public static function onMissingParameter(string $methodName) : self
23 23
     {
24
-        return new self("You need to pass a parameter to '" . $methodName . "'");
24
+        return new self("You need to pass a parameter to '".$methodName."'");
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/Exception/InvalidFindByCall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         string $associationFieldName
14 14
     ) : self {
15 15
         return new self(
16
-            "You cannot search for the association field '" . $entityName . '#' . $associationFieldName . "', " .
16
+            "You cannot search for the association field '".$entityName.'#'.$associationFieldName."', ".
17 17
             'because it is the inverse side of an association. Find methods only work on owning side associations.'
18 18
         );
19 19
     }
Please login to merge, or discard this patch.