@@ -66,7 +66,7 @@ |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @param $type string |
|
| 69 | + * @param string $type string |
|
| 70 | 70 | * @return ExecutorInterface |
| 71 | 71 | * @throws \InvalidArgumentException If executor doesn't exist |
| 72 | 72 | */ |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $activeBundles = array(); |
| 92 | - foreach($this->getApplication()->getKernel()->getBundles() as $bundle) |
|
| 92 | + foreach ($this->getApplication()->getKernel()->getBundles() as $bundle) |
|
| 93 | 93 | { |
| 94 | 94 | $activeBundles[] = $bundle->getName(); |
| 95 | 95 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $className = 'Migration'; |
| 164 | 164 | } |
| 165 | 165 | // Make sure that php class names are unique, not only migration definition file names |
| 166 | - $existingMigrations = count(glob($migrationDirectory.'/*_' . $className .'*.php')); |
|
| 166 | + $existingMigrations = count(glob($migrationDirectory . '/*_' . $className . '*.php')); |
|
| 167 | 167 | if ($existingMigrations) { |
| 168 | 168 | $className = $className . sprintf('%03d', $existingMigrations + 1); |
| 169 | 169 | } |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | throw new \Exception("The combination of migration type '$migrationType' is not supported with format '$fileType'"); |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | - $code = $this->getContainer()->get('twig')->render($this->thisBundle . ':MigrationTemplate:'.$template, $parameters); |
|
| 214 | + $code = $this->getContainer()->get('twig')->render($this->thisBundle . ':MigrationTemplate:' . $template, $parameters); |
|
| 215 | 215 | break; |
| 216 | 216 | default: |
| 217 | 217 | // Generate migration file by executor |