Passed
Push — master ( 1a0e8b...4e85a8 )
by Asmir
04:29 queued 11s
created
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
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $configuration->setCheckDatabasePlatform($container->getParameter('doctrine_migrations.check_database_platform'));
89 89
 
90 90
         // Migrations is not register from configuration loader
91
-        if (! ($configuration instanceof AbstractFileConfiguration)) {
91
+        if (!($configuration instanceof AbstractFileConfiguration)) {
92 92
             $migrationsDirectory = $configuration->getMigrationsDirectory();
93 93
 
94 94
             if ($migrationsDirectory !== null) {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     {
131 131
         foreach ($versions as $version) {
132 132
             $migration = $version->getMigration();
133
-            if (! ($migration instanceof ContainerAwareInterface)) {
133
+            if (!($migration instanceof ContainerAwareInterface)) {
134 134
                 continue;
135 135
             }
136 136
 
Please login to merge, or discard this patch.