Completed
Pull Request — master (#407)
by Mike
11:52
created
lib/Doctrine/DBAL/Migrations/SchemaManipulator.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.
lib/Doctrine/DBAL/Migrations/LazySchemaManipulator.php 3 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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 namespace Doctrine\DBAL\Migrations;
21 21
 
22 22
 use Doctrine\DBAL\Schema\Schema;
23
-use ProxyManager\Factory\LazyLoadingGhostFactory;
24 23
 use ProxyManager\Factory\LazyLoadingValueHolderFactory;
25 24
 use ProxyManager\Proxy\LazyLoadingInterface;
26 25
 
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/Version.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 namespace Doctrine\DBAL\Migrations;
21 21
 
22 22
 use Doctrine\DBAL\Migrations\Configuration\Configuration;
23
-use ProxyManager\Factory\LazyLoadingGhostFactory;
24 23
 use ProxyManager\Factory\LazyLoadingValueHolderFactory;
25 24
 
26 25
 /**
Please login to merge, or discard this patch.