@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Cache; |
7 | 7 | |
@@ -46,6 +46,6 @@ discard block |
||
46 | 46 | $this->ownerIdentifier = $ownerIdentifier; |
47 | 47 | $this->entityClass = (string) $entityClass; |
48 | 48 | $this->association = (string) $association; |
49 | - $this->hash = str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' . $association; |
|
49 | + $this->hash = str_replace('\\', '.', strtolower($entityClass)).'_'.implode(' ', $ownerIdentifier).'__'.$association; |
|
50 | 50 | } |
51 | 51 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Cache; |
7 | 7 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Repository; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Repository; |
6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function getRepository(EntityManagerInterface $entityManager, $entityName) |
28 | 28 | { |
29 | - $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName() . spl_object_hash($entityManager); |
|
29 | + $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName().spl_object_hash($entityManager); |
|
30 | 30 | |
31 | 31 | if (isset($this->repositoryList[$repositoryHash])) { |
32 | 32 | return $this->repositoryList[$repositoryHash]; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Tools; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Tools; |
6 | 6 | |
@@ -178,11 +178,11 @@ discard block |
||
178 | 178 | $pkColumns = []; |
179 | 179 | |
180 | 180 | foreach ($class->getProperties() as $fieldName => $property) { |
181 | - if (! ($property instanceof FieldMetadata)) { |
|
181 | + if ( ! ($property instanceof FieldMetadata)) { |
|
182 | 182 | continue; |
183 | 183 | } |
184 | 184 | |
185 | - if (! $class->isInheritedProperty($fieldName)) { |
|
185 | + if ( ! $class->isInheritedProperty($fieldName)) { |
|
186 | 186 | $columnName = $this->platform->quoteIdentifier($property->getColumnName()); |
187 | 187 | |
188 | 188 | $this->gatherColumn($class, $property, $table); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | $processedClasses[$class->getClassName()] = true; |
325 | 325 | |
326 | 326 | foreach ($class->getProperties() as $property) { |
327 | - if (! $property instanceof FieldMetadata |
|
327 | + if ( ! $property instanceof FieldMetadata |
|
328 | 328 | || ! $property->hasValueGenerator() |
329 | 329 | || $property->getValueGenerator()->getType() !== GeneratorType::SEQUENCE |
330 | 330 | || $class->getClassName() !== $class->getRootClassName()) { |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | } |
347 | 347 | } |
348 | 348 | |
349 | - if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas() ) { |
|
349 | + if ( ! $this->platform->supportsSchemas() && ! $this->platform->canEmulateSchemas()) { |
|
350 | 350 | $schema->visit(new RemoveNamespacedAssets()); |
351 | 351 | } |
352 | 352 | |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | break; |
389 | 389 | } |
390 | 390 | |
391 | - if (!empty($discrColumn->getColumnDefinition())) { |
|
391 | + if ( ! empty($discrColumn->getColumnDefinition())) { |
|
392 | 392 | $options['columnDefinition'] = $discrColumn->getColumnDefinition(); |
393 | 393 | } |
394 | 394 | |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | $pkColumns = []; |
410 | 410 | |
411 | 411 | foreach ($class->getProperties() as $fieldName => $property) { |
412 | - if (! ($property instanceof FieldMetadata)) { |
|
412 | + if ( ! ($property instanceof FieldMetadata)) { |
|
413 | 413 | continue; |
414 | 414 | } |
415 | 415 | |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | private function gatherRelationsSql($class, $table, $schema, &$addedFks, &$blacklistedFks) |
528 | 528 | { |
529 | 529 | foreach ($class->getProperties() as $fieldName => $property) { |
530 | - if (! ($property instanceof AssociationMetadata)) { |
|
530 | + if ( ! ($property instanceof AssociationMetadata)) { |
|
531 | 531 | continue; |
532 | 532 | } |
533 | 533 | |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | continue; |
536 | 536 | } |
537 | 537 | |
538 | - if (! $property->isOwningSide()) { |
|
538 | + if ( ! $property->isOwningSide()) { |
|
539 | 539 | continue; |
540 | 540 | } |
541 | 541 | |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | $idColumns = $class->getIdentifierColumns($this->em); |
626 | 626 | $idColumnNameList = array_keys($idColumns); |
627 | 627 | |
628 | - if (! in_array($referencedColumnName, $idColumnNameList)) { |
|
628 | + if ( ! in_array($referencedColumnName, $idColumnNameList)) { |
|
629 | 629 | return null; |
630 | 630 | } |
631 | 631 | |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | foreach ($class->getIdentifierFieldNames() as $fieldName) { |
634 | 634 | $property = $class->getProperty($fieldName); |
635 | 635 | |
636 | - if (! ($property instanceof AssociationMetadata)) { |
|
636 | + if ( ! ($property instanceof AssociationMetadata)) { |
|
637 | 637 | continue; |
638 | 638 | } |
639 | 639 | |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | $property = $definingClass->getProperty($referencedFieldName); |
716 | 716 | $columnDef = null; |
717 | 717 | |
718 | - if (!empty($joinColumn->getColumnDefinition())) { |
|
718 | + if ( ! empty($joinColumn->getColumnDefinition())) { |
|
719 | 719 | $columnDef = $joinColumn->getColumnDefinition(); |
720 | 720 | } elseif ($property->getColumnDefinition()) { |
721 | 721 | $columnDef = $property->getColumnDefinition(); |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | |
724 | 724 | $columnType = $property->getTypeName(); |
725 | 725 | $columnOptions = [ |
726 | - 'notnull' => !$joinColumn->isNullable(), |
|
726 | + 'notnull' => ! $joinColumn->isNullable(), |
|
727 | 727 | 'columnDefinition' => $columnDef, |
728 | 728 | ]; |
729 | 729 | |
@@ -749,7 +749,7 @@ discard block |
||
749 | 749 | $uniqueConstraints[] = ['columns' => [$quotedColumnName]]; |
750 | 750 | } |
751 | 751 | |
752 | - if (!empty($joinColumn->getOnDelete())) { |
|
752 | + if ( ! empty($joinColumn->getOnDelete())) { |
|
753 | 753 | $fkOptions['onDelete'] = $joinColumn->getOnDelete(); |
754 | 754 | } |
755 | 755 | } |
@@ -777,7 +777,7 @@ discard block |
||
777 | 777 | } |
778 | 778 | |
779 | 779 | $blacklistedFks[$compositeName] = true; |
780 | - } elseif (!isset($blacklistedFks[$compositeName])) { |
|
780 | + } elseif ( ! isset($blacklistedFks[$compositeName])) { |
|
781 | 781 | $addedFks[$compositeName] = [ |
782 | 782 | 'foreignTableName' => $foreignTableName, |
783 | 783 | 'foreignColumns' => $foreignColumns |
@@ -888,7 +888,7 @@ discard block |
||
888 | 888 | if ($table->hasPrimaryKey()) { |
889 | 889 | $columns = $table->getPrimaryKey()->getColumns(); |
890 | 890 | if (count($columns) == 1) { |
891 | - $checkSequence = $table->getName() . "_" . $columns[0] . "_seq"; |
|
891 | + $checkSequence = $table->getName()."_".$columns[0]."_seq"; |
|
892 | 892 | if ($fullSchema->hasSequence($checkSequence)) { |
893 | 893 | $visitor->acceptSequence($fullSchema->getSequence($checkSequence)); |
894 | 894 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Tools; |
6 | 6 |