Failed Conditions
Push — develop ( c47956...348e78 )
by Marco
17s
created
lib/Doctrine/ORM/Mapping/ColumnMetadata.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;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/MappedSuperClassMetadata.php 1 patch
Spacing   +6 added lines, -6 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;
7 7
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @param string                        $className
32 32
      * @param MappedSuperClassMetadata|null $parent
33 33
      */
34
-    public function __construct(string $className, ?MappedSuperClassMetadata $parent = null)
34
+    public function __construct(string $className, ? MappedSuperClassMetadata $parent = null)
35 35
     {
36 36
         parent::__construct($className, $parent);
37 37
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * @return null|string
41 41
      */
42
-    public function getCustomRepositoryClassName() : ?string
42
+    public function getCustomRepositoryClassName() : ? string
43 43
     {
44 44
         return $this->customRepositoryClassName;
45 45
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @param null|string customRepositoryClassName
49 49
      */
50
-    public function setCustomRepositoryClassName(?string $customRepositoryClassName)
50
+    public function setCustomRepositoryClassName(? string $customRepositoryClassName)
51 51
     {
52 52
         $this->customRepositoryClassName = $customRepositoryClassName;
53 53
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * @return Property|null
57 57
      */
58
-    public function getDeclaredVersion() : ?Property
58
+    public function getDeclaredVersion() : ? Property
59 59
     {
60 60
         return $this->declaredVersion;
61 61
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     /**
72 72
      * @return Property|null
73 73
      */
74
-    public function getVersion() : ?Property
74
+    public function getVersion() : ? Property
75 75
     {
76 76
         /** @var MappedSuperClassMetadata|null $parent */
77 77
         $parent  = $this->parent;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/TableMetadata.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;
7 7
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function getQuotedQualifiedName(AbstractPlatform $platform)
65 65
     {
66
-        if (!$this->schema) {
66
+        if ( ! $this->schema) {
67 67
             return $platform->quoteIdentifier($this->name);
68 68
         }
69 69
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function addIndex(array $index)
152 152
     {
153
-        if (! isset($index['name'])) {
153
+        if ( ! isset($index['name'])) {
154 154
             $this->indexes[] = $index;
155 155
 
156 156
             return;
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function addUniqueConstraint(array $constraint)
194 194
     {
195
-        if (! isset($constraint['name'])) {
195
+        if ( ! isset($constraint['name'])) {
196 196
             $this->uniqueConstraints[] = $constraint;
197 197
 
198 198
             return;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/DiscriminatorColumnMetadataExporter.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\Exporter;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/JoinColumnMetadataExporter.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\Exporter;
7 7
 
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
     {
19 19
         /** @var JoinColumnMetadata $value */
20 20
         $indentation     = str_repeat(self::INDENTATION, $indentationLevel);
21
-        $objectReference = $indentation . static::VARIABLE;
21
+        $objectReference = $indentation.static::VARIABLE;
22 22
         $lines           = [];
23 23
 
24 24
         $lines[] = parent::export($value, $indentationLevel);
25
-        $lines[] = $objectReference . '->setReferencedColumnName("' . $value->getReferencedColumnName() . '");';
26
-        $lines[] = $objectReference . '->setAliasedName("' . $value->getAliasedName() . '");';
27
-        $lines[] = $objectReference . '->setOnDelete("' . $value->getOnDelete() . '");';
25
+        $lines[] = $objectReference.'->setReferencedColumnName("'.$value->getReferencedColumnName().'");';
26
+        $lines[] = $objectReference.'->setAliasedName("'.$value->getAliasedName().'");';
27
+        $lines[] = $objectReference.'->setOnDelete("'.$value->getOnDelete().'");';
28 28
 
29 29
         return implode(PHP_EOL, $lines);
30 30
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/VersionFieldMetadataExporter.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\Exporter;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/AssociationMetadataExporter.php 1 patch
Spacing   +16 added lines, -16 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\Exporter;
7 7
 
@@ -20,33 +20,33 @@  discard block
 block discarded – undo
20 20
         $cacheExporter    = new CacheMetadataExporter();
21 21
         $variableExporter = new VariableExporter();
22 22
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
23
-        $objectReference  = $indentation . static::VARIABLE;
23
+        $objectReference  = $indentation.static::VARIABLE;
24 24
         $cascade          = $this->resolveCascade($value->getCascade());
25 25
         $lines            = [];
26 26
 
27
-        $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value);
27
+        $lines[] = $objectReference.' = '.$this->exportInstantiation($value);
28 28
 
29
-        if (! empty($value->getCache())) {
29
+        if ( ! empty($value->getCache())) {
30 30
             $lines[] = $cacheExporter->export($value->getCache(), $indentationLevel);
31 31
             $lines[] = null;
32
-            $lines[] = $objectReference . '->setCache(' . $cacheExporter::VARIABLE . ');';
32
+            $lines[] = $objectReference.'->setCache('.$cacheExporter::VARIABLE.');';
33 33
         }
34 34
 
35
-        if (! empty($value->getMappedBy())) {
36
-            $lines[] = $objectReference . '->setMappedBy("' . $value->getMappedBy() . '");';
35
+        if ( ! empty($value->getMappedBy())) {
36
+            $lines[] = $objectReference.'->setMappedBy("'.$value->getMappedBy().'");';
37 37
         }
38 38
 
39
-        if (! empty($value->getInversedBy())) {
40
-            $lines[] = $objectReference . '->setInversedBy("' . $value->getInversedBy() . '");';
39
+        if ( ! empty($value->getInversedBy())) {
40
+            $lines[] = $objectReference.'->setInversedBy("'.$value->getInversedBy().'");';
41 41
         }
42 42
 
43
-        $lines[] = $objectReference . '->setSourceEntity("' . $value->getSourceEntity() . '");';
44
-        $lines[] = $objectReference . '->setTargetEntity("' . $value->getTargetEntity() . '");';
45
-        $lines[] = $objectReference . '->setFetchMode(Mapping\FetchMode::' . strtoupper($value->getFetchMode()) . '");';
46
-        $lines[] = $objectReference . '->setCascade(' . $variableExporter->export($cascade, $indentationLevel + 1) . ');';
47
-        $lines[] = $objectReference . '->setOwningSide(' . $variableExporter->export($value->isOwningSide(), $indentationLevel + 1) . ');';
48
-        $lines[] = $objectReference . '->setOrphanRemoval(' . $variableExporter->export($value->isOrphanRemoval(), $indentationLevel + 1) . ');';
49
-        $lines[] = $objectReference . '->setPrimaryKey(' . $variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1) . ');';
43
+        $lines[] = $objectReference.'->setSourceEntity("'.$value->getSourceEntity().'");';
44
+        $lines[] = $objectReference.'->setTargetEntity("'.$value->getTargetEntity().'");';
45
+        $lines[] = $objectReference.'->setFetchMode(Mapping\FetchMode::'.strtoupper($value->getFetchMode()).'");';
46
+        $lines[] = $objectReference.'->setCascade('.$variableExporter->export($cascade, $indentationLevel + 1).');';
47
+        $lines[] = $objectReference.'->setOwningSide('.$variableExporter->export($value->isOwningSide(), $indentationLevel + 1).');';
48
+        $lines[] = $objectReference.'->setOrphanRemoval('.$variableExporter->export($value->isOrphanRemoval(), $indentationLevel + 1).');';
49
+        $lines[] = $objectReference.'->setPrimaryKey('.$variableExporter->export($value->isPrimaryKey(), $indentationLevel + 1).');';
50 50
 
51 51
 
52 52
         return implode(PHP_EOL, $lines);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ToManyAssociationMetadataExporter.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\Exporter;
7 7
 
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
         /** @var ToManyAssociationMetadata $value */
18 18
         $variableExporter = new VariableExporter();
19 19
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
20
-        $objectReference  = $indentation . static::VARIABLE;
20
+        $objectReference  = $indentation.static::VARIABLE;
21 21
         $lines            = [];
22 22
 
23 23
         $lines[] = parent::export($value, $indentationLevel);
24 24
 
25
-        if (! empty($value->getIndexedBy())) {
26
-            $lines[] = $objectReference . '->setIndexedBy("' . $value->getIndexedBy() . '"");';
25
+        if ( ! empty($value->getIndexedBy())) {
26
+            $lines[] = $objectReference.'->setIndexedBy("'.$value->getIndexedBy().'"");';
27 27
         }
28 28
 
29
-        $lines[] = $objectReference . '->setOderBy(' . $variableExporter->export($value->getOrderBy(), $indentationLevel + 1) . ');';
29
+        $lines[] = $objectReference.'->setOderBy('.$variableExporter->export($value->getOrderBy(), $indentationLevel + 1).');';
30 30
 
31 31
         return implode(PHP_EOL, $lines);
32 32
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/ManyToOneAssociationMetadataExporter.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\Exporter;
7 7
 
Please login to merge, or discard this patch.