Test Failed
Push — 2.0 ( 0b8edf...2fe7be )
by Vincent
17:47
created
src/Test/RepositoryAssertion.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -66,16 +66,16 @@
 block discarded – undo
66 66
         $this->assertEntity($expected, $entity, 0, $message);
67 67
     }
68 68
     
69
-     /**
70
-     * Assert that two array of entities are equal
71
-     * 
72
-     * @param array $expectedEntities
73
-     * @param array $actualEntities
74
-     * @param int   $dateTimeDelta
75
-     * @param string $message
76
-      *
77
-      * @throws \Exception
78
-     */
69
+        /**
70
+         * Assert that two array of entities are equal
71
+         * 
72
+         * @param array $expectedEntities
73
+         * @param array $actualEntities
74
+         * @param int   $dateTimeDelta
75
+         * @param string $message
76
+         *
77
+         * @throws \Exception
78
+         */
79 79
     public function assertEntities($expectedEntities, $actualEntities, $dateTimeDelta = 5, $message = '')
80 80
     {
81 81
         if (is_string($dateTimeDelta)) {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -194,25 +194,25 @@
 block discarded – undo
194 194
                 $value = $repository->extractOne($entity, $attribute);
195 195
 
196 196
                 if ($isUninitialized) {
197
-                    $this->fail($message . ': Expected attribute "'.$path.'" to be not initialised');
197
+                    $this->fail($message.': Expected attribute "'.$path.'" to be not initialised');
198 198
                 }
199 199
             } catch (UninitializedPropertyException $e) {
200 200
                 if (!$isUninitialized) {
201
-                    $this->fail($message . ': The attribute "'.$path.'" is not initialised');
201
+                    $this->fail($message.': The attribute "'.$path.'" is not initialised');
202 202
                 }
203 203
             }
204 204
 
205 205
             if (!is_object($expectedValue)) {
206
-                $this->assertSame($expectedValue, $value, $message . ': Expected attribute "'.$path.'" is not the same');
206
+                $this->assertSame($expectedValue, $value, $message.': Expected attribute "'.$path.'" is not the same');
207 207
                 continue;
208 208
             }
209 209
 
210 210
             if ($expectedValue instanceof Constraint) {
211
-                $this->assertThat($value, $expectedValue, $message . ': Expected attribute "'.$path.'" is not the same');
211
+                $this->assertThat($value, $expectedValue, $message.': Expected attribute "'.$path.'" is not the same');
212 212
             } elseif ($expectedValue instanceof \DateTimeInterface) {
213
-                $this->assertEqualsWithDelta($expectedValue, $value, $dateTimeDelta, $message . ': Expected attribute "'.$path.'" is not the same');
213
+                $this->assertEqualsWithDelta($expectedValue, $value, $dateTimeDelta, $message.': Expected attribute "'.$path.'" is not the same');
214 214
             } else {
215
-                $this->assertEquals($expectedValue, $value, $message . ': Expected attribute "'.$path.'" is not the same');
215
+                $this->assertEquals($expectedValue, $value, $message.': Expected attribute "'.$path.'" is not the same');
216 216
             }
217 217
         }
218 218
     }
Please login to merge, or discard this patch.
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.