Passed
Pull Request — 2.6 (#7764)
by
unknown
07:14
created
lib/Doctrine/ORM/Tools/EntityGenerator.php 1 patch
Spacing   +150 added lines, -150 removed lines patch added patch discarded remove patch
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
      */
367 367
     public function writeEntityClass(ClassMetadataInfo $metadata, $outputDirectory)
368 368
     {
369
-        $path = $outputDirectory . '/' . str_replace('\\', DIRECTORY_SEPARATOR, $metadata->name) . $this->extension;
369
+        $path = $outputDirectory.'/'.str_replace('\\', DIRECTORY_SEPARATOR, $metadata->name).$this->extension;
370 370
         $dir = dirname($path);
371 371
 
372 372
         if ( ! is_dir($dir)) {
@@ -382,8 +382,8 @@  discard block
 block discarded – undo
382 382
         }
383 383
 
384 384
         if ($this->backupExisting && file_exists($path)) {
385
-            $backupPath = dirname($path) . DIRECTORY_SEPARATOR . basename($path) . "~";
386
-            if (!copy($path, $backupPath)) {
385
+            $backupPath = dirname($path).DIRECTORY_SEPARATOR.basename($path)."~";
386
+            if ( ! copy($path, $backupPath)) {
387 387
                 throw new \RuntimeException("Attempt to backup overwritten entity file but copy operation failed.");
388 388
             }
389 389
         }
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
         $body = str_replace('<spaces>', $this->spaces, $body);
445 445
         $last = strrpos($currentCode, '}');
446 446
 
447
-        return substr($currentCode, 0, $last) . $body . ($body ? "\n" : '') . "}\n";
447
+        return substr($currentCode, 0, $last).$body.($body ? "\n" : '')."}\n";
448 448
     }
449 449
 
450 450
     /**
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
     public function setFieldVisibility($visibility)
509 509
     {
510 510
         if ($visibility !== static::FIELD_VISIBLE_PRIVATE && $visibility !== static::FIELD_VISIBLE_PROTECTED) {
511
-            throw new \InvalidArgumentException('Invalid provided visibility (only private and protected are allowed): ' . $visibility);
511
+            throw new \InvalidArgumentException('Invalid provided visibility (only private and protected are allowed): '.$visibility);
512 512
         }
513 513
 
514 514
         $this->fieldVisibility = $visibility;
@@ -605,11 +605,11 @@  discard block
 block discarded – undo
605 605
      */
606 606
     protected function generateEntityNamespace(ClassMetadataInfo $metadata)
607 607
     {
608
-        if (! $this->hasNamespace($metadata)) {
608
+        if ( ! $this->hasNamespace($metadata)) {
609 609
             return '';
610 610
         }
611 611
 
612
-        return 'namespace ' . $this->getNamespace($metadata) .';';
612
+        return 'namespace '.$this->getNamespace($metadata).';';
613 613
     }
614 614
 
615 615
     /**
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
      */
618 618
     protected function generateEntityUse()
619 619
     {
620
-        if (! $this->generateAnnotations) {
620
+        if ( ! $this->generateAnnotations) {
621 621
             return '';
622 622
         }
623 623
 
@@ -631,8 +631,8 @@  discard block
 block discarded – undo
631 631
      */
632 632
     protected function generateEntityClassName(ClassMetadataInfo $metadata)
633 633
     {
634
-        return 'class ' . $this->getClassName($metadata) .
635
-            ($this->extendsClass() ? ' extends ' . $this->getClassToExtendName() : null);
634
+        return 'class '.$this->getClassName($metadata).
635
+            ($this->extendsClass() ? ' extends '.$this->getClassToExtendName() : null);
636 636
     }
637 637
 
638 638
     /**
@@ -734,13 +734,13 @@  discard block
 block discarded – undo
734 734
         $fieldMappings = array_merge($requiredFields, $optionalFields);
735 735
 
736 736
         foreach ($metadata->embeddedClasses as $fieldName => $embeddedClass) {
737
-            $paramType = '\\' . ltrim($embeddedClass['class'], '\\');
738
-            $paramVariable = '$' . $fieldName;
737
+            $paramType = '\\'.ltrim($embeddedClass['class'], '\\');
738
+            $paramVariable = '$'.$fieldName;
739 739
 
740 740
             $paramTypes[] = $paramType;
741 741
             $paramVariables[] = $paramVariable;
742
-            $params[] = $paramType . ' ' . $paramVariable;
743
-            $fields[] = '$this->' . $fieldName . ' = ' . $paramVariable . ';';
742
+            $params[] = $paramType.' '.$paramVariable;
743
+            $fields[] = '$this->'.$fieldName.' = '.$paramVariable.';';
744 744
         }
745 745
 
746 746
         foreach ($fieldMappings as $fieldMapping) {
@@ -748,27 +748,27 @@  discard block
 block discarded – undo
748 748
                 continue;
749 749
             }
750 750
 
751
-            $paramTypes[] = $this->getType($fieldMapping['type']) . (!empty($fieldMapping['nullable']) ? '|null' : '');
752
-            $param = '$' . $fieldMapping['fieldName'];
751
+            $paramTypes[] = $this->getType($fieldMapping['type']).( ! empty($fieldMapping['nullable']) ? '|null' : '');
752
+            $param = '$'.$fieldMapping['fieldName'];
753 753
             $paramVariables[] = $param;
754 754
 
755 755
             if ($fieldMapping['type'] === 'datetime') {
756
-                $param = $this->getType($fieldMapping['type']) . ' ' . $param;
756
+                $param = $this->getType($fieldMapping['type']).' '.$param;
757 757
             }
758 758
 
759
-            if (!empty($fieldMapping['nullable'])) {
759
+            if ( ! empty($fieldMapping['nullable'])) {
760 760
                 $param .= ' = null';
761 761
             }
762 762
 
763 763
             $params[] = $param;
764 764
 
765
-            $fields[] = '$this->' . $fieldMapping['fieldName'] . ' = $' . $fieldMapping['fieldName'] . ';';
765
+            $fields[] = '$this->'.$fieldMapping['fieldName'].' = $'.$fieldMapping['fieldName'].';';
766 766
         }
767 767
 
768 768
         $maxParamTypeLength = max(array_map('strlen', $paramTypes));
769 769
         $paramTags = array_map(
770
-            function ($type, $variable) use ($maxParamTypeLength) {
771
-                return '@param ' . $type . str_repeat(' ', $maxParamTypeLength - strlen($type) + 1) . $variable;
770
+            function($type, $variable) use ($maxParamTypeLength) {
771
+                return '@param '.$type.str_repeat(' ', $maxParamTypeLength - strlen($type) + 1).$variable;
772 772
             },
773 773
             $paramTypes,
774 774
             $paramVariables
@@ -776,8 +776,8 @@  discard block
 block discarded – undo
776 776
 
777 777
         // Generate multi line constructor if the signature exceeds 120 characters.
778 778
         if (array_sum(array_map('strlen', $params)) + count($params) * 2 + 29 > 120) {
779
-            $delimiter = "\n" . $this->spaces;
780
-            $params = $delimiter . implode(',' . $delimiter, $params) . "\n";
779
+            $delimiter = "\n".$this->spaces;
780
+            $params = $delimiter.implode(','.$delimiter, $params)."\n";
781 781
         } else {
782 782
             $params = implode(', ', $params);
783 783
         }
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
         $replacements = [
786 786
             '<paramTags>' => implode("\n * ", $paramTags),
787 787
             '<params>'    => $params,
788
-            '<fields>'    => implode("\n" . $this->spaces, $fields),
788
+            '<fields>'    => implode("\n".$this->spaces, $fields),
789 789
         ];
790 790
 
791 791
         $constructor = str_replace(
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
 
831 831
             if ($inClass) {
832 832
                 $inClass = false;
833
-                $lastSeenClass = $lastSeenNamespace . ($lastSeenNamespace ? '\\' : '') . $token[1];
833
+                $lastSeenClass = $lastSeenNamespace.($lastSeenNamespace ? '\\' : '').$token[1];
834 834
                 $this->staticReflection[$lastSeenClass]['properties'] = [];
835 835
                 $this->staticReflection[$lastSeenClass]['methods'] = [];
836 836
             }
@@ -838,16 +838,16 @@  discard block
 block discarded – undo
838 838
             if (T_NAMESPACE === $token[0]) {
839 839
                 $lastSeenNamespace = '';
840 840
                 $inNamespace = true;
841
-            } elseif (T_CLASS === $token[0] && T_DOUBLE_COLON !== $tokens[$i-1][0]) {
841
+            } elseif (T_CLASS === $token[0] && T_DOUBLE_COLON !== $tokens[$i - 1][0]) {
842 842
                 $inClass = true;
843 843
             } elseif (T_FUNCTION === $token[0]) {
844
-                if (T_STRING === $tokens[$i+2][0]) {
845
-                    $this->staticReflection[$lastSeenClass]['methods'][] = strtolower($tokens[$i+2][1]);
846
-                } elseif ($tokens[$i+2] == '&' && T_STRING === $tokens[$i+3][0]) {
847
-                    $this->staticReflection[$lastSeenClass]['methods'][] = strtolower($tokens[$i+3][1]);
844
+                if (T_STRING === $tokens[$i + 2][0]) {
845
+                    $this->staticReflection[$lastSeenClass]['methods'][] = strtolower($tokens[$i + 2][1]);
846
+                } elseif ($tokens[$i + 2] == '&' && T_STRING === $tokens[$i + 3][0]) {
847
+                    $this->staticReflection[$lastSeenClass]['methods'][] = strtolower($tokens[$i + 3][1]);
848 848
                 }
849
-            } elseif (in_array($token[0], [T_VAR, T_PUBLIC, T_PRIVATE, T_PROTECTED], true) && T_FUNCTION !== $tokens[$i+2][0]) {
850
-                $this->staticReflection[$lastSeenClass]['properties'][] = substr($tokens[$i+2][1], 1);
849
+            } elseif (in_array($token[0], [T_VAR, T_PUBLIC, T_PRIVATE, T_PROTECTED], true) && T_FUNCTION !== $tokens[$i + 2][0]) {
850
+                $this->staticReflection[$lastSeenClass]['properties'][] = substr($tokens[$i + 2][1], 1);
851 851
             }
852 852
         }
853 853
     }
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
      */
861 861
     protected function hasProperty($property, ClassMetadataInfo $metadata)
862 862
     {
863
-        if ($this->extendsClass() || (!$this->isNew && class_exists($metadata->name))) {
863
+        if ($this->extendsClass() || ( ! $this->isNew && class_exists($metadata->name))) {
864 864
             // don't generate property if its already on the base class.
865 865
             $reflClass = new \ReflectionClass($this->getClassToExtend() ?: $metadata->name);
866 866
             if ($reflClass->hasProperty($property)) {
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
      */
890 890
     protected function hasMethod($method, ClassMetadataInfo $metadata)
891 891
     {
892
-        if ($this->extendsClass() || (!$this->isNew && class_exists($metadata->name))) {
892
+        if ($this->extendsClass() || ( ! $this->isNew && class_exists($metadata->name))) {
893 893
             // don't generate method if its already on the base class.
894 894
             $reflClass = new \ReflectionClass($this->getClassToExtend() ?: $metadata->name);
895 895
 
@@ -920,7 +920,7 @@  discard block
 block discarded – undo
920 920
      */
921 921
     protected function getTraits(ClassMetadataInfo $metadata)
922 922
     {
923
-        if (! ($metadata->reflClass !== null || class_exists($metadata->name))) {
923
+        if ( ! ($metadata->reflClass !== null || class_exists($metadata->name))) {
924 924
             return [];
925 925
         }
926 926
 
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
     {
971 971
         $refl = new \ReflectionClass($this->getClassToExtend());
972 972
 
973
-        return '\\' . $refl->getName();
973
+        return '\\'.$refl->getName();
974 974
     }
975 975
 
976 976
     /**
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
     {
1004 1004
         $lines = [];
1005 1005
         $lines[] = '/**';
1006
-        $lines[] = ' * ' . $this->getClassName($metadata);
1006
+        $lines[] = ' * '.$this->getClassName($metadata);
1007 1007
 
1008 1008
         if ($this->generateAnnotations) {
1009 1009
             $lines[] = ' *';
@@ -1019,12 +1019,12 @@  discard block
 block discarded – undo
1019 1019
 
1020 1020
             foreach ($methods as $method) {
1021 1021
                 if ($code = $this->$method($metadata)) {
1022
-                    $lines[] = ' * ' . $code;
1022
+                    $lines[] = ' * '.$code;
1023 1023
                 }
1024 1024
             }
1025 1025
 
1026 1026
             if (isset($metadata->lifecycleCallbacks) && $metadata->lifecycleCallbacks) {
1027
-                $lines[] = ' * @' . $this->annotationsPrefix . 'HasLifecycleCallbacks';
1027
+                $lines[] = ' * @'.$this->annotationsPrefix.'HasLifecycleCallbacks';
1028 1028
             }
1029 1029
         }
1030 1030
 
@@ -1040,17 +1040,17 @@  discard block
 block discarded – undo
1040 1040
      */
1041 1041
     protected function generateEntityAnnotation(ClassMetadataInfo $metadata)
1042 1042
     {
1043
-        $prefix = '@' . $this->annotationsPrefix;
1043
+        $prefix = '@'.$this->annotationsPrefix;
1044 1044
 
1045 1045
         if ($metadata->isEmbeddedClass) {
1046
-            return $prefix . 'Embeddable';
1046
+            return $prefix.'Embeddable';
1047 1047
         }
1048 1048
 
1049 1049
         $customRepository = $metadata->customRepositoryClassName
1050
-            ? '(repositoryClass="' . $metadata->customRepositoryClassName . '")'
1050
+            ? '(repositoryClass="'.$metadata->customRepositoryClassName.'")'
1051 1051
             : '';
1052 1052
 
1053
-        return $prefix . ($metadata->isMappedSuperclass ? 'MappedSuperclass' : 'Entity') . $customRepository;
1053
+        return $prefix.($metadata->isMappedSuperclass ? 'MappedSuperclass' : 'Entity').$customRepository;
1054 1054
     }
1055 1055
 
1056 1056
     /**
@@ -1067,28 +1067,28 @@  discard block
 block discarded – undo
1067 1067
         $table = [];
1068 1068
 
1069 1069
         if (isset($metadata->table['schema'])) {
1070
-            $table[] = 'schema="' . $metadata->table['schema'] . '"';
1070
+            $table[] = 'schema="'.$metadata->table['schema'].'"';
1071 1071
         }
1072 1072
 
1073 1073
         if (isset($metadata->table['name'])) {
1074
-            $table[] = 'name="' . $metadata->table['name'] . '"';
1074
+            $table[] = 'name="'.$metadata->table['name'].'"';
1075 1075
         }
1076 1076
 
1077 1077
         if (isset($metadata->table['options']) && $metadata->table['options']) {
1078
-            $table[] = 'options={' . $this->exportTableOptions((array) $metadata->table['options']) . '}';
1078
+            $table[] = 'options={'.$this->exportTableOptions((array) $metadata->table['options']).'}';
1079 1079
         }
1080 1080
 
1081 1081
         if (isset($metadata->table['uniqueConstraints']) && $metadata->table['uniqueConstraints']) {
1082 1082
             $constraints = $this->generateTableConstraints('UniqueConstraint', $metadata->table['uniqueConstraints']);
1083
-            $table[] = 'uniqueConstraints={' . $constraints . '}';
1083
+            $table[] = 'uniqueConstraints={'.$constraints.'}';
1084 1084
         }
1085 1085
 
1086 1086
         if (isset($metadata->table['indexes']) && $metadata->table['indexes']) {
1087 1087
             $constraints = $this->generateTableConstraints('Index', $metadata->table['indexes']);
1088
-            $table[] = 'indexes={' . $constraints . '}';
1088
+            $table[] = 'indexes={'.$constraints.'}';
1089 1089
         }
1090 1090
 
1091
-        return '@' . $this->annotationsPrefix . 'Table(' . implode(', ', $table) . ')';
1091
+        return '@'.$this->annotationsPrefix.'Table('.implode(', ', $table).')';
1092 1092
     }
1093 1093
 
1094 1094
     /**
@@ -1103,9 +1103,9 @@  discard block
 block discarded – undo
1103 1103
         foreach ($constraints as $name => $constraint) {
1104 1104
             $columns = [];
1105 1105
             foreach ($constraint['columns'] as $column) {
1106
-                $columns[] = '"' . $column . '"';
1106
+                $columns[] = '"'.$column.'"';
1107 1107
             }
1108
-            $annotations[] = '@' . $this->annotationsPrefix . $constraintName . '(name="' . $name . '", columns={' . implode(', ', $columns) . '})';
1108
+            $annotations[] = '@'.$this->annotationsPrefix.$constraintName.'(name="'.$name.'", columns={'.implode(', ', $columns).'})';
1109 1109
         }
1110 1110
 
1111 1111
         return implode(', ', $annotations);
@@ -1122,7 +1122,7 @@  discard block
 block discarded – undo
1122 1122
             return '';
1123 1123
         }
1124 1124
 
1125
-        return '@' . $this->annotationsPrefix . 'InheritanceType("'.$this->getInheritanceTypeString($metadata->inheritanceType).'")';
1125
+        return '@'.$this->annotationsPrefix.'InheritanceType("'.$this->getInheritanceTypeString($metadata->inheritanceType).'")';
1126 1126
     }
1127 1127
 
1128 1128
     /**
@@ -1137,11 +1137,11 @@  discard block
 block discarded – undo
1137 1137
         }
1138 1138
 
1139 1139
         $discrColumn = $metadata->discriminatorColumn;
1140
-        $columnDefinition = 'name="' . $discrColumn['name']
1141
-            . '", type="' . $discrColumn['type']
1142
-            . '", length=' . $discrColumn['length'];
1140
+        $columnDefinition = 'name="'.$discrColumn['name']
1141
+            . '", type="'.$discrColumn['type']
1142
+            . '", length='.$discrColumn['length'];
1143 1143
 
1144
-        return '@' . $this->annotationsPrefix . 'DiscriminatorColumn(' . $columnDefinition . ')';
1144
+        return '@'.$this->annotationsPrefix.'DiscriminatorColumn('.$columnDefinition.')';
1145 1145
     }
1146 1146
 
1147 1147
     /**
@@ -1158,10 +1158,10 @@  discard block
 block discarded – undo
1158 1158
         $inheritanceClassMap = [];
1159 1159
 
1160 1160
         foreach ($metadata->discriminatorMap as $type => $class) {
1161
-            $inheritanceClassMap[] .= '"' . $type . '" = "' . $class . '"';
1161
+            $inheritanceClassMap[] .= '"'.$type.'" = "'.$class.'"';
1162 1162
         }
1163 1163
 
1164
-        return '@' . $this->annotationsPrefix . 'DiscriminatorMap({' . implode(', ', $inheritanceClassMap) . '})';
1164
+        return '@'.$this->annotationsPrefix.'DiscriminatorMap({'.implode(', ', $inheritanceClassMap).'})';
1165 1165
     }
1166 1166
 
1167 1167
     /**
@@ -1180,8 +1180,8 @@  discard block
 block discarded – undo
1180 1180
 
1181 1181
             $nullableField = $this->nullableFieldExpression($fieldMapping);
1182 1182
 
1183
-            if ((!$metadata->isEmbeddedClass || !$this->embeddablesImmutable)
1184
-                && (!isset($fieldMapping['id']) || ! $fieldMapping['id'] || $metadata->generatorType === ClassMetadataInfo::GENERATOR_TYPE_NONE)
1183
+            if (( ! $metadata->isEmbeddedClass || ! $this->embeddablesImmutable)
1184
+                && ( ! isset($fieldMapping['id']) || ! $fieldMapping['id'] || $metadata->generatorType === ClassMetadataInfo::GENERATOR_TYPE_NONE)
1185 1185
                 && $code = $this->generateEntityStubMethod($metadata, 'set', $fieldMapping['fieldName'], $fieldMapping['type'], $nullableField)
1186 1186
             ) {
1187 1187
                 $methods[] = $code;
@@ -1252,7 +1252,7 @@  discard block
 block discarded – undo
1252 1252
         }
1253 1253
 
1254 1254
         foreach ($joinColumns as $joinColumn) {
1255
-            if (isset($joinColumn['nullable']) && !$joinColumn['nullable']) {
1255
+            if (isset($joinColumn['nullable']) && ! $joinColumn['nullable']) {
1256 1256
                 return false;
1257 1257
             }
1258 1258
         }
@@ -1297,8 +1297,8 @@  discard block
 block discarded – undo
1297 1297
             }
1298 1298
 
1299 1299
             $lines[] = $this->generateAssociationMappingPropertyDocBlock($associationMapping, $metadata);
1300
-            $lines[] = $this->spaces . $this->fieldVisibility . ' $' . $associationMapping['fieldName']
1301
-                     . ($associationMapping['type'] == 'manyToMany' ? ' = array()' : null) . ";\n";
1300
+            $lines[] = $this->spaces.$this->fieldVisibility.' $'.$associationMapping['fieldName']
1301
+                     . ($associationMapping['type'] == 'manyToMany' ? ' = array()' : null).";\n";
1302 1302
         }
1303 1303
 
1304 1304
         return implode("\n", $lines);
@@ -1322,8 +1322,8 @@  discard block
 block discarded – undo
1322 1322
             }
1323 1323
 
1324 1324
             $lines[] = $this->generateFieldMappingPropertyDocBlock($fieldMapping, $metadata);
1325
-            $lines[] = $this->spaces . $this->fieldVisibility . ' $' . $fieldMapping['fieldName']
1326
-                     . (isset($fieldMapping['options']['default']) ? ' = ' . var_export($fieldMapping['options']['default'], true) : null) . ";\n";
1325
+            $lines[] = $this->spaces.$this->fieldVisibility.' $'.$fieldMapping['fieldName']
1326
+                     . (isset($fieldMapping['options']['default']) ? ' = '.var_export($fieldMapping['options']['default'], true) : null).";\n";
1327 1327
         }
1328 1328
 
1329 1329
         return implode("\n", $lines);
@@ -1344,7 +1344,7 @@  discard block
 block discarded – undo
1344 1344
             }
1345 1345
 
1346 1346
             $lines[] = $this->generateEmbeddedPropertyDocBlock($embeddedClass);
1347
-            $lines[] = $this->spaces . $this->fieldVisibility . ' $' . $fieldName . ";\n";
1347
+            $lines[] = $this->spaces.$this->fieldVisibility.' $'.$fieldName.";\n";
1348 1348
         }
1349 1349
 
1350 1350
         return implode("\n", $lines);
@@ -1361,7 +1361,7 @@  discard block
 block discarded – undo
1361 1361
      */
1362 1362
     protected function generateEntityStubMethod(ClassMetadataInfo $metadata, $type, $fieldName, $typeHint = null, $defaultValue = null)
1363 1363
     {
1364
-        $methodName = $type . Inflector::classify($fieldName);
1364
+        $methodName = $type.Inflector::classify($fieldName);
1365 1365
         $variableName = Inflector::camelize($fieldName);
1366 1366
         if (in_array($type, ["add", "remove"])) {
1367 1367
             $methodName = Inflector::singularize($methodName);
@@ -1381,18 +1381,18 @@  discard block
 block discarded – undo
1381 1381
         $variableType   = $typeHint ? $this->getType($typeHint) : null;
1382 1382
 
1383 1383
         if ($typeHint && ! isset($types[$typeHint])) {
1384
-            $variableType   =  '\\' . ltrim($variableType, '\\');
1385
-            $methodTypeHint =  '\\' . $typeHint . ' ';
1384
+            $variableType   = '\\'.ltrim($variableType, '\\');
1385
+            $methodTypeHint = '\\'.$typeHint.' ';
1386 1386
         }
1387 1387
 
1388 1388
         $replacements = [
1389
-          '<description>'       => ucfirst($type) . ' ' . $variableName . '.',
1389
+          '<description>'       => ucfirst($type).' '.$variableName.'.',
1390 1390
           '<methodTypeHint>'    => $methodTypeHint,
1391
-          '<variableType>'      => $variableType . (null !== $defaultValue ? ('|' . $defaultValue) : ''),
1391
+          '<variableType>'      => $variableType.(null !== $defaultValue ? ('|'.$defaultValue) : ''),
1392 1392
           '<variableName>'      => $variableName,
1393 1393
           '<methodName>'        => $methodName,
1394 1394
           '<fieldName>'         => $fieldName,
1395
-          '<variableDefault>'   => ($defaultValue !== null ) ? (' = ' . $defaultValue) : '',
1395
+          '<variableDefault>'   => ($defaultValue !== null) ? (' = '.$defaultValue) : '',
1396 1396
           '<entity>'            => $this->getClassName($metadata)
1397 1397
         ];
1398 1398
 
@@ -1421,7 +1421,7 @@  discard block
 block discarded – undo
1421 1421
         $this->staticReflection[$metadata->name]['methods'][] = $methodName;
1422 1422
 
1423 1423
         $replacements = [
1424
-            '<name>'        => $this->annotationsPrefix . ucfirst($name),
1424
+            '<name>'        => $this->annotationsPrefix.ucfirst($name),
1425 1425
             '<methodName>'  => $methodName,
1426 1426
         ];
1427 1427
 
@@ -1444,30 +1444,30 @@  discard block
 block discarded – undo
1444 1444
         $joinColumnAnnot = [];
1445 1445
 
1446 1446
         if (isset($joinColumn['name'])) {
1447
-            $joinColumnAnnot[] = 'name="' . $joinColumn['name'] . '"';
1447
+            $joinColumnAnnot[] = 'name="'.$joinColumn['name'].'"';
1448 1448
         }
1449 1449
 
1450 1450
         if (isset($joinColumn['referencedColumnName'])) {
1451
-            $joinColumnAnnot[] = 'referencedColumnName="' . $joinColumn['referencedColumnName'] . '"';
1451
+            $joinColumnAnnot[] = 'referencedColumnName="'.$joinColumn['referencedColumnName'].'"';
1452 1452
         }
1453 1453
 
1454 1454
         if (isset($joinColumn['unique']) && $joinColumn['unique']) {
1455
-            $joinColumnAnnot[] = 'unique=' . ($joinColumn['unique'] ? 'true' : 'false');
1455
+            $joinColumnAnnot[] = 'unique='.($joinColumn['unique'] ? 'true' : 'false');
1456 1456
         }
1457 1457
 
1458 1458
         if (isset($joinColumn['nullable'])) {
1459
-            $joinColumnAnnot[] = 'nullable=' . ($joinColumn['nullable'] ? 'true' : 'false');
1459
+            $joinColumnAnnot[] = 'nullable='.($joinColumn['nullable'] ? 'true' : 'false');
1460 1460
         }
1461 1461
 
1462 1462
         if (isset($joinColumn['onDelete'])) {
1463
-            $joinColumnAnnot[] = 'onDelete="' . ($joinColumn['onDelete'] . '"');
1463
+            $joinColumnAnnot[] = 'onDelete="'.($joinColumn['onDelete'].'"');
1464 1464
         }
1465 1465
 
1466 1466
         if (isset($joinColumn['columnDefinition'])) {
1467
-            $joinColumnAnnot[] = 'columnDefinition="' . $joinColumn['columnDefinition'] . '"';
1467
+            $joinColumnAnnot[] = 'columnDefinition="'.$joinColumn['columnDefinition'].'"';
1468 1468
         }
1469 1469
 
1470
-        return '@' . $this->annotationsPrefix . 'JoinColumn(' . implode(', ', $joinColumnAnnot) . ')';
1470
+        return '@'.$this->annotationsPrefix.'JoinColumn('.implode(', ', $joinColumnAnnot).')';
1471 1471
     }
1472 1472
 
1473 1473
     /**
@@ -1479,22 +1479,22 @@  discard block
 block discarded – undo
1479 1479
     protected function generateAssociationMappingPropertyDocBlock(array $associationMapping, ClassMetadataInfo $metadata)
1480 1480
     {
1481 1481
         $lines = [];
1482
-        $lines[] = $this->spaces . '/**';
1482
+        $lines[] = $this->spaces.'/**';
1483 1483
 
1484 1484
         if ($associationMapping['type'] & ClassMetadataInfo::TO_MANY) {
1485
-            $lines[] = $this->spaces . ' * @var \Doctrine\Common\Collections\Collection';
1485
+            $lines[] = $this->spaces.' * @var \Doctrine\Common\Collections\Collection';
1486 1486
         } else {
1487
-            $lines[] = $this->spaces . ' * @var \\' . ltrim($associationMapping['targetEntity'], '\\');
1487
+            $lines[] = $this->spaces.' * @var \\'.ltrim($associationMapping['targetEntity'], '\\');
1488 1488
         }
1489 1489
 
1490 1490
         if ($this->generateAnnotations) {
1491
-            $lines[] = $this->spaces . ' *';
1491
+            $lines[] = $this->spaces.' *';
1492 1492
 
1493 1493
             if (isset($associationMapping['id']) && $associationMapping['id']) {
1494
-                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Id';
1494
+                $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'Id';
1495 1495
 
1496 1496
                 if ($generatorType = $this->getIdGeneratorTypeString($metadata->generatorType)) {
1497
-                    $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'GeneratedValue(strategy="' . $generatorType . '")';
1497
+                    $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'GeneratedValue(strategy="'.$generatorType.'")';
1498 1498
                 }
1499 1499
             }
1500 1500
 
@@ -1516,15 +1516,15 @@  discard block
 block discarded – undo
1516 1516
             $typeOptions = [];
1517 1517
 
1518 1518
             if (isset($associationMapping['targetEntity'])) {
1519
-                $typeOptions[] = 'targetEntity="' . $associationMapping['targetEntity'] . '"';
1519
+                $typeOptions[] = 'targetEntity="'.$associationMapping['targetEntity'].'"';
1520 1520
             }
1521 1521
 
1522 1522
             if (isset($associationMapping['inversedBy'])) {
1523
-                $typeOptions[] = 'inversedBy="' . $associationMapping['inversedBy'] . '"';
1523
+                $typeOptions[] = 'inversedBy="'.$associationMapping['inversedBy'].'"';
1524 1524
             }
1525 1525
 
1526 1526
             if (isset($associationMapping['mappedBy'])) {
1527
-                $typeOptions[] = 'mappedBy="' . $associationMapping['mappedBy'] . '"';
1527
+                $typeOptions[] = 'mappedBy="'.$associationMapping['mappedBy'].'"';
1528 1528
             }
1529 1529
 
1530 1530
             if ($associationMapping['cascade']) {
@@ -1540,11 +1540,11 @@  discard block
 block discarded – undo
1540 1540
                     $cascades = ['"all"'];
1541 1541
                 }
1542 1542
 
1543
-                $typeOptions[] = 'cascade={' . implode(',', $cascades) . '}';
1543
+                $typeOptions[] = 'cascade={'.implode(',', $cascades).'}';
1544 1544
             }
1545 1545
 
1546 1546
             if (isset($associationMapping['orphanRemoval']) && $associationMapping['orphanRemoval']) {
1547
-                $typeOptions[] = 'orphanRemoval=' . ($associationMapping['orphanRemoval'] ? 'true' : 'false');
1547
+                $typeOptions[] = 'orphanRemoval='.($associationMapping['orphanRemoval'] ? 'true' : 'false');
1548 1548
             }
1549 1549
 
1550 1550
             if (isset($associationMapping['fetch']) && $associationMapping['fetch'] !== ClassMetadataInfo::FETCH_LAZY) {
@@ -1553,71 +1553,71 @@  discard block
 block discarded – undo
1553 1553
                     ClassMetadataInfo::FETCH_EAGER      => 'EAGER',
1554 1554
                 ];
1555 1555
 
1556
-                $typeOptions[] = 'fetch="' . $fetchMap[$associationMapping['fetch']] . '"';
1556
+                $typeOptions[] = 'fetch="'.$fetchMap[$associationMapping['fetch']].'"';
1557 1557
             }
1558 1558
 
1559
-            $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . '' . $type . '(' . implode(', ', $typeOptions) . ')';
1559
+            $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.''.$type.'('.implode(', ', $typeOptions).')';
1560 1560
 
1561 1561
             if (isset($associationMapping['joinColumns']) && $associationMapping['joinColumns']) {
1562
-                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'JoinColumns({';
1562
+                $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'JoinColumns({';
1563 1563
 
1564 1564
                 $joinColumnsLines = [];
1565 1565
 
1566 1566
                 foreach ($associationMapping['joinColumns'] as $joinColumn) {
1567 1567
                     if ($joinColumnAnnot = $this->generateJoinColumnAnnotation($joinColumn)) {
1568
-                        $joinColumnsLines[] = $this->spaces . ' *   ' . $joinColumnAnnot;
1568
+                        $joinColumnsLines[] = $this->spaces.' *   '.$joinColumnAnnot;
1569 1569
                     }
1570 1570
                 }
1571 1571
 
1572 1572
                 $lines[] = implode(",\n", $joinColumnsLines);
1573
-                $lines[] = $this->spaces . ' * })';
1573
+                $lines[] = $this->spaces.' * })';
1574 1574
             }
1575 1575
 
1576 1576
             if (isset($associationMapping['joinTable']) && $associationMapping['joinTable']) {
1577 1577
                 $joinTable = [];
1578
-                $joinTable[] = 'name="' . $associationMapping['joinTable']['name'] . '"';
1578
+                $joinTable[] = 'name="'.$associationMapping['joinTable']['name'].'"';
1579 1579
 
1580 1580
                 if (isset($associationMapping['joinTable']['schema'])) {
1581
-                    $joinTable[] = 'schema="' . $associationMapping['joinTable']['schema'] . '"';
1581
+                    $joinTable[] = 'schema="'.$associationMapping['joinTable']['schema'].'"';
1582 1582
                 }
1583 1583
 
1584
-                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'JoinTable(' . implode(', ', $joinTable) . ',';
1585
-                $lines[] = $this->spaces . ' *   joinColumns={';
1584
+                $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'JoinTable('.implode(', ', $joinTable).',';
1585
+                $lines[] = $this->spaces.' *   joinColumns={';
1586 1586
 
1587 1587
                 $joinColumnsLines = [];
1588 1588
 
1589 1589
                 foreach ($associationMapping['joinTable']['joinColumns'] as $joinColumn) {
1590
-                    $joinColumnsLines[] = $this->spaces . ' *     ' . $this->generateJoinColumnAnnotation($joinColumn);
1590
+                    $joinColumnsLines[] = $this->spaces.' *     '.$this->generateJoinColumnAnnotation($joinColumn);
1591 1591
                 }
1592 1592
 
1593
-                $lines[] = implode(",". PHP_EOL, $joinColumnsLines);
1594
-                $lines[] = $this->spaces . ' *   },';
1595
-                $lines[] = $this->spaces . ' *   inverseJoinColumns={';
1593
+                $lines[] = implode(",".PHP_EOL, $joinColumnsLines);
1594
+                $lines[] = $this->spaces.' *   },';
1595
+                $lines[] = $this->spaces.' *   inverseJoinColumns={';
1596 1596
 
1597 1597
                 $inverseJoinColumnsLines = [];
1598 1598
 
1599 1599
                 foreach ($associationMapping['joinTable']['inverseJoinColumns'] as $joinColumn) {
1600
-                    $inverseJoinColumnsLines[] = $this->spaces . ' *     ' . $this->generateJoinColumnAnnotation($joinColumn);
1600
+                    $inverseJoinColumnsLines[] = $this->spaces.' *     '.$this->generateJoinColumnAnnotation($joinColumn);
1601 1601
                 }
1602 1602
 
1603
-                $lines[] = implode(",". PHP_EOL, $inverseJoinColumnsLines);
1604
-                $lines[] = $this->spaces . ' *   }';
1605
-                $lines[] = $this->spaces . ' * )';
1603
+                $lines[] = implode(",".PHP_EOL, $inverseJoinColumnsLines);
1604
+                $lines[] = $this->spaces.' *   }';
1605
+                $lines[] = $this->spaces.' * )';
1606 1606
             }
1607 1607
 
1608 1608
             if (isset($associationMapping['orderBy'])) {
1609
-                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'OrderBy({';
1609
+                $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'OrderBy({';
1610 1610
 
1611 1611
                 foreach ($associationMapping['orderBy'] as $name => $direction) {
1612
-                    $lines[] = $this->spaces . ' *     "' . $name . '"="' . $direction . '",';
1612
+                    $lines[] = $this->spaces.' *     "'.$name.'"="'.$direction.'",';
1613 1613
                 }
1614 1614
 
1615 1615
                 $lines[count($lines) - 1] = substr($lines[count($lines) - 1], 0, strlen($lines[count($lines) - 1]) - 1);
1616
-                $lines[] = $this->spaces . ' * })';
1616
+                $lines[] = $this->spaces.' * })';
1617 1617
             }
1618 1618
         }
1619 1619
 
1620
-        $lines[] = $this->spaces . ' */';
1620
+        $lines[] = $this->spaces.' */';
1621 1621
 
1622 1622
         return implode("\n", $lines);
1623 1623
     }
@@ -1631,43 +1631,43 @@  discard block
 block discarded – undo
1631 1631
     protected function generateFieldMappingPropertyDocBlock(array $fieldMapping, ClassMetadataInfo $metadata)
1632 1632
     {
1633 1633
         $lines = [];
1634
-        $lines[] = $this->spaces . '/**';
1635
-        $lines[] = $this->spaces . ' * @var '
1634
+        $lines[] = $this->spaces.'/**';
1635
+        $lines[] = $this->spaces.' * @var '
1636 1636
             . $this->getType($fieldMapping['type'])
1637 1637
             . ($this->nullableFieldExpression($fieldMapping) ? '|null' : '');
1638 1638
 
1639 1639
         if ($this->generateAnnotations) {
1640
-            $lines[] = $this->spaces . ' *';
1640
+            $lines[] = $this->spaces.' *';
1641 1641
 
1642 1642
             $column = [];
1643 1643
             if (isset($fieldMapping['columnName'])) {
1644
-                $column[] = 'name="' . $fieldMapping['columnName'] . '"';
1644
+                $column[] = 'name="'.$fieldMapping['columnName'].'"';
1645 1645
             }
1646 1646
 
1647 1647
             if (isset($fieldMapping['type'])) {
1648
-                $column[] = 'type="' . $fieldMapping['type'] . '"';
1648
+                $column[] = 'type="'.$fieldMapping['type'].'"';
1649 1649
             }
1650 1650
 
1651 1651
             if (isset($fieldMapping['length'])) {
1652
-                $column[] = 'length=' . $fieldMapping['length'];
1652
+                $column[] = 'length='.$fieldMapping['length'];
1653 1653
             }
1654 1654
 
1655 1655
             if (isset($fieldMapping['precision'])) {
1656
-                $column[] = 'precision=' .  $fieldMapping['precision'];
1656
+                $column[] = 'precision='.$fieldMapping['precision'];
1657 1657
             }
1658 1658
 
1659 1659
             if (isset($fieldMapping['scale'])) {
1660
-                $column[] = 'scale=' . $fieldMapping['scale'];
1660
+                $column[] = 'scale='.$fieldMapping['scale'];
1661 1661
             }
1662 1662
 
1663 1663
             if (isset($fieldMapping['nullable'])) {
1664
-                $column[] = 'nullable=' .  var_export($fieldMapping['nullable'], true);
1664
+                $column[] = 'nullable='.var_export($fieldMapping['nullable'], true);
1665 1665
             }
1666 1666
 
1667 1667
             $options = [];
1668 1668
 
1669 1669
             if (isset($fieldMapping['options']['default']) && $fieldMapping['options']['default']) {
1670
-                $options[] = '"default"="' . $fieldMapping['options']['default'] .'"';
1670
+                $options[] = '"default"="'.$fieldMapping['options']['default'].'"';
1671 1671
             }
1672 1672
 
1673 1673
             if (isset($fieldMapping['options']['unsigned']) && $fieldMapping['options']['unsigned']) {
@@ -1679,15 +1679,15 @@  discard block
 block discarded – undo
1679 1679
             }
1680 1680
 
1681 1681
             if (isset($fieldMapping['options']['comment']) && $fieldMapping['options']['comment']) {
1682
-                $options[] = '"comment"="' . str_replace('"', '""', $fieldMapping['options']['comment']) .'"';
1682
+                $options[] = '"comment"="'.str_replace('"', '""', $fieldMapping['options']['comment']).'"';
1683 1683
             }
1684 1684
 
1685 1685
             if (isset($fieldMapping['options']['collation']) && $fieldMapping['options']['collation']) {
1686
-                $options[] = '"collation"="' . $fieldMapping['options']['collation'] .'"';
1686
+                $options[] = '"collation"="'.$fieldMapping['options']['collation'].'"';
1687 1687
             }
1688 1688
 
1689 1689
             if (isset($fieldMapping['options']['check']) && $fieldMapping['options']['check']) {
1690
-                $options[] = '"check"="' . $fieldMapping['options']['check'] .'"';
1690
+                $options[] = '"check"="'.$fieldMapping['options']['check'].'"';
1691 1691
             }
1692 1692
 
1693 1693
             if ($options) {
@@ -1695,47 +1695,47 @@  discard block
 block discarded – undo
1695 1695
             }
1696 1696
 
1697 1697
             if (isset($fieldMapping['columnDefinition'])) {
1698
-                $column[] = 'columnDefinition="' . $fieldMapping['columnDefinition'] . '"';
1698
+                $column[] = 'columnDefinition="'.$fieldMapping['columnDefinition'].'"';
1699 1699
             }
1700 1700
 
1701 1701
             if (isset($fieldMapping['unique'])) {
1702
-                $column[] = 'unique=' . var_export($fieldMapping['unique'], true);
1702
+                $column[] = 'unique='.var_export($fieldMapping['unique'], true);
1703 1703
             }
1704 1704
 
1705
-            $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Column(' . implode(', ', $column) . ')';
1705
+            $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'Column('.implode(', ', $column).')';
1706 1706
 
1707 1707
             if (isset($fieldMapping['id']) && $fieldMapping['id']) {
1708
-                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Id';
1708
+                $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'Id';
1709 1709
 
1710 1710
                 if ($generatorType = $this->getIdGeneratorTypeString($metadata->generatorType)) {
1711
-                    $lines[] = $this->spaces.' * @' . $this->annotationsPrefix . 'GeneratedValue(strategy="' . $generatorType . '")';
1711
+                    $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'GeneratedValue(strategy="'.$generatorType.'")';
1712 1712
                 }
1713 1713
 
1714 1714
                 if ($metadata->sequenceGeneratorDefinition) {
1715 1715
                     $sequenceGenerator = [];
1716 1716
 
1717 1717
                     if (isset($metadata->sequenceGeneratorDefinition['sequenceName'])) {
1718
-                        $sequenceGenerator[] = 'sequenceName="' . $metadata->sequenceGeneratorDefinition['sequenceName'] . '"';
1718
+                        $sequenceGenerator[] = 'sequenceName="'.$metadata->sequenceGeneratorDefinition['sequenceName'].'"';
1719 1719
                     }
1720 1720
 
1721 1721
                     if (isset($metadata->sequenceGeneratorDefinition['allocationSize'])) {
1722
-                        $sequenceGenerator[] = 'allocationSize=' . $metadata->sequenceGeneratorDefinition['allocationSize'];
1722
+                        $sequenceGenerator[] = 'allocationSize='.$metadata->sequenceGeneratorDefinition['allocationSize'];
1723 1723
                     }
1724 1724
 
1725 1725
                     if (isset($metadata->sequenceGeneratorDefinition['initialValue'])) {
1726
-                        $sequenceGenerator[] = 'initialValue=' . $metadata->sequenceGeneratorDefinition['initialValue'];
1726
+                        $sequenceGenerator[] = 'initialValue='.$metadata->sequenceGeneratorDefinition['initialValue'];
1727 1727
                     }
1728 1728
 
1729
-                    $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'SequenceGenerator(' . implode(', ', $sequenceGenerator) . ')';
1729
+                    $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'SequenceGenerator('.implode(', ', $sequenceGenerator).')';
1730 1730
                 }
1731 1731
             }
1732 1732
 
1733 1733
             if (isset($fieldMapping['version']) && $fieldMapping['version']) {
1734
-                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Version';
1734
+                $lines[] = $this->spaces.' * @'.$this->annotationsPrefix.'Version';
1735 1735
             }
1736 1736
         }
1737 1737
 
1738
-        $lines[] = $this->spaces . ' */';
1738
+        $lines[] = $this->spaces.' */';
1739 1739
 
1740 1740
         return implode("\n", $lines);
1741 1741
     }
@@ -1748,27 +1748,27 @@  discard block
 block discarded – undo
1748 1748
     protected function generateEmbeddedPropertyDocBlock(array $embeddedClass)
1749 1749
     {
1750 1750
         $lines = [];
1751
-        $lines[] = $this->spaces . '/**';
1752
-        $lines[] = $this->spaces . ' * @var \\' . ltrim($embeddedClass['class'], '\\');
1751
+        $lines[] = $this->spaces.'/**';
1752
+        $lines[] = $this->spaces.' * @var \\'.ltrim($embeddedClass['class'], '\\');
1753 1753
 
1754 1754
         if ($this->generateAnnotations) {
1755
-            $lines[] = $this->spaces . ' *';
1755
+            $lines[] = $this->spaces.' *';
1756 1756
 
1757
-            $embedded = ['class="' . $embeddedClass['class'] . '"'];
1757
+            $embedded = ['class="'.$embeddedClass['class'].'"'];
1758 1758
 
1759 1759
             if (isset($embeddedClass['columnPrefix'])) {
1760 1760
                 if (is_string($embeddedClass['columnPrefix'])) {
1761
-                    $embedded[] = 'columnPrefix="' . $embeddedClass['columnPrefix'] . '"';
1761
+                    $embedded[] = 'columnPrefix="'.$embeddedClass['columnPrefix'].'"';
1762 1762
                 } else {
1763
-                    $embedded[] = 'columnPrefix=' . var_export($embeddedClass['columnPrefix'], true);
1763
+                    $embedded[] = 'columnPrefix='.var_export($embeddedClass['columnPrefix'], true);
1764 1764
                 }
1765 1765
             }
1766 1766
 
1767
-            $lines[] = $this->spaces . ' * @' .
1768
-                $this->annotationsPrefix . 'Embedded(' . implode(', ', $embedded) . ')';
1767
+            $lines[] = $this->spaces.' * @'.
1768
+                $this->annotationsPrefix.'Embedded('.implode(', ', $embedded).')';
1769 1769
         }
1770 1770
 
1771
-        $lines[] = $this->spaces . ' */';
1771
+        $lines[] = $this->spaces.' */';
1772 1772
 
1773 1773
         return implode("\n", $lines);
1774 1774
     }
@@ -1782,13 +1782,13 @@  discard block
 block discarded – undo
1782 1782
         $processedClasses = [];
1783 1783
         foreach ($metadata->entityListeners as $event => $eventListeners) {
1784 1784
             foreach ($eventListeners as $eventListener) {
1785
-                $processedClasses[] = '"' . $eventListener['class'] . '"';
1785
+                $processedClasses[] = '"'.$eventListener['class'].'"';
1786 1786
             }
1787 1787
         }
1788 1788
 
1789 1789
         return \sprintf(
1790 1790
             '%s%s({%s})',
1791
-            '@' . $this->annotationsPrefix,
1791
+            '@'.$this->annotationsPrefix,
1792 1792
             'EntityListeners',
1793 1793
             \implode(',', \array_unique($processedClasses))
1794 1794
         );
@@ -1806,7 +1806,7 @@  discard block
 block discarded – undo
1806 1806
 
1807 1807
         foreach ($lines as $key => $value) {
1808 1808
             if ( ! empty($value)) {
1809
-                $lines[$key] = str_repeat($this->spaces, $num) . $lines[$key];
1809
+                $lines[$key] = str_repeat($this->spaces, $num).$lines[$key];
1810 1810
             }
1811 1811
         }
1812 1812
 
@@ -1888,9 +1888,9 @@  discard block
 block discarded – undo
1888 1888
 
1889 1889
         foreach ($options as $name => $option) {
1890 1890
             if (is_array($option)) {
1891
-                $optionsStr[] = '"' . $name . '"={' . $this->exportTableOptions($option) . '}';
1891
+                $optionsStr[] = '"'.$name.'"={'.$this->exportTableOptions($option).'}';
1892 1892
             } else {
1893
-                $optionsStr[] = '"' . $name . '"="' . (string) $option . '"';
1893
+                $optionsStr[] = '"'.$name.'"="'.(string) $option.'"';
1894 1894
             }
1895 1895
         }
1896 1896
 
Please login to merge, or discard this patch.