Completed
Push — master ( 5b1e94...2b87f9 )
by Gaetano
09:14
created
Command/GenerateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         }
81 81
 
82 82
         $activeBundles = array();
83
-        foreach($this->getApplication()->getKernel()->getBundles() as $bundle)
83
+        foreach ($this->getApplication()->getKernel()->getBundles() as $bundle)
84 84
         {
85 85
             $activeBundles[] = $bundle->getName();
86 86
         }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                     $className = 'Migration';
156 156
                 }
157 157
                 // Make sure that php class names are unique, not only migration definition file names
158
-                $existingMigrations = count(glob($migrationDirectory.'/*_' . $className .'*.php'));
158
+                $existingMigrations = count(glob($migrationDirectory . '/*_' . $className . '*.php'));
159 159
                 if ($existingMigrations) {
160 160
                     $className = $className . sprintf('%03d', $existingMigrations + 1);
161 161
                 }
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         if ($migrationType == 'role') {
202 202
             $code = $this->generateRoleTemplate($parameters['role']);
203 203
         } else {
204
-            $code = $this->getContainer()->get('twig')->render($this->thisBundle . ':MigrationTemplate:'.$template, $parameters);
204
+            $code = $this->getContainer()->get('twig')->render($this->thisBundle . ':MigrationTemplate:' . $template, $parameters);
205 205
         }
206 206
 
207 207
         file_put_contents($path, $code);
Please login to merge, or discard this patch.