Completed
Pull Request — master (#407)
by Mike
04:44
created
lib/Doctrine/DBAL/Migrations/Provider/SchemaDiffProviderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,5 +52,5 @@
 block discarded – undo
52 52
      *
53 53
      * @return array
54 54
      */
55
-    public function getSqlDiffToMigrate(Schema $fromSchema,Schema $toSchema);
55
+    public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema);
56 56
 }
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/Version.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     {
205 205
         $queries = $this->execute($direction, true);
206 206
 
207
-        if ( ! empty($this->params)) {
207
+        if (!empty($this->params)) {
208 208
             throw MigrationException::migrationNotConvertibleToSql($this->class);
209 209
         }
210 210
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
             $this->state = self::STATE_POST;
278 278
             $this->migration->{'post' . ucfirst($direction)}($toSchema);
279 279
 
280
-            if (! $dryRun) {
280
+            if (!$dryRun) {
281 281
                 if ($direction === self::DIRECTION_UP) {
282 282
                     $this->markMigrated();
283 283
                 } else {
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
                 }
317 317
             }
318 318
 
319
-            $this->outputWriter->write(sprintf("\n  <info>SS</info> skipped (Reason: %s)",  $e->getMessage()));
319
+            $this->outputWriter->write(sprintf("\n  <info>SS</info> skipped (Reason: %s)", $e->getMessage()));
320 320
 
321 321
             $this->state = self::STATE_NONE;
322 322
 
@@ -379,12 +379,12 @@  discard block
 block discarded – undo
379 379
 
380 380
     private function executeRegisteredSql($dryRun = false, $timeAllQueries = false)
381 381
     {
382
-        if (! $dryRun) {
382
+        if (!$dryRun) {
383 383
             if (!empty($this->sql)) {
384 384
                 foreach ($this->sql as $key => $query) {
385 385
                     $queryStart = microtime(true);
386 386
 
387
-                    if ( ! isset($this->params[$key])) {
387
+                    if (!isset($this->params[$key])) {
388 388
                         $this->outputWriter->write('     <comment>-></comment> ' . $query);
389 389
                         $this->connection->executeQuery($query);
390 390
                     } else {
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/Provider/LazySchemaDiffProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-     * @return Schema
42
+     * @return \ProxyManager\Proxy\VirtualProxyInterface
43 43
      */
44 44
     public function createFromSchema()
45 45
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         return $this->proxyFactory->createProxy(
49 49
             Schema::class,
50
-            function (& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) {
50
+            function(& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) {
51 51
                 $initializer   = null;
52 52
                 $wrappedObject = $originalSchemaManipulator->createFromSchema();
53 53
 
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $originalSchemaManipulator = $this->originalSchemaManipulator;
66 66
 
67
-        if ($fromSchema instanceof LazyLoadingInterface && ! $fromSchema->isProxyInitialized()) {
67
+        if ($fromSchema instanceof LazyLoadingInterface && !$fromSchema->isProxyInitialized()) {
68 68
             return $this->proxyFactory->createProxy(
69 69
                 Schema::class,
70
-                function (& $wrappedObject, $proxy,  $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) {
70
+                function(& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) {
71 71
                     $initializer   = null;
72 72
                     $wrappedObject = $originalSchemaManipulator->createToSchema($fromSchema);
73 73
 
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @return array
87 87
      */
88
-    public function getSqlDiffToMigrate(Schema $fromSchema,Schema $toSchema)
88
+    public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema)
89 89
     {
90 90
         if (
91 91
             $toSchema instanceof LazyLoadingInterface
92
-            && ! $toSchema->isProxyInitialized()
92
+            && !$toSchema->isProxyInitialized()
93 93
         ) {
94 94
             return [];
95 95
         }
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/Provider/SchemaDiffProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @param Schema $toSchema
58 58
      * @return array
59 59
      */
60
-    public function getSqlDiffToMigrate(Schema $fromSchema,Schema $toSchema)
60
+    public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema)
61 61
     {
62 62
         return $fromSchema->getMigrateToSql($toSchema, $this->platform);
63 63
     }
Please login to merge, or discard this patch.