@@ -12,11 +12,11 @@ |
||
12 | 12 | use Entities\Address; |
13 | 13 | use Entities\User; |
14 | 14 | |
15 | -$em = require_once __DIR__ . '/bootstrap.php'; |
|
15 | +$em = require_once __DIR__.'/bootstrap.php'; |
|
16 | 16 | |
17 | 17 | ## PUT YOUR TEST CODE BELOW |
18 | 18 | |
19 | 19 | $user = new User; |
20 | 20 | $address = new Address; |
21 | 21 | |
22 | -echo 'Hello World!' . PHP_EOL; |
|
22 | +echo 'Hello World!'.PHP_EOL; |
@@ -72,10 +72,10 @@ discard block |
||
72 | 72 | $tableName = $class->table['name']; |
73 | 73 | |
74 | 74 | if ( ! empty($class->table['schema'])) { |
75 | - $tableName = $class->table['schema'] . '.' . $class->table['name']; |
|
75 | + $tableName = $class->table['schema'].'.'.$class->table['name']; |
|
76 | 76 | |
77 | 77 | if ( ! $platform->supportsSchemas() && $platform->canEmulateSchemas()) { |
78 | - $tableName = $class->table['schema'] . '__' . $class->table['name']; |
|
78 | + $tableName = $class->table['schema'].'__'.$class->table['name']; |
|
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $schema = ''; |
131 | 131 | |
132 | 132 | if (isset($association['joinTable']['schema'])) { |
133 | - $schema = $association['joinTable']['schema'] . '.'; |
|
133 | + $schema = $association['joinTable']['schema'].'.'; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | $tableName = $association['joinTable']['name']; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | isset($association['joinTable']['quoted']) |
142 | 142 | ); |
143 | 143 | |
144 | - return $schema . $tableName; |
|
144 | + return $schema.$tableName; |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $self = $this; |
163 | 163 | $joinColumns = $class->associationMappings[$fieldName]['joinColumns']; |
164 | 164 | $assocQuotedColumnNames = array_map( |
165 | - function ($joinColumn) use ($platform, $self) |
|
165 | + function($joinColumn) use ($platform, $self) |
|
166 | 166 | { |
167 | 167 | return $self->getQuotedName( |
168 | 168 | $platform, |
@@ -189,10 +189,10 @@ discard block |
||
189 | 189 | // If the alias is to long, characters are cut off from the beginning. |
190 | 190 | // 3 ) Strip non alphanumeric characters |
191 | 191 | // 4 ) Prefix with "_" if the result its numeric |
192 | - $columnName = $columnName . '_' . $counter; |
|
192 | + $columnName = $columnName.'_'.$counter; |
|
193 | 193 | $columnName = substr($columnName, -$platform->getMaxIdentifierLength()); |
194 | 194 | $columnName = preg_replace('/[^A-Za-z0-9_]/', '', $columnName); |
195 | - $columnName = is_numeric($columnName) ? '_' . $columnName : $columnName; |
|
195 | + $columnName = is_numeric($columnName) ? '_'.$columnName : $columnName; |
|
196 | 196 | |
197 | 197 | return $platform->getSQLResultCasing($columnName); |
198 | 198 | } |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | |
6 | 6 | // Path to composer autoloader. You can use different provided by your favorite framework, |
7 | 7 | // if you want to. |
8 | -$loaderPath = __DIR__ . '/../../vendor/autoload.php'; |
|
9 | -if(!is_readable($loaderPath)){ |
|
8 | +$loaderPath = __DIR__.'/../../vendor/autoload.php'; |
|
9 | +if ( ! is_readable($loaderPath)) { |
|
10 | 10 | throw new LogicException('Run php composer.phar install at first'); |
11 | 11 | } |
12 | 12 | $loader = require $loaderPath; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $config = new \Doctrine\ORM\Configuration(); |
20 | 20 | |
21 | 21 | // Set up Metadata Drivers |
22 | -$driverImpl = $config->newDefaultAnnotationDriver([__DIR__ . "/Entities"]); |
|
22 | +$driverImpl = $config->newDefaultAnnotationDriver([__DIR__."/Entities"]); |
|
23 | 23 | $config->setMetadataDriverImpl($driverImpl); |
24 | 24 | |
25 | 25 | // Set up caches, depending on $debug variable. |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $config->setQueryCacheImpl($cache); |
30 | 30 | |
31 | 31 | // Proxy configuration |
32 | -$config->setProxyDir(__DIR__ . '/Proxies'); |
|
32 | +$config->setProxyDir(__DIR__.'/Proxies'); |
|
33 | 33 | $config->setProxyNamespace('Proxies'); |
34 | 34 | |
35 | 35 | // Database connection information |
@@ -2,28 +2,28 @@ |
||
2 | 2 | /* |
3 | 3 | * This file bootstraps the test environment. |
4 | 4 | */ |
5 | -declare(strict_types=1); |
|
5 | +declare(strict_types = 1); |
|
6 | 6 | |
7 | 7 | namespace Doctrine\Tests; |
8 | 8 | |
9 | 9 | error_reporting(E_ALL | E_STRICT); |
10 | 10 | date_default_timezone_set('UTC'); |
11 | 11 | |
12 | -if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) { |
|
12 | +if (file_exists(__DIR__.'/../../../vendor/autoload.php')) { |
|
13 | 13 | // dependencies were installed via composer - this is the main project |
14 | - require __DIR__ . '/../../../vendor/autoload.php'; |
|
15 | -} elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) { |
|
14 | + require __DIR__.'/../../../vendor/autoload.php'; |
|
15 | +} elseif (file_exists(__DIR__.'/../../../../../autoload.php')) { |
|
16 | 16 | // installed as a dependency in `vendor` |
17 | - require __DIR__ . '/../../../../../autoload.php'; |
|
17 | + require __DIR__.'/../../../../../autoload.php'; |
|
18 | 18 | } else { |
19 | 19 | throw new \Exception('Can\'t find autoload.php. Did you install dependencies via composer?'); |
20 | 20 | } |
21 | 21 | |
22 | -if ( ! file_exists(__DIR__ . '/Proxies') && ! mkdir(__DIR__ . '/Proxies')) { |
|
23 | - throw new \Exception("Could not create " . __DIR__."/Proxies Folder."); |
|
22 | +if ( ! file_exists(__DIR__.'/Proxies') && ! mkdir(__DIR__.'/Proxies')) { |
|
23 | + throw new \Exception("Could not create ".__DIR__."/Proxies Folder."); |
|
24 | 24 | } |
25 | 25 | |
26 | -if ( ! file_exists(__DIR__ . '/ORM/Proxy/generated') && ! mkdir(__DIR__ . '/ORM/Proxy/generated')) { |
|
27 | - throw new \Exception('Could not create ' . __DIR__ . '/ORM/Proxy/generated Folder.'); |
|
26 | +if ( ! file_exists(__DIR__.'/ORM/Proxy/generated') && ! mkdir(__DIR__.'/ORM/Proxy/generated')) { |
|
27 | + throw new \Exception('Could not create '.__DIR__.'/ORM/Proxy/generated Folder.'); |
|
28 | 28 | } |
29 | 29 |
@@ -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; |
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; |
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\Utility; |
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\Mapping; |
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\Mapping; |
6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | protected function setUp() |
22 | 22 | { |
23 | 23 | parent::setUp(); |
24 | - $this->resolver = new DefaultEntityListenerResolver(); |
|
24 | + $this->resolver = new DefaultEntityListenerResolver(); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function testResolve() |