Failed Conditions
Pull Request — master (#7242)
by Gabriel
08:46
created
lib/Doctrine/ORM/Annotation/DoctrineAnnotations.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -2,44 +2,44 @@
 block discarded – undo
2 2
 
3 3
 declare(strict_types=1);
4 4
 
5
-require_once __DIR__ . '/Annotation.php';
6
-require_once __DIR__ . '/AssociationOverride.php';
7
-require_once __DIR__ . '/AssociationOverrides.php';
8
-require_once __DIR__ . '/AttributeOverride.php';
9
-require_once __DIR__ . '/AttributeOverrides.php';
10
-require_once __DIR__ . '/Cache.php';
11
-require_once __DIR__ . '/ChangeTrackingPolicy.php';
12
-require_once __DIR__ . '/Column.php';
13
-require_once __DIR__ . '/CustomIdGenerator.php';
14
-require_once __DIR__ . '/DiscriminatorColumn.php';
15
-require_once __DIR__ . '/DiscriminatorMap.php';
16
-require_once __DIR__ . '/Embeddable.php';
17
-require_once __DIR__ . '/Embedded.php';
18
-require_once __DIR__ . '/Entity.php';
19
-require_once __DIR__ . '/EntityListeners.php';
20
-require_once __DIR__ . '/GeneratedValue.php';
21
-require_once __DIR__ . '/HasLifecycleCallbacks.php';
22
-require_once __DIR__ . '/Id.php';
23
-require_once __DIR__ . '/Index.php';
24
-require_once __DIR__ . '/InheritanceType.php';
25
-require_once __DIR__ . '/JoinColumn.php';
26
-require_once __DIR__ . '/JoinColumns.php';
27
-require_once __DIR__ . '/JoinTable.php';
28
-require_once __DIR__ . '/ManyToMany.php';
29
-require_once __DIR__ . '/ManyToOne.php';
30
-require_once __DIR__ . '/MappedSuperclass.php';
31
-require_once __DIR__ . '/OneToMany.php';
32
-require_once __DIR__ . '/OneToOne.php';
33
-require_once __DIR__ . '/OrderBy.php';
34
-require_once __DIR__ . '/PrePersist.php';
35
-require_once __DIR__ . '/PostLoad.php';
36
-require_once __DIR__ . '/PostPersist.php';
37
-require_once __DIR__ . '/PostRemove.php';
38
-require_once __DIR__ . '/PostUpdate.php';
39
-require_once __DIR__ . '/PreFlush.php';
40
-require_once __DIR__ . '/PreRemove.php';
41
-require_once __DIR__ . '/PreUpdate.php';
42
-require_once __DIR__ . '/SequenceGenerator.php';
43
-require_once __DIR__ . '/Table.php';
44
-require_once __DIR__ . '/UniqueConstraint.php';
45
-require_once __DIR__ . '/Version.php';
5
+require_once __DIR__.'/Annotation.php';
6
+require_once __DIR__.'/AssociationOverride.php';
7
+require_once __DIR__.'/AssociationOverrides.php';
8
+require_once __DIR__.'/AttributeOverride.php';
9
+require_once __DIR__.'/AttributeOverrides.php';
10
+require_once __DIR__.'/Cache.php';
11
+require_once __DIR__.'/ChangeTrackingPolicy.php';
12
+require_once __DIR__.'/Column.php';
13
+require_once __DIR__.'/CustomIdGenerator.php';
14
+require_once __DIR__.'/DiscriminatorColumn.php';
15
+require_once __DIR__.'/DiscriminatorMap.php';
16
+require_once __DIR__.'/Embeddable.php';
17
+require_once __DIR__.'/Embedded.php';
18
+require_once __DIR__.'/Entity.php';
19
+require_once __DIR__.'/EntityListeners.php';
20
+require_once __DIR__.'/GeneratedValue.php';
21
+require_once __DIR__.'/HasLifecycleCallbacks.php';
22
+require_once __DIR__.'/Id.php';
23
+require_once __DIR__.'/Index.php';
24
+require_once __DIR__.'/InheritanceType.php';
25
+require_once __DIR__.'/JoinColumn.php';
26
+require_once __DIR__.'/JoinColumns.php';
27
+require_once __DIR__.'/JoinTable.php';
28
+require_once __DIR__.'/ManyToMany.php';
29
+require_once __DIR__.'/ManyToOne.php';
30
+require_once __DIR__.'/MappedSuperclass.php';
31
+require_once __DIR__.'/OneToMany.php';
32
+require_once __DIR__.'/OneToOne.php';
33
+require_once __DIR__.'/OrderBy.php';
34
+require_once __DIR__.'/PrePersist.php';
35
+require_once __DIR__.'/PostLoad.php';
36
+require_once __DIR__.'/PostPersist.php';
37
+require_once __DIR__.'/PostRemove.php';
38
+require_once __DIR__.'/PostUpdate.php';
39
+require_once __DIR__.'/PreFlush.php';
40
+require_once __DIR__.'/PreRemove.php';
41
+require_once __DIR__.'/PreUpdate.php';
42
+require_once __DIR__.'/SequenceGenerator.php';
43
+require_once __DIR__.'/Table.php';
44
+require_once __DIR__.'/UniqueConstraint.php';
45
+require_once __DIR__.'/Version.php';
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/IterableResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,6 @@
 block discarded – undo
77 77
      */
78 78
     public function valid()
79 79
     {
80
-        return $this->current!==false;
80
+        return $this->current !== false;
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/HydrationException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
      */
41 41
     public static function emptyDiscriminatorValue($dqlAlias)
42 42
     {
43
-        return new self("The DQL alias '" . $dqlAlias . "' contains an entity " .
44
-            'of an inheritance hierarchy with an empty discriminator value. This means ' .
45
-            'that the database contains inconsistent data with an empty ' .
43
+        return new self("The DQL alias '".$dqlAlias."' contains an entity ".
44
+            'of an inheritance hierarchy with an empty discriminator value. This means '.
45
+            'that the database contains inconsistent data with an empty '.
46 46
             'discriminator value in a table row.');
47 47
     }
48 48
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Configuration/MetadataConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
     public function getNamingStrategy() : NamingStrategy
80 80
     {
81
-        if (! $this->namingStrategy) {
81
+        if ( ! $this->namingStrategy) {
82 82
             $this->namingStrategy = new DefaultNamingStrategy();
83 83
         }
84 84
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Configuration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function newDefaultAnnotationDriver(array $paths = []) : AnnotationDriver
162 162
     {
163
-        AnnotationRegistry::registerFile(__DIR__ . '/Annotation/DoctrineAnnotations.php');
163
+        AnnotationRegistry::registerFile(__DIR__.'/Annotation/DoctrineAnnotations.php');
164 164
 
165 165
         $reader = new CachedReader(new AnnotationReader(), new ArrayCache());
166 166
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     {
235 235
         $queryCacheImpl = $this->getQueryCacheImpl();
236 236
 
237
-        if (! $queryCacheImpl) {
237
+        if ( ! $queryCacheImpl) {
238 238
             throw QueryCacheNotConfigured::create();
239 239
         }
240 240
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
         $metadataCacheImpl = $this->getMetadataCacheImpl();
246 246
 
247
-        if (! $metadataCacheImpl) {
247
+        if ( ! $metadataCacheImpl) {
248 248
             throw MetadataCacheNotConfigured::create();
249 249
         }
250 250
 
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
     {
453 453
         $reflectionClass = new \ReflectionClass($repositoryClassName);
454 454
 
455
-        if (! $reflectionClass->implementsInterface(ObjectRepository::class)) {
455
+        if ( ! $reflectionClass->implementsInterface(ObjectRepository::class)) {
456 456
             throw InvalidEntityRepository::fromClassName($repositoryClassName);
457 457
         }
458 458
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Exception/InvalidEntityRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public static function fromClassName(string $className) : self
12 12
     {
13 13
         return new self(
14
-            "Invalid repository class '" . $className . "'. It must be a " . ObjectRepository::class . '.'
14
+            "Invalid repository class '".$className."'. It must be a ".ObjectRepository::class.'.'
15 15
         );
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Exception/MissingMappingDriverImplementation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public static function create() : self
10 10
     {
11 11
         return new self(
12
-            "It's a requirement to specify a Metadata Driver and pass it " .
12
+            "It's a requirement to specify a Metadata Driver and pass it ".
13 13
             'to Doctrine\\ORM\\Configuration::setMetadataDriverImpl().'
14 14
         );
15 15
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/DriverChain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         foreach ($this->drivers as $namespace => $driver) {
100 100
             $oid = spl_object_id($driver);
101 101
 
102
-            if (! isset($driverClasses[$oid])) {
102
+            if ( ! isset($driverClasses[$oid])) {
103 103
                 $driverClasses[$oid] = $driver->getAllClassNames();
104 104
             }
105 105
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ToOneAssociationMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         /** @var ToOneAssociationMetadata $value */
20 20
         $joinColumnExporter = new JoinColumnMetadataExporter();
21 21
         $indentation        = str_repeat(self::INDENTATION, $indentationLevel);
22
-        $objectReference    = $indentation . static::VARIABLE;
22
+        $objectReference    = $indentation.static::VARIABLE;
23 23
         $lines              = [];
24 24
 
25 25
         $lines[] = parent::export($value, $indentationLevel);
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             $lines[] = null;
29 29
             $lines[] = $joinColumnExporter->export($joinColumn, $indentationLevel);
30 30
             $lines[] = null;
31
-            $lines[] = $objectReference . '->addJoinColumn(' . $joinColumnExporter::VARIABLE . ');';
31
+            $lines[] = $objectReference.'->addJoinColumn('.$joinColumnExporter::VARIABLE.');';
32 32
         }
33 33
 
34 34
         return implode(PHP_EOL, $lines);
Please login to merge, or discard this patch.