Test Failed
Push — master ( 9a0773...1fd30e )
by Sébastien
07:48
created
src/Migration/Console/InitCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
         $this->manager($input, $output)->initMigrationRepository();
37 37
 
38 38
         $output->writeln(
39
-            '<comment>Place your migration files in</comment> ' .
40
-            '<info>' . str_replace(getcwd(), '.', realpath($this->manager($input, $output)->getMigrationPath())) . '</info>'
39
+            '<comment>Place your migration files in</comment> '.
40
+            '<info>'.str_replace(getcwd(), '.', realpath($this->manager($input, $output)->getMigrationPath())).'</info>'
41 41
         );
42 42
 
43 43
         return 0;
Please login to merge, or discard this patch.
src/Migration/Console/StatusCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                 $status = '<error>down</error>';
51 51
             }
52 52
 
53
-            $info[] = [$status, $migration->version(), '<comment>' . $migration->name() . '</comment>', $migration->stage()];
53
+            $info[] = [$status, $migration->version(), '<comment>'.$migration->name().'</comment>', $migration->stage()];
54 54
             $info[] = new TableSeparator();
55 55
         }
56 56
 
Please login to merge, or discard this patch.
src/Migration/Console/CheckCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $info    = [];
55 55
 
56 56
         foreach ($downMigrations as $migration) {
57
-            $info[] = ['<error>down</error>', $migration->version(), '<comment>' . $migration->name() . '</comment>', $migration->stage()];
57
+            $info[] = ['<error>down</error>', $migration->version(), '<comment>'.$migration->name().'</comment>', $migration->stage()];
58 58
             $info[] = new TableSeparator();
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Migration/Console/GenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         $path = $this->manager($input, $output)->createMigration($input->getArgument('name'), $input->getOption('stage'));
44 44
 
45
-        $output->writeln('<info>+f</info> ' . '.' . str_replace(getcwd(), '', $path));
45
+        $output->writeln('<info>+f</info> '.'.'.str_replace(getcwd(), '', $path));
46 46
 
47 47
         return 0;
48 48
     }
Please login to merge, or discard this patch.
src/Migration/Provider/FileMigrationProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
         }
89 89
 
90 90
         $content = $stage === MigrationInterface::STAGE_DEFAULT
91
-            ? file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'migration.stub')
92
-            : file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'migration-staged.stub')
91
+            ? file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'migration.stub')
92
+            : file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR.'migration-staged.stub')
93 93
         ;
94 94
 
95 95
         // Try to write the migration file
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     {
149 149
         $this->migrations = [];
150 150
 
151
-        $paths = glob(realpath($this->path) . DIRECTORY_SEPARATOR . '*.php');
151
+        $paths = glob(realpath($this->path).DIRECTORY_SEPARATOR.'*.php');
152 152
 
153 153
         foreach ($paths as $path) {
154 154
             list($version, $className) = $this->parseFilename($path);
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     private function createFilename($version, $className)
231 231
     {
232
-        return $this->path . DIRECTORY_SEPARATOR . $version . '_' . $className . '.php';
232
+        return $this->path.DIRECTORY_SEPARATOR.$version.'_'.$className.'.php';
233 233
     }
234 234
 
235 235
     /**
Please login to merge, or discard this patch.
src/Migration/Version/DbVersionRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     {
100 100
         $versions = $this->all();
101 101
 
102
-        return (string)end($versions);
102
+        return (string) end($versions);
103 103
     }
104 104
 
105 105
     /**
Please login to merge, or discard this patch.
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/Test/TestPack.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @var array
32 32
      */
33 33
     protected $testPacks = [
34
-        'persistent'        => [],  // Entités créées non modifiables
34
+        'persistent'        => [], // Entités créées non modifiables
35 35
         'non-persistent'    => []   // Entités créées et détruites aprés un test
36 36
     ];
37 37
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
         // On ajoute la classe de l'entité uniquement si elle n'est pas déjà dans le tableau et si le test pack n'a pas démarré de savepoint
162 162
         foreach ($entityClasses as $entityClassName) {
163
-            if (! in_array($entityClassName, $this->entityClasses)) {
163
+            if (!in_array($entityClassName, $this->entityClasses)) {
164 164
                 if ($this->initialized) {
165 165
                     $this->create([$entityClassName]);
166 166
                 } else {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public function onInit(callable $callback)
221 221
     {
222
-        if (! $this->initialized) {
222
+        if (!$this->initialized) {
223 223
             $this->once('testpack.initialized', $callback);
224 224
         }
225 225
 
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.