Completed
Pull Request — master (#265)
by Chris
05:34
created
Command/Helper/DoctrineCommandHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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.",
Please login to merge, or discard this patch.
Tests/DependencyInjection/DoctrineMigrationsExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Command/DoctrineCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 ->scalarNode('organize_migrations')->defaultValue(false)
47 47
                     ->info('Organize migrations mode. Possible values are: "BY_YEAR", "BY_YEAR_AND_MONTH", false')
48 48
                     ->validate()
49
-                        ->ifTrue(static function ($v) use ($organizeMigrationModes) {
49
+                        ->ifTrue(static function($v) use ($organizeMigrationModes) {
50 50
                             if ($v === false) {
51 51
                                 return false;
52 52
                             }
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
                     ->end()
62 62
                     ->validate()
63 63
                         ->ifString()
64
-                            ->then(static function ($v) {
65
-                                return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_' . strtoupper($v));
64
+                            ->then(static function($v) {
65
+                                return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_'.strtoupper($v));
66 66
                             })
67 67
                     ->end()
68 68
                 ->end()
Please login to merge, or discard this patch.
DependencyInjection/DoctrineMigrationsExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
         $config = $this->processConfiguration($configuration, $configs);
28 28
 
29 29
         foreach ($config as $key => $value) {
30
-            $container->setParameter($this->getAlias() . '.' . $key, $value);
30
+            $container->setParameter($this->getAlias().'.'.$key, $value);
31 31
         }
32 32
 
33
-        $locator = new FileLocator(__DIR__ . '/../Resources/config/');
33
+        $locator = new FileLocator(__DIR__.'/../Resources/config/');
34 34
         $loader  = new XmlFileLoader($container, $locator);
35 35
 
36 36
         $loader->load('services.xml');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function getXsdValidationBasePath() : string
47 47
     {
48
-        return __DIR__ . '/../Resources/config/schema';
48
+        return __DIR__.'/../Resources/config/schema';
49 49
     }
50 50
 
51 51
     public function getNamespace() : string
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     private function configureSchemaProvider(array $config, ContainerBuilder $container) : void
60 60
     {
61
-        if (! $config['schema_provider']) {
61
+        if (!$config['schema_provider']) {
62 62
             return;
63 63
         }
64 64
 
Please login to merge, or discard this patch.