@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | //TODO quand doit on unset l'index '0' ? |
59 | 59 | |
60 | - foreach ((array)$parts as $part) { |
|
60 | + foreach ((array) $parts as $part) { |
|
61 | 61 | unset($this->bindings[$part]); |
62 | 62 | unset($this->compiledParts[$part]); |
63 | 63 | } |
@@ -398,7 +398,7 @@ |
||
398 | 398 | } |
399 | 399 | |
400 | 400 | // If we have polymophism, add to alias |
401 | - $relation->join($this->query, $alias . (isset($relationName[1]) ? '#' . $relationName[1] : '')); |
|
401 | + $relation->join($this->query, $alias.(isset($relationName[1]) ? '#'.$relationName[1] : '')); |
|
402 | 402 | $relation->setLocalAlias(null); |
403 | 403 | } |
404 | 404 |
@@ -102,7 +102,7 @@ |
||
102 | 102 | $io->newLine(); |
103 | 103 | } |
104 | 104 | |
105 | - $io->info('Found ' . $nbWarning . ' upgrade(s)'); |
|
105 | + $io->info('Found '.$nbWarning.' upgrade(s)'); |
|
106 | 106 | |
107 | 107 | return 0; |
108 | 108 | } |
@@ -173,16 +173,16 @@ |
||
173 | 173 | |
174 | 174 | if ($io->option('backup') && $filesystem->exists($fileName)) { |
175 | 175 | $filesystem->copy($fileName, $fileName.'.bak'); |
176 | - $io->comment('backup file "' . $fileName.'.bak' . '"'); |
|
176 | + $io->comment('backup file "'.$fileName.'.bak'.'"'); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | $filesystem->dumpFile($fileName, $generator->generate($mapper, $fileName)); |
180 | 180 | |
181 | - $io->info('File "' . $fileName . '" was created'); |
|
181 | + $io->info('File "'.$fileName.'" was created'); |
|
182 | 182 | return; |
183 | 183 | |
184 | 184 | case 'Show': |
185 | - $io->line('File: ' . $fileName); |
|
185 | + $io->line('File: '.$fileName); |
|
186 | 186 | $io->line($generator->generate($mapper, $fileName)); |
187 | 187 | break; |
188 | 188 |
@@ -36,8 +36,8 @@ |
||
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; |
@@ -50,7 +50,7 @@ |
||
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 |
@@ -54,7 +54,7 @@ |
||
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 |
@@ -42,7 +42,7 @@ |
||
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 | } |
@@ -94,7 +94,7 @@ |
||
94 | 94 | ); |
95 | 95 | } |
96 | 96 | |
97 | - return ' : [' . implode(', ', $buffer) . ']'; |
|
97 | + return ' : ['.implode(', ', $buffer).']'; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |