Failed Conditions
Push — develop ( c47956...348e78 )
by Marco
17s
created
Doctrine/ORM/Mapping/Factory/Strategy/ClassMetadataGeneratorStrategy.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\Mapping\Factory\Strategy;
7 7
 
Please login to merge, or discard this patch.
Factory/Strategy/ConditionalFileWriterClassMetadataGeneratorStrategy.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\Mapping\Factory\Strategy;
7 7
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function generate(string $filePath, ClassMetadataDefinition $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;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/DefaultNamingStrategy.php 1 patch
Spacing   +4 added lines, -4 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\Mapping\Factory;
7 7
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function joinColumnName($propertyName, $className = null)
58 58
     {
59
-        return $propertyName . '_' . $this->referenceColumnName();
59
+        return $propertyName.'_'.$this->referenceColumnName();
60 60
     }
61 61
 
62 62
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
66 66
     {
67
-        return strtolower($this->classToTableName($sourceEntity) . '_' .
67
+        return strtolower($this->classToTableName($sourceEntity).'_'.
68 68
             $this->classToTableName($targetEntity));
69 69
     }
70 70
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function joinKeyColumnName($entityName, $referencedColumnName = null)
75 75
     {
76
-        return strtolower($this->classToTableName($entityName) . '_' .
76
+        return strtolower($this->classToTableName($entityName).'_'.
77 77
             ($referencedColumnName ?: $this->referenceColumnName()));
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/DefaultClassMetadataResolver.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\Mapping\Factory;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/SecondPass.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\Mapping\Factory;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataGenerator.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\Mapping\Factory;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/UnderscoreNamingStrategy.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\Mapping\Factory;
7 7
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function referenceColumnName()
87 87
     {
88
-        return $this->case === CASE_UPPER ?  'ID' : 'id';
88
+        return $this->case === CASE_UPPER ? 'ID' : 'id';
89 89
     }
90 90
 
91 91
     /**
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function joinColumnName($propertyName, $className = null)
95 95
     {
96
-        return $this->underscore($propertyName) . '_' . $this->referenceColumnName();
96
+        return $this->underscore($propertyName).'_'.$this->referenceColumnName();
97 97
     }
98 98
 
99 99
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
103 103
     {
104
-        return $this->classToTableName($sourceEntity) . '_' . $this->classToTableName($targetEntity);
104
+        return $this->classToTableName($sourceEntity).'_'.$this->classToTableName($targetEntity);
105 105
     }
106 106
     
107 107
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function joinKeyColumnName($entityName, $referencedColumnName = null)
111 111
     {
112
-        return $this->classToTableName($entityName) . '_' .
112
+        return $this->classToTableName($entityName).'_'.
113 113
                 ($referencedColumnName ?: $this->referenceColumnName());
114 114
     }
115 115
     
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/NamingStrategy.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\Mapping\Factory;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataDefinitionFactory.php 1 patch
Spacing   +4 added lines, -4 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\Mapping\Factory;
7 7
 
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @return ClassMetadataDefinition
40 40
      */
41
-    public function build(string $className, ?ClassMetadata $parentMetadata) : ClassMetadataDefinition
41
+    public function build(string $className, ? ClassMetadata $parentMetadata) : ClassMetadataDefinition
42 42
     {
43 43
         $definition = $this->createDefinition($className, $parentMetadata);
44 44
 
45
-        if (! class_exists($definition->metadataClassName, false)) {
45
+        if ( ! class_exists($definition->metadataClassName, false)) {
46 46
             $metadataClassPath = $this->resolver->resolveMetadataClassPath($className);
47 47
 
48 48
             $this->generatorStrategy->generate($metadataClassPath, $definition);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return ClassMetadataDefinition
59 59
      */
60
-    private function createDefinition(string $className, ?ClassMetadata $parentMetadata) : ClassMetadataDefinition
60
+    private function createDefinition(string $className, ? ClassMetadata $parentMetadata) : ClassMetadataDefinition
61 61
     {
62 62
         $metadataClassName = $this->resolver->resolveMetadataClassName($className);
63 63
 
Please login to merge, or discard this patch.