Failed Conditions
Push — develop ( 856053...a7d1bd )
by Guilherme
61:28
created
lib/Doctrine/ORM/Cache/Persister/Entity/ReadOnlyCachedEntityPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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\Persister\Entity;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultCacheFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/CollectionCacheKey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/RepositoryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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];
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/ToolEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Event/GenerateSchemaTableEventArgs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Doctrine\ORM\Tools\Event;
5 5
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/ClassMetadataExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function exportClassMetadata(ClassMetadata $metadata)
39 39
     {
40 40
         $xml = new \SimpleXmlElement("<?xml version=\"1.0\" encoding=\"utf-8\"?><doctrine-mapping ".
41
-            "xmlns=\"http://doctrine-project.org/schemas/orm/doctrine-mapping\" " .
41
+            "xmlns=\"http://doctrine-project.org/schemas/orm/doctrine-mapping\" ".
42 42
             "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ".
43 43
             "xsi:schemaLocation=\"http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd\" />");
44 44
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             }
224 224
         }
225 225
 
226
-        if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks)>0) {
226
+        if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks) > 0) {
227 227
             $lifecycleCallbacksXml = $root->addChild('lifecycle-callbacks');
228 228
 
229 229
             foreach ($metadata->lifecycleCallbacks as $name => $methods) {
@@ -387,15 +387,15 @@  discard block
 block discarded – undo
387 387
             $joinColumnXml->addAttribute('name', $joinColumn->getColumnName());
388 388
             $joinColumnXml->addAttribute('referenced-column-name', $joinColumn->getReferencedColumnName());
389 389
 
390
-            if (! empty($joinColumn->getAliasedName())) {
390
+            if ( ! empty($joinColumn->getAliasedName())) {
391 391
                 $joinColumnXml->addAttribute('field-name', $joinColumn->getAliasedName());
392 392
             }
393 393
 
394
-            if (! empty($joinColumn->getOnDelete())) {
394
+            if ( ! empty($joinColumn->getOnDelete())) {
395 395
                 $joinColumnXml->addAttribute('on-delete', $joinColumn->getOnDelete());
396 396
             }
397 397
 
398
-            if (! empty($joinColumn->getColumnDefinition())) {
398
+            if ( ! empty($joinColumn->getColumnDefinition())) {
399 399
                 $joinColumnXml->addAttribute('column-definition', $joinColumn->getColumnDefinition());
400 400
             }
401 401
 
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 
430 430
         foreach (['remove', 'persist', 'refresh', 'merge', 'detach'] as $type) {
431 431
             if (in_array($type, $associationCascades)) {
432
-                $cascades[] = 'cascade-' . $type;
432
+                $cascades[] = 'cascade-'.$type;
433 433
             }
434 434
         }
435 435
 
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
     {
481 481
         $sequenceDefinition = $metadata->getValueGenerator()->getDefinition();
482 482
 
483
-        if (! ($metadata->getValueGenerator()->getType() === GeneratorType::SEQUENCE && $sequenceDefinition)) {
483
+        if ( ! ($metadata->getValueGenerator()->getType() === GeneratorType::SEQUENCE && $sequenceDefinition)) {
484 484
             return;
485 485
         }
486 486
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@
 block discarded – undo
371 371
 
372 372
     /**
373 373
      * @param \SimpleXMLElement $associationXml
374
-     * @param array             $joinColumns
374
+     * @param JoinColumnMetadata[]             $joinColumns
375 375
      * @param string            $joinColumnsName
376 376
      */
377 377
     private function exportJoinColumns(
Please login to merge, or discard this patch.