@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @return Schema |
|
| 42 | + * @return \ProxyManager\Proxy\VirtualProxyInterface |
|
| 43 | 43 | */ |
| 44 | 44 | public function createFromSchema() |
| 45 | 45 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -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 | } |
@@ -52,5 +52,5 @@ |
||
| 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 | } |