Passed
Pull Request — master (#7885)
by Šimon
05:58
created
lib/Doctrine/ORM/Mapping/Exporter/JoinColumnMetadataExporter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
     {
24 24
         /** @var JoinColumnMetadata $value */
25 25
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
26
-        $objectReference = $indentation . self::VARIABLE;
26
+        $objectReference = $indentation.self::VARIABLE;
27 27
         $lines           = [];
28 28
 
29 29
         $lines[] = parent::export($value, $indentationLevel);
30
-        $lines[] = $objectReference . '->setReferencedColumnName("' . $value->getReferencedColumnName() . '");';
31
-        $lines[] = $objectReference . '->setAliasedName("' . $value->getAliasedName() . '");';
32
-        $lines[] = $objectReference . '->setOnDelete("' . $value->getOnDelete() . '");';
30
+        $lines[] = $objectReference.'->setReferencedColumnName("'.$value->getReferencedColumnName().'");';
31
+        $lines[] = $objectReference.'->setAliasedName("'.$value->getAliasedName().'");';
32
+        $lines[] = $objectReference.'->setOnDelete("'.$value->getOnDelete().'");';
33 33
 
34 34
         return implode(PHP_EOL, $lines);
35 35
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ToOneAssociationMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         /** @var ToOneAssociationMetadata $value */
20 20
         $joinColumnExporter = new JoinColumnMetadataExporter();
21 21
         $indentation        = str_repeat(self::INDENTATION, $indentationLevel);
22
-        $objectReference    = $indentation . self::VARIABLE;
22
+        $objectReference    = $indentation.self::VARIABLE;
23 23
         $lines              = [];
24 24
 
25 25
         $lines[] = parent::export($value, $indentationLevel);
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             $lines[] = null;
29 29
             $lines[] = $joinColumnExporter->export($joinColumn, $indentationLevel);
30 30
             $lines[] = null;
31
-            $lines[] = $objectReference . '->addJoinColumn(' . $joinColumnExporter::VARIABLE . ');';
31
+            $lines[] = $objectReference.'->addJoinColumn('.$joinColumnExporter::VARIABLE.');';
32 32
         }
33 33
 
34 34
         return implode(PHP_EOL, $lines);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/LocalColumnMetadataExporter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@
 block discarded – undo
20 20
     {
21 21
         /** @var LocalColumnMetadata $value */
22 22
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
23
-        $objectReference = $indentation . self::VARIABLE;
23
+        $objectReference = $indentation.self::VARIABLE;
24 24
         $lines           = [];
25 25
 
26 26
         $lines[] = parent::export($value, $indentationLevel);
27 27
 
28
-        $lines[] = $objectReference . '->setLength(' . $value->getLength() . ');';
29
-        $lines[] = $objectReference . '->setScale(' . $value->getScale() . ');';
30
-        $lines[] = $objectReference . '->setPrecision(' . $value->getPrecision() . ');';
28
+        $lines[] = $objectReference.'->setLength('.$value->getLength().');';
29
+        $lines[] = $objectReference.'->setScale('.$value->getScale().');';
30
+        $lines[] = $objectReference.'->setPrecision('.$value->getPrecision().');';
31 31
 
32 32
         if ($value->hasValueGenerator()) {
33 33
             $lines[] = sprintf(
34
-                $objectReference . '->setValueGenerator(new ValueGenerator(%s, %s));',
34
+                $objectReference.'->setValueGenerator(new ValueGenerator(%s, %s));',
35 35
                 var_export($value->getValueGenerator()->getType(), true),
36 36
                 var_export($value->getValueGenerator()->getDefinition(), true)
37 37
             );
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ToManyAssociationMetadataExporter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,16 +19,16 @@
 block discarded – undo
19 19
         /** @var ToManyAssociationMetadata $value */
20 20
         $variableExporter = new VariableExporter();
21 21
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
22
-        $objectReference  = $indentation . self::VARIABLE;
22
+        $objectReference  = $indentation.self::VARIABLE;
23 23
         $lines            = [];
24 24
 
25 25
         $lines[] = parent::export($value, $indentationLevel);
26 26
 
27
-        if (! empty($value->getIndexedBy())) {
28
-            $lines[] = $objectReference . '->setIndexedBy("' . $value->getIndexedBy() . '"");';
27
+        if ( ! empty($value->getIndexedBy())) {
28
+            $lines[] = $objectReference.'->setIndexedBy("'.$value->getIndexedBy().'"");';
29 29
         }
30 30
 
31
-        $lines[] = $objectReference . '->setOderBy(' . $variableExporter->export($value->getOrderBy(), $indentationLevel + 1) . ');';
31
+        $lines[] = $objectReference.'->setOderBy('.$variableExporter->export($value->getOrderBy(), $indentationLevel + 1).');';
32 32
 
33 33
         return implode(PHP_EOL, $lines);
34 34
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ColumnMetadataExporter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,20 +22,20 @@
 block discarded – undo
22 22
         /** @var ColumnMetadata $value */
23 23
         $variableExporter = new VariableExporter();
24 24
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
25
-        $objectReference  = $indentation . self::VARIABLE;
25
+        $objectReference  = $indentation.self::VARIABLE;
26 26
         $lines            = [];
27 27
 
28
-        $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value);
28
+        $lines[] = $objectReference.' = '.$this->exportInstantiation($value);
29 29
 
30
-        if (! empty($value->getColumnDefinition())) {
31
-            $lines[] = $objectReference . '->setColumnDefinition("' . $value->getColumnDefinition() . '");';
30
+        if ( ! empty($value->getColumnDefinition())) {
31
+            $lines[] = $objectReference.'->setColumnDefinition("'.$value->getColumnDefinition().'");';
32 32
         }
33 33
 
34
-        $lines[] = $objectReference . '->setTableName("' . $value->getTableName() . '");';
35
-        $lines[] = $objectReference . '->setOptions(' . ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)) . ');';
36
-        $lines[] = $objectReference . '->setPrimaryKey(' . ltrim($variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1)) . ');';
37
-        $lines[] = $objectReference . '->setNullable(' . ltrim($variableExporter->export($value->isNullable(), $indentationLevel + 1)) . ');';
38
-        $lines[] = $objectReference . '->setUnique(' . ltrim($variableExporter->export($value->isUnique(), $indentationLevel + 1)) . ');';
34
+        $lines[] = $objectReference.'->setTableName("'.$value->getTableName().'");';
35
+        $lines[] = $objectReference.'->setOptions('.ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)).');';
36
+        $lines[] = $objectReference.'->setPrimaryKey('.ltrim($variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1)).');';
37
+        $lines[] = $objectReference.'->setNullable('.ltrim($variableExporter->export($value->isNullable(), $indentationLevel + 1)).');';
38
+        $lines[] = $objectReference.'->setUnique('.ltrim($variableExporter->export($value->isUnique(), $indentationLevel + 1)).');';
39 39
 
40 40
         return implode(PHP_EOL, $lines);
41 41
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ManyToManyAssociationMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         /** @var ManyToManyAssociationMetadata $value */
23 23
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
24
-        $objectReference = $indentation . self::VARIABLE;
24
+        $objectReference = $indentation.self::VARIABLE;
25 25
         $lines           = [];
26 26
 
27 27
         $lines[] = parent::export($value, $indentationLevel);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             $lines[] = null;
33 33
             $lines[] = $joinTableExporter->export($value->getJoinTable(), $indentationLevel);
34 34
             $lines[] = null;
35
-            $lines[] = $objectReference . '->setJoinTable(' . $joinTableExporter::VARIABLE . ');';
35
+            $lines[] = $objectReference.'->setJoinTable('.$joinTableExporter::VARIABLE.');';
36 36
         }
37 37
 
38 38
         return implode(PHP_EOL, $lines);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/TransientMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
     {
20 20
         /** @var TransientMetadata $value */
21 21
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
22
-        $objectReference = $indentation . self::VARIABLE;
22
+        $objectReference = $indentation.self::VARIABLE;
23 23
 
24
-        return $objectReference . ' = ' . $this->exportInstantiation($value);
24
+        return $objectReference.' = '.$this->exportInstantiation($value);
25 25
     }
26 26
 
27 27
     protected function exportInstantiation(TransientMetadata $metadata) : string
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/CacheMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
     {
23 23
         /** @var CacheMetadata $value */
24 24
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
25
-        $objectReference = $indentation . self::VARIABLE;
25
+        $objectReference = $indentation.self::VARIABLE;
26 26
         $lines           = [];
27 27
 
28
-        $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value);
28
+        $lines[] = $objectReference.' = '.$this->exportInstantiation($value);
29 29
 
30 30
         return implode(PHP_EOL, $lines);
31 31
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/ResultSetMappingBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $classMetadata = $this->em->getClassMetadata($class);
123 123
         $platform      = $this->em->getConnection()->getDatabasePlatform();
124 124
 
125
-        if (! $this->isInheritanceSupported($classMetadata)) {
125
+        if ( ! $this->isInheritanceSupported($classMetadata)) {
126 126
             throw new InvalidArgumentException(
127 127
                 'ResultSetMapping builder does not currently support your inheritance scheme.'
128 128
             );
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                             );
163 163
                         }
164 164
 
165
-                        if (! $joinColumn->getType()) {
165
+                        if ( ! $joinColumn->getType()) {
166 166
                             $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
167 167
                         }
168 168
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     {
202 202
         switch ($mode) {
203 203
             case self::COLUMN_RENAMING_INCREMENT:
204
-                return $columnName . $this->sqlCounter++;
204
+                return $columnName.$this->sqlCounter++;
205 205
             case self::COLUMN_RENAMING_CUSTOM:
206 206
                 return $customRenameColumns[$columnName] ?? $columnName;
207 207
             case self::COLUMN_RENAMING_NONE:
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                 $sql .= ', ';
231 231
             }
232 232
 
233
-            $sql .= $tableAlias . '.';
233
+            $sql .= $tableAlias.'.';
234 234
 
235 235
             if (isset($this->fieldMappings[$columnName])) {
236 236
                 $class = $this->em->getClassMetadata($this->declaringClasses[$columnName]);
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                 $sql .= $this->discriminatorColumns[$dqlAlias];
243 243
             }
244 244
 
245
-            $sql .= ' AS ' . $columnName;
245
+            $sql .= ' AS '.$columnName;
246 246
         }
247 247
 
248 248
         return $sql;
Please login to merge, or discard this patch.