@@ -20,7 +20,6 @@ |
||
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 | /** |
@@ -44,7 +44,7 @@ discard block |
||
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,7 +59,7 @@ discard block |
||
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->createFromSchema(); |
64 | 64 | } |
65 | 65 | |
@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | if ( |
78 | 78 | $fromSchema instanceof LazyLoadingInterface |
79 | 79 | && $toSchema instanceof LazyLoadingInterface |
80 | - && ! $fromSchema->isProxyInitialized() |
|
81 | - && ! $toSchema->isProxyInitialized() |
|
80 | + && !$fromSchema->isProxyInitialized() |
|
81 | + && !$toSchema->isProxyInitialized() |
|
82 | 82 | ) { |
83 | 83 | return []; |
84 | 84 | } |