Completed
Pull Request — master (#407)
by Mike
03:00
created
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 Doctrine\ORM\Proxy\ProxyFactory;
24 23
 use ProxyManager\Factory\LazyLoadingGhostFactory;
25 24
 
26 25
 /**
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/LazySchemaManipulator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-     * @return Schema
41
+     * @return \ProxyManager\Proxy\GhostObjectInterface
42 42
      */
43 43
     public function createFromSchema()
44 44
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         return $this->proxyFactory->createProxy(
46 46
             Schema::class,
47
-            function (& $wrappedObject, $method, array $parameters, & $initializer) {
47
+            function(& $wrappedObject, $method, array $parameters, & $initializer) {
48 48
                 $initializer   = null;
49 49
                 $wrappedObject = $this->originalSchemaManipulator->createFromSchema();
50 50
 
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function createToSchema(Schema $fromSchema)
61 61
     {
62
-        if ($fromSchema instanceof LazyLoadingInterface && ! $fromSchema->isProxyInitialized()) {
62
+        if ($fromSchema instanceof LazyLoadingInterface && !$fromSchema->isProxyInitialized()) {
63 63
             return $this->proxyFactory->createProxy(
64 64
                 Schema::class,
65
-                function (& $wrappedObject, $method, array $parameters, & $initializer) use ($fromSchema) {
65
+                function(& $wrappedObject, $method, array $parameters, & $initializer) use ($fromSchema) {
66 66
                     $initializer   = null;
67 67
                     $wrappedObject = $this->originalSchemaManipulator->createToSchema($fromSchema);
68 68
 
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @return array
82 82
      */
83
-    public function getSqlDiffToMigrate(Schema $fromSchema,Schema $toSchema)
83
+    public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema)
84 84
     {
85 85
         if (
86 86
             $toSchema instanceof LazyLoadingInterface
87
-            && ! $toSchema->isProxyInitialized()
87
+            && !$toSchema->isProxyInitialized()
88 88
         ) {
89 89
             return [];
90 90
         }
Please login to merge, or discard this patch.
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.