Passed
Push — master ( 6c900b...b2b78e )
by Vincent
09:01 queued 13s
created
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/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/Relations/Info/NullRelationInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public static function instance()
38 38
     {
39
-        if (self::$instance === null)  {
39
+        if (self::$instance === null) {
40 40
             return self::$instance = new self;
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/IdGenerators/TableGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         switch ($platform->name()) {
47 47
             case 'mysql':
48 48
                 $connection->executeUpdate('UPDATE '.$metadata->sequence['table']
49
-                    .' SET '. $metadata->sequence['column'].' = LAST_INSERT_ID('.$metadata->sequence['column'].'+1)');
49
+                    .' SET '.$metadata->sequence['column'].' = LAST_INSERT_ID('.$metadata->sequence['column'].'+1)');
50 50
                 return $connection->lastInsertId();
51 51
             
52 52
             case 'sqlite':
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.