@@ -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\Tests\ORM\Mapping\NamingStrategy; |
| 6 | 6 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | public function joinColumnName($propertyName, $className = null) |
| 18 | 18 | { |
| 19 | 19 | return strtolower($this->classToTableName($className)) |
| 20 | - . '_' . $propertyName |
|
| 21 | - . '_' . $this->referenceColumnName(); |
|
| 20 | + . '_'.$propertyName |
|
| 21 | + . '_'.$this->referenceColumnName(); |
|
| 22 | 22 | } |
| 23 | 23 | } |
@@ -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\Tests\ORM\Mapping; |
| 6 | 6 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | protected function loadDriverForCMSModels() |
| 123 | 123 | { |
| 124 | 124 | $annotationDriver = $this->loadDriver(); |
| 125 | - $annotationDriver->addPaths([__DIR__ . '/../../Models/CMS/']); |
|
| 125 | + $annotationDriver->addPaths([__DIR__.'/../../Models/CMS/']); |
|
| 126 | 126 | return $annotationDriver; |
| 127 | 127 | } |
| 128 | 128 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | public function testJoinTablesWithMappedSuperclassForAnnotationDriver() |
| 145 | 145 | { |
| 146 | 146 | $annotationDriver = $this->loadDriver(); |
| 147 | - $annotationDriver->addPaths([__DIR__ . '/../../Models/DirectoryTree/']); |
|
| 147 | + $annotationDriver->addPaths([__DIR__.'/../../Models/DirectoryTree/']); |
|
| 148 | 148 | |
| 149 | 149 | $em = $this->getTestEntityManager(); |
| 150 | 150 | $em->getConfiguration()->setMetadataDriverImpl($annotationDriver); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | $this->expectException(MappingException::class); |
| 176 | 176 | $this->expectExceptionMessage( |
| 177 | - "It is illegal to put an inverse side one-to-many or many-to-many association on " . |
|
| 177 | + "It is illegal to put an inverse side one-to-many or many-to-many association on ". |
|
| 178 | 178 | "mapped superclass 'Doctrine\Tests\ORM\Mapping\InvalidMappedSuperClass#users'" |
| 179 | 179 | ); |
| 180 | 180 | |
@@ -195,8 +195,8 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | $this->expectException(MappingException::class); |
| 197 | 197 | $this->expectExceptionMessage( |
| 198 | - "It is not supported to define inheritance information on a mapped " . |
|
| 199 | - "superclass '" . MappedSuperClassInheritance::class . "'." |
|
| 198 | + "It is not supported to define inheritance information on a mapped ". |
|
| 199 | + "superclass '".MappedSuperClassInheritance::class."'." |
|
| 200 | 200 | ); |
| 201 | 201 | |
| 202 | 202 | $usingInvalidMsc = $factory->getMetadataFor(MappedSuperClassInheritance::class); |
@@ -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\Tests\ORM\Mapping\Symfony; |
| 6 | 6 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | public function testFindMappingNamespaceNotFound() |
| 55 | 55 | { |
| 56 | 56 | $this->expectException(MappingException::class); |
| 57 | - $this->expectExceptionMessage("No mapping file found named 'Foo" . $this->getFileExtension() . "' for class 'MyOtherNamespace\MySubnamespace\Entity\Foo'."); |
|
| 57 | + $this->expectExceptionMessage("No mapping file found named 'Foo".$this->getFileExtension()."' for class 'MyOtherNamespace\MySubnamespace\Entity\Foo'."); |
|
| 58 | 58 | |
| 59 | 59 | $driver = $this->getDriver( |
| 60 | 60 | [ |
@@ -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\Tests\ORM\Mapping\Symfony; |
| 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\Tests\ORM\Entity; |
| 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\Tests\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\Tests\ORM\Sequencing; |
| 6 | 6 | |
@@ -45,13 +45,13 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | for ($i = 0; $i < 42; ++$i) { |
| 47 | 47 | if ($i % 10 === 0) { |
| 48 | - $this->connection->setQueryResult(new StatementArrayMock([[(int)($i / 10) * 10]])); |
|
| 48 | + $this->connection->setQueryResult(new StatementArrayMock([[(int) ($i / 10) * 10]])); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | $id = $this->sequenceGenerator->generate($this->entityManager, null); |
| 52 | 52 | |
| 53 | 53 | self::assertSame($i, $id); |
| 54 | - self::assertSame((int)($i / 10) * 10 + 10, $this->sequenceGenerator->getCurrentMaxValue()); |
|
| 54 | + self::assertSame((int) ($i / 10) * 10 + 10, $this->sequenceGenerator->getCurrentMaxValue()); |
|
| 55 | 55 | self::assertSame($i + 1, $this->sequenceGenerator->getNextValue()); |
| 56 | 56 | } |
| 57 | 57 | } |
@@ -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\Tests\ORM\Performance; |
| 6 | 6 | |
@@ -153,10 +153,10 @@ discard block |
||
| 153 | 153 | foreach ($content as $selection) { |
| 154 | 154 | $field = $result[$selection->field]; |
| 155 | 155 | $choiceList = $selection->choiceList; |
| 156 | - $fieldSelection = new DDC2602FieldSelection(); |
|
| 156 | + $fieldSelection = new DDC2602FieldSelection(); |
|
| 157 | 157 | |
| 158 | 158 | $fieldSelection->field = $field; |
| 159 | - $fieldSelection->choiceList = $field->choiceList->filter(function ($choice) use ($choiceList) { |
|
| 159 | + $fieldSelection->choiceList = $field->choiceList->filter(function($choice) use ($choiceList) { |
|
| 160 | 160 | return in_array($choice->id, $choiceList); |
| 161 | 161 | }); |
| 162 | 162 | |
@@ -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\Tests\ORM\Decorator; |
| 6 | 6 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $methods = []; |
| 34 | 34 | |
| 35 | 35 | foreach ($class->getMethods() as $method) { |
| 36 | - if ($method->isConstructor() || $method->isStatic() || !$method->isPublic()) { |
|
| 36 | + if ($method->isConstructor() || $method->isStatic() || ! $method->isPublic()) { |
|
| 37 | 37 | continue; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | /** Special case EntityManager::transactional() */ |
| 54 | 54 | if ($method->getName() === 'transactional') { |
| 55 | - return [$method->getName(), [function () {}]]; |
|
| 55 | + return [$method->getName(), [function() {}]]; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | if ($method->getNumberOfRequiredParameters() === 0) { |