Completed
Pull Request — master (#423)
by Mike
03:08
created
lib/Doctrine/DBAL/Migrations/Provider/LazySchemaDiffProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
     /** @var  Configuration */
37 37
     private $proxyConfig;
38 38
 
39
-    public function __construct(LazyLoadingValueHolderFactory $proxyFactory=null, SchemaDiffProviderInterface $originalSchemaManipulator)
39
+    public function __construct(LazyLoadingValueHolderFactory $proxyFactory = null, SchemaDiffProviderInterface $originalSchemaManipulator)
40 40
     {
41
-        if ($proxyFactory === null ) {
41
+        if ($proxyFactory === null) {
42 42
             $this->proxyConfig = new Configuration();
43 43
             $proxyFolder = __DIR__ . DIRECTORY_SEPARATOR . 'SchemaProxy';
44 44
             if (!is_dir($proxyFolder)) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         return $this->proxyFactory->createProxy(
65 65
             Schema::class,
66
-            function (& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) {
66
+            function(& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) {
67 67
                 $initializer   = null;
68 68
                 $wrappedObject = $originalSchemaManipulator->createFromSchema();
69 69
 
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $originalSchemaManipulator = $this->originalSchemaManipulator;
82 82
 
83
-        if ($fromSchema instanceof LazyLoadingInterface && ! $fromSchema->isProxyInitialized()) {
83
+        if ($fromSchema instanceof LazyLoadingInterface && !$fromSchema->isProxyInitialized()) {
84 84
             return $this->proxyFactory->createProxy(
85 85
                 Schema::class,
86
-                function (& $wrappedObject, $proxy,  $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) {
86
+                function(& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) {
87 87
                     $initializer   = null;
88 88
                     $wrappedObject = $originalSchemaManipulator->createToSchema($fromSchema);
89 89
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         if (
107 107
             $toSchema instanceof LazyLoadingInterface
108
-            && ! $toSchema->isProxyInitialized()
108
+            && !$toSchema->isProxyInitialized()
109 109
         ) {
110 110
             return [];
111 111
         }
Please login to merge, or discard this patch.