Failed Conditions
Push — develop ( 856053...a7d1bd )
by Guilherme
61:28
created
lib/Doctrine/ORM/Mapping/Exporter/TableMetadataExporter.php 1 patch
Spacing   +8 added lines, -8 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
 
@@ -19,24 +19,24 @@  discard block
 block discarded – undo
19 19
         /** @var TableMetadata $value */
20 20
         $variableExporter = new VariableExporter();
21 21
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
22
-        $objectReference  = $indentation . static::VARIABLE;
22
+        $objectReference  = $indentation.static::VARIABLE;
23 23
         $lines = [];
24 24
 
25
-        $lines[] = $objectReference . ' = ' . $this->exportInstantiation($value);
25
+        $lines[] = $objectReference.' = '.$this->exportInstantiation($value);
26 26
 
27
-        if (! empty($value->getSchema())) {
28
-            $lines[] = $objectReference . '->setSchema("' . $value->getSchema() . '");';
27
+        if ( ! empty($value->getSchema())) {
28
+            $lines[] = $objectReference.'->setSchema("'.$value->getSchema().'");';
29 29
         }
30 30
 
31 31
         foreach ($value->getIndexes() as $index) {
32
-            $lines[] = $objectReference . '->addIndex(' . ltrim($variableExporter->export($index, $indentationLevel + 1)) . ');';
32
+            $lines[] = $objectReference.'->addIndex('.ltrim($variableExporter->export($index, $indentationLevel + 1)).');';
33 33
         }
34 34
 
35 35
         foreach ($value->getUniqueConstraints() as $uniqueConstraint) {
36
-            $lines[] = $objectReference . '->addUniqueConstraint(' . ltrim($variableExporter->export($uniqueConstraint, $indentationLevel + 1)) . ');';
36
+            $lines[] = $objectReference.'->addUniqueConstraint('.ltrim($variableExporter->export($uniqueConstraint, $indentationLevel + 1)).');';
37 37
         }
38 38
 
39
-        $lines[] = $objectReference . '->setOptions(' . ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)) . ');';
39
+        $lines[] = $objectReference.'->setOptions('.ltrim($variableExporter->export($value->getOptions(), $indentationLevel + 1)).');';
40 40
 
41 41
         return implode(PHP_EOL, $lines);
42 42
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/TransientMetadataExporter.php 1 patch
Spacing   +3 added lines, -3 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,9 +18,9 @@  discard block
 block discarded – undo
18 18
     {
19 19
         /** @var TransientMetadata $value */
20 20
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
21
-        $objectReference  = $indentation . static::VARIABLE;
21
+        $objectReference  = $indentation.static::VARIABLE;
22 22
 
23
-        return $objectReference . ' = ' . $this->exportInstantiation($value);
23
+        return $objectReference.' = '.$this->exportInstantiation($value);
24 24
     }
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/EmbeddedClassMetadata.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;
7 7
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @param string                        $className
39 39
      * @param MappedSuperClassMetadata|null $parent
40 40
      */
41
-    public function __construct(string $name, string $className, ?MappedSuperClassMetadata $parent = null)
41
+    public function __construct(string $name, string $className, ? MappedSuperClassMetadata $parent = null)
42 42
     {
43 43
         parent::__construct($className, $parent);
44 44
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataDefinition.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;
7 7
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function __construct(
35 35
         string $entityClassName,
36 36
         string $metadataClassName,
37
-        ?ClassMetadata $parentMetadata = null
37
+        ? ClassMetadata $parentMetadata = null
38 38
     )
39 39
     {
40 40
         $this->entityClassName     = $entityClassName;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataResolver.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.
ORM/Mapping/Factory/Strategy/FileReaderClassMetadataGeneratorStrategy.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.
ORM/Mapping/Factory/Strategy/FileWriterClassMetadataGeneratorStrategy.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\Strategy;
7 7
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $this->ensureDirectoryIsReady(dirname($filePath));
36 36
 
37
-        $tmpFileName = $filePath . '.' . uniqid('', true);
37
+        $tmpFileName = $filePath.'.'.uniqid('', true);
38 38
 
39 39
         file_put_contents($tmpFileName, $sourceCode);
40 40
         @chmod($tmpFileName, 0664);
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
      */
51 51
     private function ensureDirectoryIsReady(string $directory)
52 52
     {
53
-        if (! is_dir($directory) && (false === @mkdir($directory, 0775, true))) {
53
+        if ( ! is_dir($directory) && (false === @mkdir($directory, 0775, true))) {
54 54
             throw new \RuntimeException(sprintf('Your metadata directory "%s" must be writable', $directory));
55 55
         }
56 56
 
57
-        if (! is_writable($directory)) {
57
+        if ( ! is_writable($directory)) {
58 58
             throw new \RuntimeException(sprintf('Your proxy directory "%s" must be writable', $directory));
59 59
         }
60 60
     }
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.