@@ -33,10 +33,10 @@ discard block |
||
| 33 | 33 | $rsm->setDiscriminatorColumn('p', 'discr'); |
| 34 | 34 | |
| 35 | 35 | $resultSet = [ |
| 36 | - [ |
|
| 37 | - 'u__id' => '1', |
|
| 38 | - 'u__name' => 'Fabio B. Silva', |
|
| 39 | - ], |
|
| 36 | + [ |
|
| 37 | + 'u__id' => '1', |
|
| 38 | + 'u__name' => 'Fabio B. Silva', |
|
| 39 | + ], |
|
| 40 | 40 | ]; |
| 41 | 41 | |
| 42 | 42 | $stmt = new HydratorMockStatement($resultSet); |
@@ -89,11 +89,11 @@ discard block |
||
| 89 | 89 | $rsm->setDiscriminatorColumn('p', 'discr'); |
| 90 | 90 | |
| 91 | 91 | $resultSet = [ |
| 92 | - [ |
|
| 93 | - 'p__id' => '1', |
|
| 94 | - 'p__name' => 'Fabio B. Silva', |
|
| 95 | - 'discr' => 'subworker', |
|
| 96 | - ], |
|
| 92 | + [ |
|
| 93 | + 'p__id' => '1', |
|
| 94 | + 'p__name' => 'Fabio B. Silva', |
|
| 95 | + 'discr' => 'subworker', |
|
| 96 | + ], |
|
| 97 | 97 | ]; |
| 98 | 98 | |
| 99 | 99 | $stmt = new HydratorMockStatement($resultSet); |
@@ -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\Tools; |
| 6 | 6 | |
@@ -42,12 +42,12 @@ discard block |
||
| 42 | 42 | public function modelSetProvider() : array |
| 43 | 43 | { |
| 44 | 44 | return [ |
| 45 | - 'cms' => [__DIR__ . '/../../Models/CMS'], |
|
| 46 | - 'company' => [__DIR__ . '/../../Models/Company'], |
|
| 47 | - 'ecommerce' => [__DIR__ . '/../../Models/ECommerce'], |
|
| 48 | - 'forum' => [__DIR__ . '/../../Models/Forum'], |
|
| 49 | - 'navigation' => [__DIR__ . '/../../Models/Navigation'], |
|
| 50 | - 'routing' => [__DIR__ . '/../../Models/Routing'], |
|
| 45 | + 'cms' => [__DIR__.'/../../Models/CMS'], |
|
| 46 | + 'company' => [__DIR__.'/../../Models/Company'], |
|
| 47 | + 'ecommerce' => [__DIR__.'/../../Models/ECommerce'], |
|
| 48 | + 'forum' => [__DIR__.'/../../Models/Forum'], |
|
| 49 | + 'navigation' => [__DIR__.'/../../Models/Navigation'], |
|
| 50 | + 'routing' => [__DIR__.'/../../Models/Routing'], |
|
| 51 | 51 | ]; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -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 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | protected function loadDriverForCMSModels() |
| 120 | 120 | { |
| 121 | 121 | $annotationDriver = $this->loadDriver(); |
| 122 | - $annotationDriver->addPaths([__DIR__ . '/../../Models/CMS/']); |
|
| 122 | + $annotationDriver->addPaths([__DIR__.'/../../Models/CMS/']); |
|
| 123 | 123 | return $annotationDriver; |
| 124 | 124 | } |
| 125 | 125 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | public function testJoinTablesWithMappedSuperclassForAnnotationDriver() |
| 142 | 142 | { |
| 143 | 143 | $annotationDriver = $this->loadDriver(); |
| 144 | - $annotationDriver->addPaths([__DIR__ . '/../../Models/DirectoryTree/']); |
|
| 144 | + $annotationDriver->addPaths([__DIR__.'/../../Models/DirectoryTree/']); |
|
| 145 | 145 | |
| 146 | 146 | $em = $this->getTestEntityManager(); |
| 147 | 147 | $em->getConfiguration()->setMetadataDriverImpl($annotationDriver); |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | $this->expectException(MappingException::class); |
| 173 | 173 | $this->expectExceptionMessage( |
| 174 | - 'It is illegal to put an inverse side one-to-many or many-to-many association on ' . |
|
| 174 | + 'It is illegal to put an inverse side one-to-many or many-to-many association on '. |
|
| 175 | 175 | "mapped superclass 'Doctrine\Tests\ORM\Mapping\InvalidMappedSuperClass#users'" |
| 176 | 176 | ); |
| 177 | 177 | |
@@ -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 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | ] |
| 22 | 22 | ); |
| 23 | 23 | |
| 24 | - touch($filename = $this->dir . '/Foo' . $this->getFileExtension()); |
|
| 24 | + touch($filename = $this->dir.'/Foo'.$this->getFileExtension()); |
|
| 25 | 25 | self::assertEquals($filename, $driver->getLocator()->findMappingFile('MyNamespace\MySubnamespace\Entity\Foo')); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | ] |
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | - touch($filename = $this->dir . '/Foo.Bar' . $this->getFileExtension()); |
|
| 36 | + touch($filename = $this->dir.'/Foo.Bar'.$this->getFileExtension()); |
|
| 37 | 37 | self::assertEquals($filename, $driver->getLocator()->findMappingFile('MyNamespace\MySubnamespace\Entity\Foo\Bar')); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -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 | [ |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | protected function setUp() |
| 69 | 69 | { |
| 70 | - $this->dir = sys_get_temp_dir() . '/abstract_driver_test'; |
|
| 70 | + $this->dir = sys_get_temp_dir().'/abstract_driver_test'; |
|
| 71 | 71 | @mkdir($this->dir, 0777, true); |
| 72 | 72 | } |
| 73 | 73 | |
@@ -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 | |
@@ -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) { |
@@ -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\Performance; |
| 6 | 6 | |
@@ -17,13 +17,13 @@ discard block |
||
| 17 | 17 | { |
| 18 | 18 | $config = new Configuration(); |
| 19 | 19 | |
| 20 | - $config->setProxyDir(__DIR__ . '/../Tests/Proxies'); |
|
| 20 | + $config->setProxyDir(__DIR__.'/../Tests/Proxies'); |
|
| 21 | 21 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 22 | 22 | $config->setAutoGenerateProxyClasses(StaticProxyFactory::AUTOGENERATE_EVAL); |
| 23 | 23 | $config->setMetadataDriverImpl( |
| 24 | 24 | $config->newDefaultAnnotationDriver([ |
| 25 | - realpath(__DIR__ . '/Models/Cache'), |
|
| 26 | - realpath(__DIR__ . '/Models/GeoNames'), |
|
| 25 | + realpath(__DIR__.'/Models/Cache'), |
|
| 26 | + realpath(__DIR__.'/Models/GeoNames'), |
|
| 27 | 27 | ]) |
| 28 | 28 | ); |
| 29 | 29 | |
@@ -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\Performance\Hydration; |
| 6 | 6 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | 'u__status' => 'developer', |
| 70 | 70 | 'u__username' => 'jwage', |
| 71 | 71 | 'u__name' => 'Jonathan', |
| 72 | - 'sclr0' => 'JWAGE' . $i, |
|
| 72 | + 'sclr0' => 'JWAGE'.$i, |
|
| 73 | 73 | 'p__phonenumber' => '91', |
| 74 | 74 | ]; |
| 75 | 75 | } |
@@ -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\Performance\Hydration; |
| 6 | 6 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | 'u__status' => 'developer', |
| 55 | 55 | 'u__username' => 'jwage', |
| 56 | 56 | 'u__name' => 'Jonathan', |
| 57 | - 'sclr0' => 'JWAGE' . $i, |
|
| 57 | + 'sclr0' => 'JWAGE'.$i, |
|
| 58 | 58 | 'p__phonenumber' => '91', |
| 59 | 59 | 'a__id' => $i, |
| 60 | 60 | ]; |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $qb = $this->em->createQueryBuilder(); |
| 28 | 28 | $qb->select('p', 'r') |
| 29 | - ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 30 | - ->leftJoin('p.roles', 'r'); |
|
| 29 | + ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 30 | + ->leftJoin('p.roles', 'r'); |
|
| 31 | 31 | |
| 32 | 32 | self::assertSQLEquals( |
| 33 | 33 | 'SELECT t0."privilegeID" AS c0, t0."name" AS c1, t1."roleID" AS c2, t1."name" AS c3, t1."shortName" AS c4 FROM "Privileges" t0 LEFT JOIN "RolePrivileges" t2 ON t0."privilegeID" = t2."privilegeID" LEFT JOIN "Roles" t1 ON t1."roleID" = t2."roleID"', |
@@ -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\Functional\Ticket; |
| 6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | $qb = $this->em->createQueryBuilder(); |
| 28 | 28 | $qb->select('p', 'r') |
| 29 | - ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 29 | + ->from(__NAMESPACE__.'\DDC698Privilege', 'p') |
|
| 30 | 30 | ->leftJoin('p.roles', 'r'); |
| 31 | 31 | |
| 32 | 32 | self::assertSQLEquals( |