@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | $connection = $dbHelper->getConnection(); |
| 46 | 46 | |
| 47 | - if (! $connection instanceof PoolingShardConnection) { |
|
| 47 | + if (!$connection instanceof PoolingShardConnection) { |
|
| 48 | 48 | if (count($managerNames) === 0) { |
| 49 | 49 | throw new LogicException(sprintf( |
| 50 | 50 | "Connection '%s' must implement shards configuration.", |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | ->scalarNode('organize_migrations')->defaultValue(false) |
| 42 | 42 | ->info('Organize migrations mode. Possible values are: "BY_YEAR", "BY_YEAR_AND_MONTH", false') |
| 43 | 43 | ->validate() |
| 44 | - ->ifTrue(function ($v) use ($organizeMigrationModes) { |
|
| 44 | + ->ifTrue(function($v) use ($organizeMigrationModes) { |
|
| 45 | 45 | if ($v === false) { |
| 46 | 46 | return false; |
| 47 | 47 | } |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | ->end() |
| 57 | 57 | ->validate() |
| 58 | 58 | ->ifString() |
| 59 | - ->then(function ($v) { |
|
| 60 | - return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_' . strtoupper($v)); |
|
| 59 | + ->then(function($v) { |
|
| 60 | + return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_'.strtoupper($v)); |
|
| 61 | 61 | }) |
| 62 | 62 | ->end() |
| 63 | 63 | ->end() |
@@ -26,10 +26,10 @@ discard block |
||
| 26 | 26 | $config = $this->processConfiguration($configuration, $configs); |
| 27 | 27 | |
| 28 | 28 | foreach ($config as $key => $value) { |
| 29 | - $container->setParameter($this->getAlias() . '.' . $key, $value); |
|
| 29 | + $container->setParameter($this->getAlias().'.'.$key, $value); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - $locator = new FileLocator(__DIR__ . '/../Resources/config/'); |
|
| 32 | + $locator = new FileLocator(__DIR__.'/../Resources/config/'); |
|
| 33 | 33 | $loader = new XmlFileLoader($container, $locator); |
| 34 | 34 | |
| 35 | 35 | $loader->load('services.xml'); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function getXsdValidationBasePath() : string |
| 44 | 44 | { |
| 45 | - return __DIR__ . '/../Resources/config/schema'; |
|
| 45 | + return __DIR__.'/../Resources/config/schema'; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function getNamespace() : string |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | 'kernel.bundles' => [], |
| 33 | 33 | 'kernel.cache_dir' => sys_get_temp_dir(), |
| 34 | 34 | 'kernel.environment' => 'test', |
| 35 | - 'kernel.root_dir' => __DIR__ . '/../../', // src dir |
|
| 35 | + 'kernel.root_dir' => __DIR__.'/../../', // src dir |
|
| 36 | 36 | ])); |
| 37 | 37 | } |
| 38 | 38 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | if (empty($dir)) { |
| 33 | 33 | $dir = $container->getParameter('doctrine_migrations.dir_name'); |
| 34 | 34 | |
| 35 | - if (! is_dir($dir) && ! @mkdir($dir, 0777, true) && ! is_dir($dir)) { |
|
| 35 | + if (!is_dir($dir) && !@mkdir($dir, 0777, true) && !is_dir($dir)) { |
|
| 36 | 36 | $error = error_get_last(); |
| 37 | 37 | |
| 38 | 38 | throw new ErrorException(sprintf( |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | $pathPlaceholderArray = ['kernel.root_dir', 'kernel.cache_dir', 'kernel.logs_dir']; |
| 49 | 49 | |
| 50 | 50 | foreach ($pathPlaceholderArray as $pathPlaceholder) { |
| 51 | - if (! $container->hasParameter($pathPlaceholder) || ! preg_match('/\%' . $pathPlaceholder . '\%/', $dir)) { |
|
| 51 | + if (!$container->hasParameter($pathPlaceholder) || !preg_match('/\%'.$pathPlaceholder.'\%/', $dir)) { |
|
| 52 | 52 | continue; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - $dir = str_replace('%' . $pathPlaceholder . '%', $container->getParameter($pathPlaceholder), $dir); |
|
| 55 | + $dir = str_replace('%'.$pathPlaceholder.'%', $container->getParameter($pathPlaceholder), $dir); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - if (! is_dir($dir) && ! @mkdir($dir, 0777, true) && ! is_dir($dir)) { |
|
| 58 | + if (!is_dir($dir) && !@mkdir($dir, 0777, true) && !is_dir($dir)) { |
|
| 59 | 59 | $error = error_get_last(); |
| 60 | 60 | |
| 61 | 61 | throw new ErrorException(sprintf( |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | // For backward compatibility, need use a table from parameters for overwrite the default configuration |
| 80 | - if (! ($configuration instanceof AbstractFileConfiguration) || empty($configuration->getMigrationsTableName())) { |
|
| 80 | + if (!($configuration instanceof AbstractFileConfiguration) || empty($configuration->getMigrationsTableName())) { |
|
| 81 | 81 | $configuration->setMigrationsTableName($container->getParameter('doctrine_migrations.table_name')); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $configuration->setAllOrNothing($container->getParameter('doctrine_migrations.all_or_nothing')); |
| 97 | 97 | |
| 98 | 98 | // Migrations is not register from configuration loader |
| 99 | - if (! ($configuration instanceof AbstractFileConfiguration)) { |
|
| 99 | + if (!($configuration instanceof AbstractFileConfiguration)) { |
|
| 100 | 100 | $migrationsDirectory = $configuration->getMigrationsDirectory(); |
| 101 | 101 | |
| 102 | 102 | if ($migrationsDirectory !== null) { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | { |
| 139 | 139 | foreach ($versions as $version) { |
| 140 | 140 | $migration = $version->getMigration(); |
| 141 | - if (! ($migration instanceof ContainerAwareInterface)) { |
|
| 141 | + if (!($migration instanceof ContainerAwareInterface)) { |
|
| 142 | 142 | continue; |
| 143 | 143 | } |
| 144 | 144 | |