@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public function startProduction($name) |
| 47 | 47 | { |
| 48 | - $this->println('(' . $name); |
|
| 48 | + $this->println('('.$name); |
|
| 49 | 49 | $this->indent++; |
| 50 | 50 | } |
| 51 | 51 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function println($str) |
| 69 | 69 | { |
| 70 | - if (! $this->silent) { |
|
| 70 | + if ( ! $this->silent) { |
|
| 71 | 71 | echo str_repeat(' ', $this->indent), $str, "\n"; |
| 72 | 72 | } |
| 73 | 73 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public static function syntaxError($message, $previous = null) |
| 34 | 34 | { |
| 35 | - return new self('[Syntax Error] ' . $message, 0, $previous); |
|
| 35 | + return new self('[Syntax Error] '.$message, 0, $previous); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public static function semanticalError($message, $previous = null) |
| 45 | 45 | { |
| 46 | - return new self('[Semantical Error] ' . $message, 0, $previous); |
|
| 46 | + return new self('[Semantical Error] '.$message, 0, $previous); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public static function invalidParameterType($expected, $received) |
| 64 | 64 | { |
| 65 | - return new self('Invalid parameter type, ' . $received . ' given, but ' . $expected . ' expected.'); |
|
| 65 | + return new self('Invalid parameter type, '.$received.' given, but '.$expected.' expected.'); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public static function invalidParameterPosition($pos) |
| 74 | 74 | { |
| 75 | - return new self('Invalid parameter position: ' . $pos); |
|
| 75 | + return new self('Invalid parameter position: '.$pos); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public static function tooManyParameters($expected, $received) |
| 85 | 85 | { |
| 86 | - return new self('Too many parameters: the query defines ' . $expected . ' parameters and you bound ' . $received); |
|
| 86 | + return new self('Too many parameters: the query defines '.$expected.' parameters and you bound '.$received); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public static function tooFewParameters($expected, $received) |
| 96 | 96 | { |
| 97 | - return new self('Too few parameters: the query defines ' . $expected . ' parameters but you only bound ' . $received); |
|
| 97 | + return new self('Too few parameters: the query defines '.$expected.' parameters but you only bound '.$received); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public static function invalidParameterFormat($value) |
| 106 | 106 | { |
| 107 | - return new self('Invalid parameter format, ' . $value . ' given, but :<name> or ?<num> expected.'); |
|
| 107 | + return new self('Invalid parameter format, '.$value.' given, but :<name> or ?<num> expected.'); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public static function unknownParameter($key) |
| 116 | 116 | { |
| 117 | - return new self('Invalid parameter: token ' . $key . ' is not defined in the query.'); |
|
| 117 | + return new self('Invalid parameter: token '.$key.' is not defined in the query.'); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | public static function invalidPathExpression($pathExpr) |
| 134 | 134 | { |
| 135 | 135 | return new self( |
| 136 | - "Invalid PathExpression '" . $pathExpr->identificationVariable . '.' . $pathExpr->field . "'." |
|
| 136 | + "Invalid PathExpression '".$pathExpr->identificationVariable.'.'.$pathExpr->field."'." |
|
| 137 | 137 | ); |
| 138 | 138 | } |
| 139 | 139 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | public static function invalidLiteral($literal) |
| 146 | 146 | { |
| 147 | - return new self("Invalid literal '" . $literal . "'"); |
|
| 147 | + return new self("Invalid literal '".$literal."'"); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
@@ -155,8 +155,8 @@ discard block |
||
| 155 | 155 | public static function iterateWithFetchJoinCollectionNotAllowed($assoc) |
| 156 | 156 | { |
| 157 | 157 | return new self( |
| 158 | - 'Invalid query operation: Not allowed to iterate over fetch join collections ' . |
|
| 159 | - 'in class ' . $assoc['sourceEntity'] . ' association ' . $assoc['fieldName'] |
|
| 158 | + 'Invalid query operation: Not allowed to iterate over fetch join collections '. |
|
| 159 | + 'in class '.$assoc['sourceEntity'].' association '.$assoc['fieldName'] |
|
| 160 | 160 | ); |
| 161 | 161 | } |
| 162 | 162 | |
@@ -166,8 +166,8 @@ discard block |
||
| 166 | 166 | public static function partialObjectsAreDangerous() |
| 167 | 167 | { |
| 168 | 168 | return new self( |
| 169 | - 'Loading partial objects is dangerous. Fetch full objects or consider ' . |
|
| 170 | - 'using a different fetch mode. If you really want partial objects, ' . |
|
| 169 | + 'Loading partial objects is dangerous. Fetch full objects or consider '. |
|
| 170 | + 'using a different fetch mode. If you really want partial objects, '. |
|
| 171 | 171 | 'set the doctrine.forcePartialLoad query hint to TRUE.' |
| 172 | 172 | ); |
| 173 | 173 | } |
@@ -180,8 +180,8 @@ discard block |
||
| 180 | 180 | public static function overwritingJoinConditionsNotYetSupported($assoc) |
| 181 | 181 | { |
| 182 | 182 | return new self( |
| 183 | - 'Unsupported query operation: It is not yet possible to overwrite the join ' . |
|
| 184 | - 'conditions in class ' . $assoc['sourceEntityName'] . ' association ' . $assoc['fieldName'] . '. ' . |
|
| 183 | + 'Unsupported query operation: It is not yet possible to overwrite the join '. |
|
| 184 | + 'conditions in class '.$assoc['sourceEntityName'].' association '.$assoc['fieldName'].'. '. |
|
| 185 | 185 | 'Use WITH to append additional join conditions to the association.' |
| 186 | 186 | ); |
| 187 | 187 | } |
@@ -192,8 +192,8 @@ discard block |
||
| 192 | 192 | public static function associationPathInverseSideNotSupported(PathExpression $pathExpr) |
| 193 | 193 | { |
| 194 | 194 | return new self( |
| 195 | - 'A single-valued association path expression to an inverse side is not supported in DQL queries. ' . |
|
| 196 | - 'Instead of "' . $pathExpr->identificationVariable . '.' . $pathExpr->field . '" use an explicit join.' |
|
| 195 | + 'A single-valued association path expression to an inverse side is not supported in DQL queries. '. |
|
| 196 | + 'Instead of "'.$pathExpr->identificationVariable.'.'.$pathExpr->field.'" use an explicit join.' |
|
| 197 | 197 | ); |
| 198 | 198 | } |
| 199 | 199 | |
@@ -217,8 +217,8 @@ discard block |
||
| 217 | 217 | public static function associationPathCompositeKeyNotSupported() |
| 218 | 218 | { |
| 219 | 219 | return new self( |
| 220 | - 'A single-valued association path expression to an entity with a composite primary ' . |
|
| 221 | - 'key is not supported. Explicitly name the components of the composite primary key ' . |
|
| 220 | + 'A single-valued association path expression to an entity with a composite primary '. |
|
| 221 | + 'key is not supported. Explicitly name the components of the composite primary key '. |
|
| 222 | 222 | 'in the query.' |
| 223 | 223 | ); |
| 224 | 224 | } |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | */ |
| 232 | 232 | public static function instanceOfUnrelatedClass($className, $rootClass) |
| 233 | 233 | { |
| 234 | - return new self("Cannot check if a child of '" . $rootClass . "' is instanceof '" . $className . "', " . |
|
| 234 | + return new self("Cannot check if a child of '".$rootClass."' is instanceof '".$className."', ". |
|
| 235 | 235 | 'inheritance hierarchy does not exists between these two classes.'); |
| 236 | 236 | } |
| 237 | 237 | |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | public static function invalidQueryComponent($dqlAlias) |
| 244 | 244 | { |
| 245 | 245 | return new self( |
| 246 | - "Invalid query component given for DQL alias '" . $dqlAlias . "', " . |
|
| 246 | + "Invalid query component given for DQL alias '".$dqlAlias."', ". |
|
| 247 | 247 | "requires 'metadata', 'parent', 'relation', 'map', 'nestingLevel' and 'token' keys." |
| 248 | 248 | ); |
| 249 | 249 | } |
@@ -176,11 +176,11 @@ discard block |
||
| 176 | 176 | $pkColumns = []; |
| 177 | 177 | |
| 178 | 178 | foreach ($class->getDeclaredPropertiesIterator() as $fieldName => $property) { |
| 179 | - if (! ($property instanceof FieldMetadata)) { |
|
| 179 | + if ( ! ($property instanceof FieldMetadata)) { |
|
| 180 | 180 | continue; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - if (! $class->isInheritedProperty($fieldName)) { |
|
| 183 | + if ( ! $class->isInheritedProperty($fieldName)) { |
|
| 184 | 184 | $columnName = $this->platform->quoteIdentifier($property->getColumnName()); |
| 185 | 185 | |
| 186 | 186 | $this->gatherColumn($class, $property, $table); |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | - if (! empty($inheritedKeyColumns)) { |
|
| 218 | + if ( ! empty($inheritedKeyColumns)) { |
|
| 219 | 219 | // Add a FK constraint on the ID column |
| 220 | 220 | $rootClass = $this->em->getClassMetadata($class->getRootClassName()); |
| 221 | 221 | |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | } |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | - if (! $table->hasIndex('primary')) { |
|
| 263 | + if ( ! $table->hasIndex('primary')) { |
|
| 264 | 264 | $table->setPrimaryKey($pkColumns); |
| 265 | 265 | } |
| 266 | 266 | |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | $processedClasses[$class->getClassName()] = true; |
| 321 | 321 | |
| 322 | 322 | foreach ($class->getDeclaredPropertiesIterator() as $property) { |
| 323 | - if (! $property instanceof FieldMetadata |
|
| 323 | + if ( ! $property instanceof FieldMetadata |
|
| 324 | 324 | || ! $property->hasValueGenerator() |
| 325 | 325 | || $property->getValueGenerator()->getType() !== GeneratorType::SEQUENCE |
| 326 | 326 | || $class->getClassName() !== $class->getRootClassName()) { |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | |
| 330 | 330 | $quotedName = $this->platform->quoteIdentifier($property->getValueGenerator()->getDefinition()['sequenceName']); |
| 331 | 331 | |
| 332 | - if (! $schema->hasSequence($quotedName)) { |
|
| 332 | + if ( ! $schema->hasSequence($quotedName)) { |
|
| 333 | 333 | $schema->createSequence($quotedName, $property->getValueGenerator()->getDefinition()['allocationSize']); |
| 334 | 334 | } |
| 335 | 335 | } |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | } |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | - if (! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas()) { |
|
| 345 | + if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas()) { |
|
| 346 | 346 | $schema->visit(new RemoveNamespacedAssets()); |
| 347 | 347 | } |
| 348 | 348 | |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | break; |
| 382 | 382 | } |
| 383 | 383 | |
| 384 | - if (! empty($discrColumn->getColumnDefinition())) { |
|
| 384 | + if ( ! empty($discrColumn->getColumnDefinition())) { |
|
| 385 | 385 | $options['columnDefinition'] = $discrColumn->getColumnDefinition(); |
| 386 | 386 | } |
| 387 | 387 | |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | $pkColumns = []; |
| 400 | 400 | |
| 401 | 401 | foreach ($class->getDeclaredPropertiesIterator() as $fieldName => $property) { |
| 402 | - if (! ($property instanceof FieldMetadata)) { |
|
| 402 | + if ( ! ($property instanceof FieldMetadata)) { |
|
| 403 | 403 | continue; |
| 404 | 404 | } |
| 405 | 405 | |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | private function gatherRelationsSql($class, $table, $schema, &$addedFks, &$blacklistedFks) |
| 515 | 515 | { |
| 516 | 516 | foreach ($class->getDeclaredPropertiesIterator() as $fieldName => $property) { |
| 517 | - if (! ($property instanceof AssociationMetadata)) { |
|
| 517 | + if ( ! ($property instanceof AssociationMetadata)) { |
|
| 518 | 518 | continue; |
| 519 | 519 | } |
| 520 | 520 | |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | continue; |
| 523 | 523 | } |
| 524 | 524 | |
| 525 | - if (! $property->isOwningSide()) { |
|
| 525 | + if ( ! $property->isOwningSide()) { |
|
| 526 | 526 | continue; |
| 527 | 527 | } |
| 528 | 528 | |
@@ -612,7 +612,7 @@ discard block |
||
| 612 | 612 | $idColumns = $class->getIdentifierColumns($this->em); |
| 613 | 613 | $idColumnNameList = array_keys($idColumns); |
| 614 | 614 | |
| 615 | - if (! in_array($referencedColumnName, $idColumnNameList, true)) { |
|
| 615 | + if ( ! in_array($referencedColumnName, $idColumnNameList, true)) { |
|
| 616 | 616 | return null; |
| 617 | 617 | } |
| 618 | 618 | |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | foreach ($class->getIdentifierFieldNames() as $fieldName) { |
| 621 | 621 | $property = $class->getProperty($fieldName); |
| 622 | 622 | |
| 623 | - if (! ($property instanceof AssociationMetadata)) { |
|
| 623 | + if ( ! ($property instanceof AssociationMetadata)) { |
|
| 624 | 624 | continue; |
| 625 | 625 | } |
| 626 | 626 | |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | $joinColumn->getReferencedColumnName() |
| 677 | 677 | ); |
| 678 | 678 | |
| 679 | - if (! $definingClass) { |
|
| 679 | + if ( ! $definingClass) { |
|
| 680 | 680 | throw MissingColumnException::fromColumnSourceAndTarget( |
| 681 | 681 | $joinColumn->getReferencedColumnName(), |
| 682 | 682 | $mapping->getSourceEntity(), |
@@ -691,14 +691,14 @@ discard block |
||
| 691 | 691 | $localColumns[] = $quotedColumnName; |
| 692 | 692 | $foreignColumns[] = $quotedReferencedColumnName; |
| 693 | 693 | |
| 694 | - if (! $theJoinTable->hasColumn($quotedColumnName)) { |
|
| 694 | + if ( ! $theJoinTable->hasColumn($quotedColumnName)) { |
|
| 695 | 695 | // Only add the column to the table if it does not exist already. |
| 696 | 696 | // It might exist already if the foreign key is mapped into a regular |
| 697 | 697 | // property as well. |
| 698 | 698 | $property = $definingClass->getProperty($referencedFieldName); |
| 699 | 699 | $columnDef = null; |
| 700 | 700 | |
| 701 | - if (! empty($joinColumn->getColumnDefinition())) { |
|
| 701 | + if ( ! empty($joinColumn->getColumnDefinition())) { |
|
| 702 | 702 | $columnDef = $joinColumn->getColumnDefinition(); |
| 703 | 703 | } elseif ($property->getColumnDefinition()) { |
| 704 | 704 | $columnDef = $property->getColumnDefinition(); |
@@ -732,7 +732,7 @@ discard block |
||
| 732 | 732 | $uniqueConstraints[] = ['columns' => [$quotedColumnName]]; |
| 733 | 733 | } |
| 734 | 734 | |
| 735 | - if (! empty($joinColumn->getOnDelete())) { |
|
| 735 | + if ( ! empty($joinColumn->getOnDelete())) { |
|
| 736 | 736 | $fkOptions['onDelete'] = $joinColumn->getOnDelete(); |
| 737 | 737 | } |
| 738 | 738 | } |
@@ -743,7 +743,7 @@ discard block |
||
| 743 | 743 | $theJoinTable->addUniqueIndex($unique['columns'], is_numeric($indexName) ? null : $indexName); |
| 744 | 744 | } |
| 745 | 745 | |
| 746 | - $compositeName = $theJoinTable->getName() . '.' . implode('', $localColumns); |
|
| 746 | + $compositeName = $theJoinTable->getName().'.'.implode('', $localColumns); |
|
| 747 | 747 | |
| 748 | 748 | if (isset($addedFks[$compositeName]) |
| 749 | 749 | && ($foreignTableName !== $addedFks[$compositeName]['foreignTableName'] |
@@ -760,7 +760,7 @@ discard block |
||
| 760 | 760 | } |
| 761 | 761 | |
| 762 | 762 | $blacklistedFks[$compositeName] = true; |
| 763 | - } elseif (! isset($blacklistedFks[$compositeName])) { |
|
| 763 | + } elseif ( ! isset($blacklistedFks[$compositeName])) { |
|
| 764 | 764 | $addedFks[$compositeName] = [ |
| 765 | 765 | 'foreignTableName' => $foreignTableName, |
| 766 | 766 | 'foreignColumns' => $foreignColumns, |
@@ -842,7 +842,7 @@ discard block |
||
| 842 | 842 | $fullSchema = $sm->createSchema(); |
| 843 | 843 | |
| 844 | 844 | foreach ($fullSchema->getTables() as $table) { |
| 845 | - if (! $schema->hasTable($table->getName())) { |
|
| 845 | + if ( ! $schema->hasTable($table->getName())) { |
|
| 846 | 846 | foreach ($table->getForeignKeys() as $foreignKey) { |
| 847 | 847 | /** @var $foreignKey \Doctrine\DBAL\Schema\ForeignKeyConstraint */ |
| 848 | 848 | if ($schema->hasTable($foreignKey->getForeignTableName())) { |
@@ -867,7 +867,7 @@ discard block |
||
| 867 | 867 | if ($table->hasPrimaryKey()) { |
| 868 | 868 | $columns = $table->getPrimaryKey()->getColumns(); |
| 869 | 869 | if (count($columns) === 1) { |
| 870 | - $checkSequence = $table->getName() . '_' . $columns[0] . '_seq'; |
|
| 870 | + $checkSequence = $table->getName().'_'.$columns[0].'_seq'; |
|
| 871 | 871 | if ($fullSchema->hasSequence($checkSequence)) { |
| 872 | 872 | $visitor->acceptSequence($fullSchema->getSequence($checkSequence)); |
| 873 | 873 | } |
@@ -14,6 +14,6 @@ |
||
| 14 | 14 | { |
| 15 | 15 | public static function schemaToolFailure(string $sql, Throwable $e) : self |
| 16 | 16 | { |
| 17 | - return new self("Schema-Tool failed with Error '" . $e->getMessage() . "' while executing DDL: " . $sql, 0, $e); |
|
| 17 | + return new self("Schema-Tool failed with Error '".$e->getMessage()."' while executing DDL: ".$sql, 0, $e); |
|
| 18 | 18 | } |
| 19 | 19 | } |
@@ -61,28 +61,28 @@ discard block |
||
| 61 | 61 | $fh = fopen($this->file, 'xb+'); |
| 62 | 62 | |
| 63 | 63 | if (count($identityMap) === 0) { |
| 64 | - fwrite($fh, 'Flush Operation [' . $this->context . "] - Empty identity map.\n"); |
|
| 64 | + fwrite($fh, 'Flush Operation ['.$this->context."] - Empty identity map.\n"); |
|
| 65 | 65 | |
| 66 | 66 | return; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - fwrite($fh, 'Flush Operation [' . $this->context . "] - Dumping identity map:\n"); |
|
| 69 | + fwrite($fh, 'Flush Operation ['.$this->context."] - Dumping identity map:\n"); |
|
| 70 | 70 | |
| 71 | 71 | foreach ($identityMap as $className => $map) { |
| 72 | - fwrite($fh, 'Class: ' . $className . "\n"); |
|
| 72 | + fwrite($fh, 'Class: '.$className."\n"); |
|
| 73 | 73 | |
| 74 | 74 | foreach ($map as $entity) { |
| 75 | - fwrite($fh, ' Entity: ' . $this->getIdString($entity, $uow) . ' ' . spl_object_id($entity) . "\n"); |
|
| 75 | + fwrite($fh, ' Entity: '.$this->getIdString($entity, $uow).' '.spl_object_id($entity)."\n"); |
|
| 76 | 76 | fwrite($fh, " Associations:\n"); |
| 77 | 77 | |
| 78 | 78 | $cm = $em->getClassMetadata($className); |
| 79 | 79 | |
| 80 | 80 | foreach ($cm->getDeclaredPropertiesIterator() as $field => $association) { |
| 81 | - if (! ($association instanceof AssociationMetadata)) { |
|
| 81 | + if ( ! ($association instanceof AssociationMetadata)) { |
|
| 82 | 82 | continue; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - fwrite($fh, ' ' . $field . ' '); |
|
| 85 | + fwrite($fh, ' '.$field.' '); |
|
| 86 | 86 | |
| 87 | 87 | $value = $association->getValue($entity); |
| 88 | 88 | |
@@ -97,21 +97,21 @@ discard block |
||
| 97 | 97 | fwrite($fh, '[PROXY] '); |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - fwrite($fh, $this->getIdString($value, $uow) . ' ' . spl_object_id($value) . "\n"); |
|
| 100 | + fwrite($fh, $this->getIdString($value, $uow).' '.spl_object_id($value)."\n"); |
|
| 101 | 101 | } else { |
| 102 | 102 | $initialized = ! ($value instanceof PersistentCollection) || $value->isInitialized(); |
| 103 | 103 | |
| 104 | 104 | if ($initialized) { |
| 105 | - fwrite($fh, '[INITIALIZED] ' . $this->getType($value) . ' ' . count($value) . " elements\n"); |
|
| 105 | + fwrite($fh, '[INITIALIZED] '.$this->getType($value).' '.count($value)." elements\n"); |
|
| 106 | 106 | |
| 107 | 107 | foreach ($value as $obj) { |
| 108 | - fwrite($fh, ' ' . $this->getIdString($obj, $uow) . ' ' . spl_object_id($obj) . "\n"); |
|
| 108 | + fwrite($fh, ' '.$this->getIdString($obj, $uow).' '.spl_object_id($obj)."\n"); |
|
| 109 | 109 | } |
| 110 | 110 | } else { |
| 111 | - fwrite($fh, '[PROXY] ' . $this->getType($value) . " unknown element size\n"); |
|
| 111 | + fwrite($fh, '[PROXY] '.$this->getType($value)." unknown element size\n"); |
|
| 112 | 112 | |
| 113 | 113 | foreach ($value->unwrap() as $obj) { |
| 114 | - fwrite($fh, ' ' . $this->getIdString($obj, $uow) . ' ' . spl_object_id($obj) . "\n"); |
|
| 114 | + fwrite($fh, ' '.$this->getIdString($obj, $uow).' '.spl_object_id($obj)."\n"); |
|
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | } |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $idstring = ''; |
| 151 | 151 | |
| 152 | 152 | foreach ($ids as $k => $v) { |
| 153 | - $idstring .= $k . '=' . $v; |
|
| 153 | + $idstring .= $k.'='.$v; |
|
| 154 | 154 | } |
| 155 | 155 | } else { |
| 156 | 156 | $idstring = 'NEWOBJECT '; |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | /** @var Query $countQuery */ |
| 222 | 222 | $countQuery = $this->cloneQuery($this->query); |
| 223 | 223 | |
| 224 | - if (! $countQuery->hasHint(CountWalker::HINT_DISTINCT)) { |
|
| 224 | + if ( ! $countQuery->hasHint(CountWalker::HINT_DISTINCT)) { |
|
| 225 | 225 | $countQuery->setHint(CountWalker::HINT_DISTINCT, true); |
| 226 | 226 | } |
| 227 | 227 | |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | foreach ($parameters as $key => $parameter) { |
| 249 | 249 | $parameterName = $parameter->getName(); |
| 250 | 250 | |
| 251 | - if (! (isset($parameterMappings[$parameterName]) || array_key_exists($parameterName, $parameterMappings))) { |
|
| 251 | + if ( ! (isset($parameterMappings[$parameterName]) || array_key_exists($parameterName, $parameterMappings))) { |
|
| 252 | 252 | unset($parameters[$key]); |
| 253 | 253 | } |
| 254 | 254 | } |
@@ -28,9 +28,9 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function getSql(SqlWalker $sqlWalker) |
| 30 | 30 | { |
| 31 | - return 'ROW_NUMBER() OVER(' . trim($sqlWalker->walkOrderByClause( |
|
| 31 | + return 'ROW_NUMBER() OVER('.trim($sqlWalker->walkOrderByClause( |
|
| 32 | 32 | $this->orderByClause |
| 33 | - )) . ')'; |
|
| 33 | + )).')'; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | [$pathExpression] |
| 90 | 90 | ); |
| 91 | 91 | $expression = new InExpression($arithmeticExpression); |
| 92 | - $expression->literals[] = new InputParameter(':' . self::PAGINATOR_ID_ALIAS); |
|
| 92 | + $expression->literals[] = new InputParameter(':'.self::PAGINATOR_ID_ALIAS); |
|
| 93 | 93 | } else { |
| 94 | 94 | $expression = new NullComparisonExpression($pathExpression); |
| 95 | 95 | $expression->not = false; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** @var ClassMetadata $metadata */ |
| 43 | 43 | $metadata = $event->getClassMetadata(); |
| 44 | 44 | |
| 45 | - if (! isset($this->entityListeners[$metadata->getClassName()])) { |
|
| 45 | + if ( ! isset($this->entityListeners[$metadata->getClassName()])) { |
|
| 46 | 46 | return; |
| 47 | 47 | } |
| 48 | 48 | |