@@ -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\Cache; |
7 | 7 | |
@@ -208,12 +208,12 @@ discard block |
||
208 | 208 | if ($cache->getUsage() === CacheUsage::READ_WRITE) { |
209 | 209 | if ( ! $this->fileLockRegionDirectory) { |
210 | 210 | throw new \LogicException( |
211 | - 'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, ' . |
|
211 | + 'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, '. |
|
212 | 212 | 'The default implementation provided by doctrine is "Doctrine\ORM\Cache\Region\FileLockRegion" if you want to use it please provide a valid directory, DefaultCacheFactory#setFileLockRegionDirectory(). ' |
213 | 213 | ); |
214 | 214 | } |
215 | 215 | |
216 | - $directory = $this->fileLockRegionDirectory . DIRECTORY_SEPARATOR . $regionName; |
|
216 | + $directory = $this->fileLockRegionDirectory.DIRECTORY_SEPARATOR.$regionName; |
|
217 | 217 | $region = new FileLockRegion($region, $directory, $this->regionsConfig->getLockLifetime($regionName)); |
218 | 218 | } |
219 | 219 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | { |
230 | 230 | $cacheAdapter = clone $this->cache; |
231 | 231 | |
232 | - if (!$cacheAdapter instanceof CacheProvider) { |
|
232 | + if ( ! $cacheAdapter instanceof CacheProvider) { |
|
233 | 233 | return $cacheAdapter; |
234 | 234 | } |
235 | 235 | |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | $namespace .= ':'; |
240 | 240 | } |
241 | 241 | |
242 | - $cacheAdapter->setNamespace($namespace . $name); |
|
242 | + $cacheAdapter->setNamespace($namespace.$name); |
|
243 | 243 | |
244 | 244 | return $cacheAdapter; |
245 | 245 | } |
@@ -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\Cache; |
7 | 7 | |
@@ -46,6 +46,6 @@ discard block |
||
46 | 46 | $this->ownerIdentifier = $ownerIdentifier; |
47 | 47 | $this->entityClass = (string) $entityClass; |
48 | 48 | $this->association = (string) $association; |
49 | - $this->hash = str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' . $association; |
|
49 | + $this->hash = str_replace('\\', '.', strtolower($entityClass)).'_'.implode(' ', $ownerIdentifier).'__'.$association; |
|
50 | 50 | } |
51 | 51 | } |
@@ -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\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\ORM\Repository; |
6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function getRepository(EntityManagerInterface $entityManager, $entityName) |
28 | 28 | { |
29 | - $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName() . spl_object_hash($entityManager); |
|
29 | + $repositoryHash = $entityManager->getClassMetadata($entityName)->getClassName().spl_object_hash($entityManager); |
|
30 | 30 | |
31 | 31 | if (isset($this->repositoryList[$repositoryHash])) { |
32 | 32 | return $this->repositoryList[$repositoryHash]; |
@@ -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\ORM\Tools; |
6 | 6 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Doctrine\ORM\Tools\Event; |
5 | 5 |
@@ -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\ORM\Tools\Export; |
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\ORM\Tools\Export\Driver; |
6 | 6 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | protected function generateOutputPath(ClassMetadata $metadata) |
52 | 52 | { |
53 | - return $this->outputDir . '/' . str_replace('\\', '/', $metadata->getClassName()) . $this->extension; |
|
53 | + return $this->outputDir.'/'.str_replace('\\', '/', $metadata->getClassName()).$this->extension; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -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\ORM\Tools\Export\Driver; |
6 | 6 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | if ( ! is_dir($dir)) { |
127 | 127 | mkdir($dir, 0775, true); |
128 | 128 | } |
129 | - if (file_exists($path) && !$this->overwriteExistingFiles) { |
|
129 | + if (file_exists($path) && ! $this->overwriteExistingFiles) { |
|
130 | 130 | throw ExportException::attemptOverwriteExistingFile($path); |
131 | 131 | } |
132 | 132 | file_put_contents($path, $output); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | protected function generateOutputPath(ClassMetadata $metadata) |
146 | 146 | { |
147 | - return $this->outputDir . '/' . str_replace('\\', '.', $metadata->getClassName()) . $this->extension; |
|
147 | + return $this->outputDir.'/'.str_replace('\\', '.', $metadata->getClassName()).$this->extension; |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |