@@ -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\Tools; |
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\Tools\Console; |
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\Tools\Console\Command; |
6 | 6 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | parent::setUp(); |
34 | 34 | |
35 | - $this->path = \sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('doctrine_'); |
|
35 | + $this->path = \sys_get_temp_dir().DIRECTORY_SEPARATOR.uniqid('doctrine_'); |
|
36 | 36 | |
37 | 37 | \mkdir($this->path); |
38 | 38 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $metadataDriver->addPaths( |
43 | 43 | [ |
44 | - __DIR__ . '/../../../../Models/DDC3231/' |
|
44 | + __DIR__.'/../../../../Models/DDC3231/' |
|
45 | 45 | ] |
46 | 46 | ); |
47 | 47 | |
@@ -88,13 +88,13 @@ discard block |
||
88 | 88 | $this->generateRepositories('DDC3231User1'); |
89 | 89 | |
90 | 90 | $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User1Repository'; |
91 | - $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php'; |
|
91 | + $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php'; |
|
92 | 92 | |
93 | - self::assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname); |
|
94 | - self::assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php'); |
|
93 | + self::assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname); |
|
94 | + self::assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php'); |
|
95 | 95 | |
96 | - require $this->path . DIRECTORY_SEPARATOR . $fname; |
|
97 | - require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php'; |
|
96 | + require $this->path.DIRECTORY_SEPARATOR.$fname; |
|
97 | + require $this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php'; |
|
98 | 98 | |
99 | 99 | self::assertTrue(class_exists($cname)); |
100 | 100 | self::assertTrue(class_exists('DDC3231User1NoNamespaceRepository')); |
@@ -111,13 +111,13 @@ discard block |
||
111 | 111 | $this->generateRepositories('DDC3231User2', DDC3231EntityRepository::class); |
112 | 112 | |
113 | 113 | $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User2Repository'; |
114 | - $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php'; |
|
114 | + $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php'; |
|
115 | 115 | |
116 | - self::assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname); |
|
117 | - self::assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php'); |
|
116 | + self::assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname); |
|
117 | + self::assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php'); |
|
118 | 118 | |
119 | - require $this->path . DIRECTORY_SEPARATOR . $fname; |
|
120 | - require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php'; |
|
119 | + require $this->path.DIRECTORY_SEPARATOR.$fname; |
|
120 | + require $this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php'; |
|
121 | 121 | |
122 | 122 | self::assertTrue(class_exists($cname)); |
123 | 123 | self::assertTrue(class_exists('DDC3231User2NoNamespaceRepository')); |
@@ -143,16 +143,16 @@ |
||
143 | 143 | $em = $this->createMock(EntityManagerInterface::class); |
144 | 144 | |
145 | 145 | $configuration->method('getDefaultRepositoryClassName') |
146 | - ->willReturn('fooRepository'); |
|
146 | + ->willReturn('fooRepository'); |
|
147 | 147 | |
148 | 148 | $metadataFactory->method('getAllMetadata') |
149 | 149 | ->willReturn([]); |
150 | 150 | |
151 | 151 | $em->method('getMetadataFactory') |
152 | - ->willReturn($metadataFactory); |
|
152 | + ->willReturn($metadataFactory); |
|
153 | 153 | |
154 | 154 | $em->method('getConfiguration') |
155 | - ->willReturn($configuration); |
|
155 | + ->willReturn($configuration); |
|
156 | 156 | |
157 | 157 | $application = new Application(); |
158 | 158 | $application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($em)])); |
@@ -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\Tools\Console\Command; |
6 | 6 |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | $em = $this->createMock(EntityManagerInterface::class); |
61 | 61 | |
62 | 62 | $mappingDriver->method('getAllClassNames') |
63 | - ->willReturn([]); |
|
63 | + ->willReturn([]); |
|
64 | 64 | |
65 | 65 | $configuration->method('getMetadataDriverImpl') |
66 | - ->willReturn($mappingDriver); |
|
66 | + ->willReturn($mappingDriver); |
|
67 | 67 | |
68 | 68 | $em->method('getConfiguration') |
69 | - ->willReturn($configuration); |
|
69 | + ->willReturn($configuration); |
|
70 | 70 | |
71 | 71 | $application = new Application(); |
72 | 72 | $application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($em)])); |
@@ -95,17 +95,17 @@ discard block |
||
95 | 95 | $em = $this->createMock(EntityManagerInterface::class); |
96 | 96 | |
97 | 97 | $mappingDriver->method('getAllClassNames') |
98 | - ->willReturn(['InvalidEntity']); |
|
98 | + ->willReturn(['InvalidEntity']); |
|
99 | 99 | |
100 | 100 | $configuration->method('getMetadataDriverImpl') |
101 | - ->willReturn($mappingDriver); |
|
101 | + ->willReturn($mappingDriver); |
|
102 | 102 | |
103 | 103 | $em->method('getConfiguration') |
104 | - ->willReturn($configuration); |
|
104 | + ->willReturn($configuration); |
|
105 | 105 | |
106 | 106 | $em->method('getClassMetadata') |
107 | - ->with('InvalidEntity') |
|
108 | - ->willThrowException(new MappingException('exception message')); |
|
107 | + ->with('InvalidEntity') |
|
108 | + ->willThrowException(new MappingException('exception message')); |
|
109 | 109 | |
110 | 110 | $application = new Application(); |
111 | 111 | $application->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($em)])); |
@@ -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\Console\Command; |
6 | 6 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | ], ['decorated' => false] |
56 | 56 | ); |
57 | 57 | |
58 | - self::assertEquals('Clearing all second-level cache entity regions' . PHP_EOL, $tester->getDisplay()); |
|
58 | + self::assertEquals('Clearing all second-level cache entity regions'.PHP_EOL, $tester->getDisplay()); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | public function testClearByEntityClassName() |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | ], ['decorated' => false] |
70 | 70 | ); |
71 | 71 | |
72 | - self::assertEquals('Clearing second-level cache for entity "Doctrine\Tests\Models\Cache\Country"' . PHP_EOL, $tester->getDisplay()); |
|
72 | + self::assertEquals('Clearing second-level cache for entity "Doctrine\Tests\Models\Cache\Country"'.PHP_EOL, $tester->getDisplay()); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | public function testClearCacheEntryName() |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ], ['decorated' => false] |
85 | 85 | ); |
86 | 86 | |
87 | - self::assertEquals('Clearing second-level cache entry for entity "Doctrine\Tests\Models\Cache\Country" identified by "1"' . PHP_EOL, $tester->getDisplay()); |
|
87 | + self::assertEquals('Clearing second-level cache entry for entity "Doctrine\Tests\Models\Cache\Country" identified by "1"'.PHP_EOL, $tester->getDisplay()); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | public function testFlushRegionName() |
@@ -99,6 +99,6 @@ discard block |
||
99 | 99 | ], ['decorated' => false] |
100 | 100 | ); |
101 | 101 | |
102 | - self::assertEquals('Flushing cache provider configured for entity named "Doctrine\Tests\Models\Cache\Country"' . PHP_EOL, $tester->getDisplay()); |
|
102 | + self::assertEquals('Flushing cache provider configured for entity named "Doctrine\Tests\Models\Cache\Country"'.PHP_EOL, $tester->getDisplay()); |
|
103 | 103 | } |
104 | 104 | } |
@@ -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\Console\Command; |
6 | 6 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | ], ['decorated' => false] |
55 | 55 | ); |
56 | 56 | |
57 | - self::assertEquals('Clearing all second-level cache query regions' . PHP_EOL, $tester->getDisplay()); |
|
57 | + self::assertEquals('Clearing all second-level cache query regions'.PHP_EOL, $tester->getDisplay()); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | public function testClearDefaultRegionName() |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ], ['decorated' => false] |
69 | 69 | ); |
70 | 70 | |
71 | - self::assertEquals('Clearing second-level cache query region named "query_cache_region"' . PHP_EOL, $tester->getDisplay()); |
|
71 | + self::assertEquals('Clearing second-level cache query region named "query_cache_region"'.PHP_EOL, $tester->getDisplay()); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | public function testClearByRegionName() |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | ], ['decorated' => false] |
83 | 83 | ); |
84 | 84 | |
85 | - self::assertEquals('Clearing second-level cache query region named "my_region"' . PHP_EOL, $tester->getDisplay()); |
|
85 | + self::assertEquals('Clearing second-level cache query region named "my_region"'.PHP_EOL, $tester->getDisplay()); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | public function testFlushRegionName() |
@@ -97,6 +97,6 @@ discard block |
||
97 | 97 | ], ['decorated' => false] |
98 | 98 | ); |
99 | 99 | |
100 | - self::assertEquals('Flushing cache provider configured for second-level cache query region named "my_region"' . PHP_EOL, $tester->getDisplay()); |
|
100 | + self::assertEquals('Flushing cache provider configured for second-level cache query region named "my_region"'.PHP_EOL, $tester->getDisplay()); |
|
101 | 101 | } |
102 | 102 | } |
@@ -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\Console\Command; |
6 | 6 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $this->tester->execute( |
70 | 70 | [ |
71 | 71 | 'command' => $this->command->getName(), |
72 | - 'dql' => 'SELECT e FROM ' . DateTimeModel::class . ' e', |
|
72 | + 'dql' => 'SELECT e FROM '.DateTimeModel::class.' e', |
|
73 | 73 | ] |
74 | 74 | ) |
75 | 75 | ); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $this->tester->execute( |
88 | 88 | [ |
89 | 89 | 'command' => $this->command->getName(), |
90 | - 'dql' => 'SELECT e FROM ' . DateTimeModel::class . ' e', |
|
90 | + 'dql' => 'SELECT e FROM '.DateTimeModel::class.' e', |
|
91 | 91 | '--show-sql' => 'true' |
92 | 92 | ] |
93 | 93 | ) |
@@ -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\Export; |
6 | 6 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function testFieldsAreProperlySerialized() |
33 | 33 | { |
34 | - $xml = simplexml_load_file(__DIR__ . '/export/xml/Doctrine.Tests.ORM.Tools.Export.ExportedUser.dcm.xml'); |
|
34 | + $xml = simplexml_load_file(__DIR__.'/export/xml/Doctrine.Tests.ORM.Tools.Export.ExportedUser.dcm.xml'); |
|
35 | 35 | |
36 | 36 | $xml->registerXPathNamespace("d", "http://doctrine-project.org/schemas/orm/doctrine-mapping"); |
37 | 37 |
@@ -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\Tools\Pagination; |
6 | 6 |