@@ -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\Proxy\Factory\Strategy; |
| 7 | 7 | |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public function generate(string $filePath, ProxyDefinition $definition): void |
| 16 | 16 | { |
| 17 | - if (! file_exists($filePath)) { |
|
| 17 | + if ( ! file_exists($filePath)) { |
|
| 18 | 18 | parent::generate($filePath, $definition); |
| 19 | 19 | |
| 20 | 20 | return; |
@@ -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\Proxy\Factory\Strategy; |
| 7 | 7 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | $this->ensureDirectoryIsReady(dirname($filePath)); |
| 36 | 36 | |
| 37 | - $tmpFileName = $filePath . '.' . uniqid('', true); |
|
| 37 | + $tmpFileName = $filePath.'.'.uniqid('', true); |
|
| 38 | 38 | |
| 39 | 39 | file_put_contents($tmpFileName, $sourceCode); |
| 40 | 40 | @chmod($tmpFileName, 0664); |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | private function ensureDirectoryIsReady(string $directory) |
| 52 | 52 | { |
| 53 | - if (! is_dir($directory) && (false === @mkdir($directory, 0775, true))) { |
|
| 53 | + if ( ! is_dir($directory) && (false === @mkdir($directory, 0775, true))) { |
|
| 54 | 54 | throw new \RuntimeException(sprintf('Your proxy directory "%s" must be writable', $directory)); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - if (! is_writable($directory)) { |
|
| 57 | + if ( ! is_writable($directory)) { |
|
| 58 | 58 | throw new \RuntimeException(sprintf('Your proxy directory "%s" must be writable', $directory)); |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -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\Proxy\Factory\Strategy; |
| 7 | 7 | |
@@ -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\Proxy\Factory\Strategy; |
| 7 | 7 | |
@@ -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\Proxy\Factory; |
| 7 | 7 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $existingProperties = get_object_vars($proxy); // Do not override properties manually set. |
| 80 | 80 | |
| 81 | 81 | foreach ($lazyPropertyList as $propertyName => $defaultValue) { |
| 82 | - if (! array_key_exists($propertyName, $existingProperties)) { |
|
| 82 | + if ( ! array_key_exists($propertyName, $existingProperties)) { |
|
| 83 | 83 | $proxy->$propertyName = $defaultValue; |
| 84 | 84 | } |
| 85 | 85 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | $propertyName = $reflectionProperty->getName(); |
| 179 | 179 | $property = $this->entityClassMetadata->getProperty($propertyName); |
| 180 | 180 | |
| 181 | - if (! $property || $property instanceof TransientMetadata || $property->isPrimaryKey()) { |
|
| 181 | + if ( ! $property || $property instanceof TransientMetadata || $property->isPrimaryKey()) { |
|
| 182 | 182 | continue; |
| 183 | 183 | } |
| 184 | 184 | |
@@ -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\Proxy\Factory; |
| 7 | 7 | |
@@ -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\Proxy\Factory; |
| 7 | 7 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | private function getOrCreateProxyDefinition(string $className) : ProxyDefinition |
| 119 | 119 | { |
| 120 | - if (! isset($this->definitions[$className])) { |
|
| 120 | + if ( ! isset($this->definitions[$className])) { |
|
| 121 | 121 | $classMetadata = $this->entityManager->getClassMetadata($className); |
| 122 | 122 | |
| 123 | 123 | $this->definitions[$className] = $this->definitionFactory->build($classMetadata); |
@@ -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\Proxy\Factory; |
| 7 | 7 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | // remove namespace separators from remaining class name |
| 44 | 44 | $fileName = str_replace('\\', '', $classNameRelativeToProxyNamespace); |
| 45 | 45 | |
| 46 | - return $proxyDir . DIRECTORY_SEPARATOR . $fileName . '.php'; |
|
| 46 | + return $proxyDir.DIRECTORY_SEPARATOR.$fileName.'.php'; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | $proxyNamespace = ltrim($proxyNamespace, '\\'); |
| 67 | 67 | |
| 68 | - if (! (null === $notFoundCallback || is_callable($notFoundCallback))) { |
|
| 68 | + if ( ! (null === $notFoundCallback || is_callable($notFoundCallback))) { |
|
| 69 | 69 | $type = is_object($notFoundCallback) ? get_class($notFoundCallback) : gettype($notFoundCallback); |
| 70 | 70 | |
| 71 | 71 | throw new InvalidArgumentException( |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | ); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - $autoloader = function ($className) use ($proxyDir, $proxyNamespace, $notFoundCallback) { |
|
| 76 | + $autoloader = function($className) use ($proxyDir, $proxyNamespace, $notFoundCallback) { |
|
| 77 | 77 | if (0 === strpos($className, $proxyNamespace)) { |
| 78 | 78 | $file = Autoloader::resolveFile($proxyDir, $proxyNamespace, $className); |
| 79 | 79 | |
@@ -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\Proxy\Factory; |
| 7 | 7 | |