Passed
Pull Request — master (#7791)
by
unknown
10:37
created
lib/Doctrine/ORM/Mapping/Exception/UnknownGeneratorType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
 {
11 11
     public static function create(string $generatorType) : self
12 12
     {
13
-        return new self('Unknown generator type: ' . $generatorType);
13
+        return new self('Unknown generator type: '.$generatorType);
14 14
     }
15 15
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ToManyAssociationMetadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
         // If $value is not a Collection then use an ArrayCollection.
61
-        if (! $collection instanceof Collection) {
61
+        if ( ! $collection instanceof Collection) {
62 62
             // @todo guilhermeblanco Conceptually, support to custom collections by replacing ArrayCollection creation.
63 63
             $collection = new ArrayCollection((array) $collection);
64 64
         }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $collection  = new PersistentCollection($entityManager, $targetClass, $collection);
69 69
 
70 70
         $collection->setOwner($owner, $this);
71
-        $collection->setDirty(! $collection->isEmpty());
71
+        $collection->setDirty( ! $collection->isEmpty());
72 72
         $collection->setInitialized(true);
73 73
 
74 74
         return $collection;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/CompositeValueGenerationPlan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function executeDeferred(EntityManagerInterface $entityManager, object $entity) : void
40 40
     {
41 41
         foreach ($this->executors as $executor) {
42
-            if (! $executor->isDeferred()) {
42
+            if ( ! $executor->isDeferred()) {
43 43
                 continue;
44 44
             }
45 45
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/SingleValueGenerationPlan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function executeImmediate(EntityManagerInterface $entityManager, object $entity) : void
26 26
     {
27
-        if (! $this->executor->isDeferred()) {
27
+        if ( ! $this->executor->isDeferred()) {
28 28
             $this->dispatchExecutor($entity, $entityManager);
29 29
         }
30 30
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -254,8 +254,8 @@  discard block
 block discarded – undo
254 254
      */
255 255
     private function resolveMagicCall($method, $by, array $arguments)
256 256
     {
257
-        if (! $arguments) {
258
-            throw InvalidMagicMethodCall::onMissingParameter($method . $by);
257
+        if ( ! $arguments) {
258
+            throw InvalidMagicMethodCall::onMissingParameter($method.$by);
259 259
         }
260 260
 
261 261
         $fieldName = lcfirst(Inflector::classify($by));
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             throw InvalidMagicMethodCall::becauseFieldNotFoundIn(
265 265
                 $this->entityName,
266 266
                 $fieldName,
267
-                $method . $by
267
+                $method.$by
268 268
             );
269 269
         }
270 270
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/MatchingAssociationFieldRequiresObject.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 fromClassAndAssociation(string $class, string $associationName) : self
13 13
     {
14 14
         return new self(sprintf(
15
-            'Cannot match on %s::%s with a non-object value. Matching objects by id is ' .
15
+            'Cannot match on %s::%s with a non-object value. Matching objects by id is '.
16 16
             'not compatible with matching on an in-memory collection, which compares objects by reference.',
17 17
             $class,
18 18
             $associationName
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->currentPersisterContext->rsm->setDiscriminatorColumn('r', $resultColumnName);
46 46
         $this->currentPersisterContext->rsm->addMetaResult('r', $resultColumnName, $discrColumnName, false, $discrColumnType);
47 47
 
48
-        $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias . '.' . $quotedColumnName, $this->platform);
48
+        $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias.'.'.$quotedColumnName, $this->platform);
49 49
 
50 50
         // Append subclass columns
51 51
         foreach ($this->class->getSubClasses() as $subClassName) {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                             /** @var JoinColumnMetadata $joinColumn */
70 70
                             $referencedColumnName = $joinColumn->getReferencedColumnName();
71 71
 
72
-                            if (! $joinColumn->getType()) {
72
+                            if ( ! $joinColumn->getType()) {
73 73
                                 $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
74 74
                             }
75 75
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             $conditionSql .= ' AND ';
124 124
         }
125 125
 
126
-        return $conditionSql . $this->getSelectConditionDiscriminatorValueSQL();
126
+        return $conditionSql.$this->getSelectConditionDiscriminatorValueSQL();
127 127
     }
128 128
 
129 129
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $conditionSql .= ' AND ';
138 138
         }
139 139
 
140
-        return $conditionSql . $this->getSelectConditionDiscriminatorValueSQL();
140
+        return $conditionSql.$this->getSelectConditionDiscriminatorValueSQL();
141 141
     }
142 142
 
143 143
     /**
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         return sprintf(
166 166
             '%s IN (%s)',
167
-            $discrColumnType->convertToDatabaseValueSQL($tableAlias . '.' . $quotedColumnName, $this->platform),
167
+            $discrColumnType->convertToDatabaseValueSQL($tableAlias.'.'.$quotedColumnName, $this->platform),
168 168
             implode(', ', $values)
169 169
         );
170 170
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/AbstractEntityInheritancePersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,6 +56,6 @@
 block discarded – undo
56 56
             $columnType
57 57
         );
58 58
 
59
-        return $columnType->convertToPHPValueSQL($sql, $this->platform) . ' AS ' . $columnAlias;
59
+        return $columnType->convertToPHPValueSQL($sql, $this->platform).' AS '.$columnAlias;
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Exception/InvalidOrientation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
 {
11 11
     public static function fromClassNameAndField(string $className, string $field) : self
12 12
     {
13
-        return new self('Invalid order by orientation specified for ' . $className . '#' . $field);
13
+        return new self('Invalid order by orientation specified for '.$className.'#'.$field);
14 14
     }
15 15
 }
Please login to merge, or discard this patch.