Test Failed
Push — 2.0 ( 0b8edf...2fe7be )
by Vincent
17:47
created
src/Logger/PsrDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
             );
95 95
         }
96 96
 
97
-        return ' : [' . implode(', ', $buffer) . ']';
97
+        return ' : ['.implode(', ', $buffer).']';
98 98
     }
99 99
     
100 100
     /**
Please login to merge, or discard this patch.
src/Relations/Util/SimpleTableJoinRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         $query->joinEntity(
45 45
             $this->distant->entityName(),
46
-            function (JoinClause $clause) use($alias, $query) { $this->buildJoinClause($clause, $query, $alias); },
46
+            function(JoinClause $clause) use($alias, $query) { $this->buildJoinClause($clause, $query, $alias); },
47 47
             null,
48 48
             $alias
49 49
         );
Please login to merge, or discard this patch.
src/Schema/Visitor/MapperVisitor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -172,21 +172,21 @@
 block discarded – undo
172 172
         if ($default !== null) {
173 173
             switch ($type) {
174 174
                 case TypeInterface::BOOLEAN:
175
-                    $default = (boolean)$default;
175
+                    $default = (boolean) $default;
176 176
                     break;
177 177
 
178 178
                 case TypeInterface::TINYINT:
179 179
                 case TypeInterface::SMALLINT:
180 180
                 case TypeInterface::INTEGER:
181
-                    $default = (int)$default;
181
+                    $default = (int) $default;
182 182
                     break;
183 183
 
184 184
                 case TypeInterface::FLOAT:
185
-                    $default = (float)$default;
185
+                    $default = (float) $default;
186 186
                     break;
187 187
 
188 188
                 case TypeInterface::DOUBLE:
189
-                    $default = (double)$default;
189
+                    $default = (double) $default;
190 190
                     break;
191 191
             }
192 192
 
Please login to merge, or discard this patch.
src/Schema/SchemaManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $tables = [$tables];
88 88
         }
89 89
 
90
-        $tables = array_map(function ($table) {
90
+        $tables = array_map(function($table) {
91 91
             if ($table instanceof TableInterface) {
92 92
                 return (new TableTransformer($table, $this->platform))->toDoctrine();
93 93
             }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             $queries = $queries->toSql($this->platform->grammar());
236 236
         }
237 237
 
238
-        foreach ((array)$queries as $query) {
238
+        foreach ((array) $queries as $query) {
239 239
             $this->queries[] = $query;
240 240
         }
241 241
 
Please login to merge, or discard this patch.
src/Platform/PlatformTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             return $this->get($type)->toDatabase($value);
155 155
         }
156 156
 
157
-        throw new TypeException(gettype($value), 'Cannot convert to database the value : ' . print_r($value, true).PHP_EOL.'You should set a valid type as second parameter');
157
+        throw new TypeException(gettype($value), 'Cannot convert to database the value : '.print_r($value, true).PHP_EOL.'You should set a valid type as second parameter');
158 158
     }
159 159
 
160 160
     /**
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             return null;
177 177
         }
178 178
 
179
-        throw new TypeException(gettype($value), 'Cannot convert to php the value : ' . print_r($value, true).PHP_EOL.'You should set a valid type as second parameter');
179
+        throw new TypeException(gettype($value), 'Cannot convert to php the value : '.print_r($value, true).PHP_EOL.'You should set a valid type as second parameter');
180 180
     }
181 181
 
182 182
     /**
Please login to merge, or discard this patch.
src/Collection/ArrayCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
             return $items->all();
328 328
         }
329 329
         
330
-        return (array)$items;
330
+        return (array) $items;
331 331
     }
332 332
     
333 333
     /**
Please login to merge, or discard this patch.
src/Entity/Criteria.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
                 $this->remove($attribute);
89 89
             }
90 90
             
91
-            $this->criteria[$filter]  = $value;
91
+            $this->criteria[$filter] = $value;
92 92
             $this->inputs[$attribute][] = $filter;
93 93
         }
94 94
         
Please login to merge, or discard this patch.
src/Entity/Extensions/ArrayInjector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         }
27 27
 
28 28
         foreach ($data as $attribute => $value) {
29
-            $method = 'set' . ucfirst($attribute);
29
+            $method = 'set'.ucfirst($attribute);
30 30
             $exists = property_exists($this, $attribute);
31 31
             
32 32
             if ($exists && $this->$attribute instanceof ImportableInterface && !$value instanceof ImportableInterface) {
Please login to merge, or discard this patch.
src/Entity/Hydrator/Generator/CodeGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             return '';
39 39
         }
40 40
 
41
-        return 'namespace ' . $namespace . ';';
41
+        return 'namespace '.$namespace.';';
42 42
     }
43 43
 
44 44
     /**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $out = '';
55 55
 
56 56
         foreach ($names as $property) {
57
-            $out .= $visibility.' $' . $property . ';'.$this->eol;
57
+            $out .= $visibility.' $'.$property.';'.$this->eol;
58 58
         }
59 59
 
60 60
         return $out;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function simpleConstructor($properties)
71 71
     {
72
-        $parameters = implode(', ', array_map(function ($p) { return '$'.$p; }, $properties));
72
+        $parameters = implode(', ', array_map(function($p) { return '$'.$p; }, $properties));
73 73
         $content = '';
74 74
 
75 75
         foreach ($properties as $property) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 $content .= $this->eol;
78 78
             }
79 79
 
80
-            $content .= '$this->' . $property . ' = $' . $property . ';';
80
+            $content .= '$this->'.$property.' = $'.$property.';';
81 81
         }
82 82
 
83 83
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $spaces = str_repeat($this->tab, $tabs);
103 103
 
104
-        return $spaces . str_replace($this->eol, $this->eol.$spaces, $code);
104
+        return $spaces.str_replace($this->eol, $this->eol.$spaces, $code);
105 105
     }
106 106
 
107 107
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      *
160 160
      * @return string
161 161
      */
162
-    public function switch($varName, array $cases, $default = null)
162
+    public function switch ($varName, array $cases, $default = null)
163 163
     {
164 164
         $code = 'switch ('.$varName.') {'.$this->eol;
165 165
 
Please login to merge, or discard this patch.