@@ -18,9 +18,9 @@ |
||
| 18 | 18 | $items = explode('_', $filename); |
| 19 | 19 | $this->version = $items[0]; |
| 20 | 20 | |
| 21 | - $this->name = ltrim($filename, $this->version . '_'); |
|
| 21 | + $this->name = ltrim($filename, $this->version.'_'); |
|
| 22 | 22 | $this->name = basename($this->name, '.php'); |
| 23 | - $this->className = S::upperCamelize($this->name) . 'Migration'; |
|
| 23 | + $this->className = S::upperCamelize($this->name).'Migration'; |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function render($migrationName) |
| 31 | 31 | { |
| 32 | - $loader = new FilesystemLoader(__DIR__ . '/views/%name%'); |
|
| 32 | + $loader = new FilesystemLoader(__DIR__.'/views/%name%'); |
|
| 33 | 33 | |
| 34 | 34 | $view = new PhpEngine(new TemplateNameParser(), $loader); |
| 35 | 35 | |
@@ -49,6 +49,6 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | private function getTemplatePath() |
| 51 | 51 | { |
| 52 | - return __DIR__ . '/Template.php'; |
|
| 52 | + return __DIR__.'/Template.php'; |
|
| 53 | 53 | } |
| 54 | 54 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $this->actionObject = in_array($items[1], $this->validActionObjects) |
| 33 | 33 | ? $items[1] |
| 34 | 34 | : null; |
| 35 | - $this->model = str_replace($items[0] . '_' . $items[1] . '_', '', $migrationNameAsUnderscoreSrtring); |
|
| 35 | + $this->model = str_replace($items[0].'_'.$items[1].'_', '', $migrationNameAsUnderscoreSrtring); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | case 'addTextColumn': |
| 36 | 36 | case 'addTimeColumn': |
| 37 | 37 | $namespace = 'Rentgen\\Database\\Column\\'; |
| 38 | - $class = $namespace . ltrim($this->method, 'add'); |
|
| 38 | + $class = $namespace.ltrim($this->method, 'add'); |
|
| 39 | 39 | $options = isset($this->params[1]) ? $this->params[1] : array(); |
| 40 | 40 | |
| 41 | 41 | if ('addStringColumn' === $this->method && !isset($options['limit'])) { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | break; |
| 50 | 50 | default: |
| 51 | - throw new \Exception(sprintf("Unsupported method " . $this->method)); |
|
| 51 | + throw new \Exception(sprintf("Unsupported method ".$this->method)); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | return $column; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | public function sqlExecuted(TableEvent $event) |
| 19 | 19 | { |
| 20 | 20 | if ($this->verbosity->isVerbose()) { |
| 21 | - echo "\n" . $event->getSql(); |
|
| 21 | + echo "\n".$event->getSql(); |
|
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | try { |
| 39 | 39 | $fileName = $filenameBuilder->build(); |
| 40 | - $path = $migrationDirectory . '/' . $fileName; |
|
| 40 | + $path = $migrationDirectory.'/'.$fileName; |
|
| 41 | 41 | $fileSystem->dumpFile($path, $templateRenderer->render($migrationName)); |
| 42 | 42 | |
| 43 | 43 | $output->writeln('<info>Migration has been created.</info>'); |