@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | if (!empty($bundleMigrationDirectories)) { |
| 187 | 187 | uksort( |
| 188 | 188 | $bundleMigrationDirectories, |
| 189 | - function ($a, $b) { |
|
| 189 | + function($a, $b) { |
|
| 190 | 190 | return version_compare($a, $b); |
| 191 | 191 | } |
| 192 | 192 | ); |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | */ |
| 206 | 206 | protected function getBundleMigrationPath($bundlePath) |
| 207 | 207 | { |
| 208 | - return realpath(str_replace('/', DIRECTORY_SEPARATOR, $bundlePath . '/' . $this->migrationPath)); |
|
| 208 | + return realpath(str_replace('/', DIRECTORY_SEPARATOR, $bundlePath.'/'.$this->migrationPath)); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | if (count($versionedMigrations) > 1) { |
| 357 | 357 | usort( |
| 358 | 358 | $groupedMigrations[$bundleName][$version], |
| 359 | - function ($a, $b) { |
|
| 359 | + function($a, $b) { |
|
| 360 | 360 | $aOrder = 0; |
| 361 | 361 | if ($a instanceof OrderedMigrationInterface) { |
| 362 | 362 | $aOrder = $a->getOrder(); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | if (!empty($excludeBundles) && in_array($bundle->getName(), $excludeBundles)) { |
| 93 | 93 | continue; |
| 94 | 94 | } |
| 95 | - $path = $bundle->getPath() . $fixtureRelativePath; |
|
| 95 | + $path = $bundle->getPath().$fixtureRelativePath; |
|
| 96 | 96 | if (is_dir($path)) { |
| 97 | 97 | $loader->loadFromDirectory($path); |
| 98 | 98 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | $executor = $this->getContainer()->get('rdv_migration.data_fixtures.executor'); |
| 141 | 141 | $executor->setLogger( |
| 142 | - function ($message) use ($output) { |
|
| 142 | + function($message) use ($output) { |
|
| 143 | 143 | $output->writeln(sprintf(' <comment>></comment> <info>%s</info>', $message)); |
| 144 | 144 | } |
| 145 | 145 | ); |
@@ -172,6 +172,6 @@ discard block |
||
| 172 | 172 | throw new \InvalidArgumentException('Unknown fixture type'); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - return str_replace('/', DIRECTORY_SEPARATOR, '/' . $path); |
|
| 175 | + return str_replace('/', DIRECTORY_SEPARATOR, '/'.$path); |
|
| 176 | 176 | } |
| 177 | 177 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function getCacheDir() |
| 24 | 24 | { |
| 25 | - $this->cacheDir = sys_get_temp_dir() . '/kernel' . mt_rand(); |
|
| 25 | + $this->cacheDir = sys_get_temp_dir().'/kernel'.mt_rand(); |
|
| 26 | 26 | mkdir($this->cacheDir, 0755, true); |
| 27 | 27 | return $this->cacheDir; |
| 28 | 28 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | protected function getContainerClass() |
| 34 | 34 | { |
| 35 | - return parent::getContainerClass() . mt_rand(); |
|
| 35 | + return parent::getContainerClass().mt_rand(); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 79 | 79 | { |
| 80 | - $loader->load(__DIR__ . '/config.yml'); |
|
| 80 | + $loader->load(__DIR__.'/config.yml'); |
|
| 81 | 81 | if (is_callable($this->configCallback)) { |
| 82 | 82 | $loader->load($this->configCallback); |
| 83 | 83 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | public function __destruct() |
| 87 | 87 | { |
| 88 | - array_map('unlink', glob($this->cacheDir . '/*')); |
|
| 88 | + array_map('unlink', glob($this->cacheDir.'/*')); |
|
| 89 | 89 | rmdir($this->cacheDir); |
| 90 | 90 | } |
| 91 | 91 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | protected function tearDown() |
| 13 | 13 | { |
| 14 | - array_map('unlink', glob(__DIR__ . '/../Fixture/cache/test/*.[php|xml]*')); |
|
| 14 | + array_map('unlink', glob(__DIR__.'/../Fixture/cache/test/*.[php|xml]*')); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function testMigrationsLoadedFromDefaultPath() |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | new TestPackageTest1Bundle(), |
| 44 | 44 | new TestPackageTest2Bundle(), |
| 45 | 45 | )); |
| 46 | - $kernel->setConfigCallback(function ($container) { |
|
| 46 | + $kernel->setConfigCallback(function($container) { |
|
| 47 | 47 | $container->setParameter('rdv_migration.migration_path', 'NonExistingPath'); |
| 48 | 48 | }); |
| 49 | 49 | $kernel->boot(); |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function load(array $configs, ContainerBuilder $container) |
| 13 | 13 | { |
| 14 | - $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 14 | + $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 15 | 15 | $loader->load('services.yml'); |
| 16 | 16 | |
| 17 | 17 | $configuration = new Configuration(); |
| 18 | 18 | $config = $this->processConfiguration($configuration, $configs); |
| 19 | 19 | |
| 20 | 20 | foreach ($config as $key => $value) { |
| 21 | - $param = 'rdv_migration.' . $key; |
|
| 21 | + $param = 'rdv_migration.'.$key; |
|
| 22 | 22 | if (!$container->hasParameter($param)) { |
| 23 | 23 | $container->setParameter($param, $value); |
| 24 | 24 | } |