@@ -2,10 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Czogori\DamiBundle\Command; |
| 4 | 4 | |
| 5 | -use Symfony\Component\Console\Input\InputArgument, |
|
| 6 | - Symfony\Component\Console\Input\InputInterface, |
|
| 7 | - Symfony\Component\Console\Output\OutputInterface; |
|
| 8 | - |
|
| 5 | +use Symfony\Component\Console\Input\InputArgument; |
|
| 6 | +use Symfony\Component\Console\Input\InputInterface; |
|
| 7 | +use Symfony\Component\Console\Output\OutputInterface; |
|
| 9 | 8 | use Dami\Cli\Command\MigrateCommand as DamiMigrateCommand; |
| 10 | 9 | |
| 11 | 10 | class MigrateCommand extends AbstractCommand |
@@ -2,10 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Czogori\DamiBundle\Command; |
| 4 | 4 | |
| 5 | -use Symfony\Component\Console\Input\InputArgument, |
|
| 6 | - Symfony\Component\Console\Input\InputInterface, |
|
| 7 | - Symfony\Component\Console\Output\OutputInterface; |
|
| 8 | - |
|
| 5 | +use Symfony\Component\Console\Input\InputArgument; |
|
| 6 | +use Symfony\Component\Console\Input\InputInterface; |
|
| 7 | +use Symfony\Component\Console\Output\OutputInterface; |
|
| 9 | 8 | use Dami\Cli\Command\RollbackCommand as DamiRollbackCommand; |
| 10 | 9 | |
| 11 | 10 | class RollbackCommand extends AbstractCommand |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
| 6 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 7 | -use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
|
| 8 | 7 | use Symfony\Component\Yaml\Yaml; |
| 9 | 8 | use Symfony\Component\Config\FileLocator; |
| 10 | 9 | class ConnectionPass implements CompilerPassInterface |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | $dir = __DIR__ . '/../../../../../app/config'; |
| 21 | 21 | $fileLocator = new FileLocator($dir); |
| 22 | - foreach(array('dev', 'prod', 'test') as $environment) { |
|
| 22 | + foreach (array('dev', 'prod', 'test') as $environment) { |
|
| 23 | 23 | $configFile = $fileLocator->locate('config_' . $environment . '.yml'); |
| 24 | 24 | $config = Yaml::parse($configFile); |
| 25 | 25 | if (isset($config['propel']['dbal'])) { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $output->writeln('<error>Directory of migrations does not exist.</error>'); |
| 39 | 39 | |
| 40 | 40 | $dialog = $this->getHelperSet()->get('dialog'); |
| 41 | - if(!$dialog->askConfirmation( |
|
| 41 | + if (!$dialog->askConfirmation( |
|
| 42 | 42 | $output, |
| 43 | 43 | sprintf('<question>Do you want to create %s directory? (Y/n)</question>', $bundleMigrationDirectory), |
| 44 | 44 | true)) { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $finder = new Finder(); |
| 43 | 43 | $finder->files('*.php')->in($bundleMigrationDirectory); |
| 44 | 44 | foreach ($finder as $file) { |
| 45 | - $this->fileSystem->copy($file->getRealpath(), $migrationDirectory . '/' . $file->getFilename(), true); |
|
| 45 | + $this->fileSystem->copy($file->getRealpath(), $migrationDirectory . '/' . $file->getFilename(), true); |
|
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | } |