@@ -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 | /** |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @return Schema |
|
41 | + * @return \ProxyManager\Proxy\GhostObjectInterface |
|
42 | 42 | */ |
43 | 43 | public function createFromSchema() |
44 | 44 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | return $this->proxyFactory->createProxy( |
48 | 48 | Schema::class, |
49 | - function (& $wrappedObject, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) { |
|
49 | + function(& $wrappedObject, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) { |
|
50 | 50 | $initializer = null; |
51 | 51 | $wrappedObject = $originalSchemaManipulator->createFromSchema(); |
52 | 52 | |
@@ -63,10 +63,10 @@ discard block |
||
63 | 63 | { |
64 | 64 | $originalSchemaManipulator = $this->originalSchemaManipulator; |
65 | 65 | |
66 | - if ($fromSchema instanceof LazyLoadingInterface && ! $fromSchema->isProxyInitialized()) { |
|
66 | + if ($fromSchema instanceof LazyLoadingInterface && !$fromSchema->isProxyInitialized()) { |
|
67 | 67 | return $this->proxyFactory->createProxy( |
68 | 68 | Schema::class, |
69 | - function (& $wrappedObject, $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) { |
|
69 | + function(& $wrappedObject, $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) { |
|
70 | 70 | $initializer = null; |
71 | 71 | $wrappedObject = $originalSchemaManipulator->createToSchema($fromSchema); |
72 | 72 | |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | * |
85 | 85 | * @return array |
86 | 86 | */ |
87 | - public function getSqlDiffToMigrate(Schema $fromSchema,Schema $toSchema) |
|
87 | + public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema) |
|
88 | 88 | { |
89 | 89 | if ( |
90 | 90 | $toSchema instanceof LazyLoadingInterface |
91 | - && ! $toSchema->isProxyInitialized() |
|
91 | + && !$toSchema->isProxyInitialized() |
|
92 | 92 | ) { |
93 | 93 | return []; |
94 | 94 | } |
@@ -57,7 +57,7 @@ |
||
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 | } |