Completed
Pull Request — master (#414)
by Mike
03:47
created
lib/Doctrine/DBAL/Migrations/Provider/LazySchemaDiffProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         if (
91 91
             $toSchema instanceof LazyLoadingInterface
92
-            && ! $toSchema->isProxyInitialized()
92
+            && !$toSchema->isProxyInitialized()
93 93
         ) {
94 94
             return [];
95 95
         }
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/Version.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /** @var SchemaDiffProviderInterface */
103 103
     private $schemaProvider;
104 104
 
105
-    public function __construct(Configuration $configuration, $version, $class, SchemaDiffProviderInterface $schemaProvider=null)
105
+    public function __construct(Configuration $configuration, $version, $class, SchemaDiffProviderInterface $schemaProvider = null)
106 106
     {
107 107
         $this->configuration = $configuration;
108 108
         $this->outputWriter = $configuration->getOutputWriter();
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         if (!is_null($schemaProvider)) {
115 115
             $this->schemaProvider = $schemaProvider;
116 116
         }
117
-        if(is_null($schemaProvider)) {
117
+        if (is_null($schemaProvider)) {
118 118
             $schemaProvider = new SchemaDiffProvider($this->connection->getSchemaManager(),
119 119
                 $this->connection->getDatabasePlatform());
120 120
             $this->schemaProvider = new LazySchemaDiffProvider(new LazyLoadingValueHolderFactory(), $schemaProvider);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     {
209 209
         $queries = $this->execute($direction, true);
210 210
 
211
-        if ( ! empty($this->params)) {
211
+        if (!empty($this->params)) {
212 212
             throw MigrationException::migrationNotConvertibleToSql($this->class);
213 213
         }
214 214
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
             $this->state = self::STATE_POST;
284 284
             $this->migration->{'post' . ucfirst($direction)}($toSchema);
285 285
 
286
-            if (! $dryRun) {
286
+            if (!$dryRun) {
287 287
                 if ($direction === self::DIRECTION_UP) {
288 288
                     $this->markMigrated();
289 289
                 } else {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                 }
323 323
             }
324 324
 
325
-            $this->outputWriter->write(sprintf("\n  <info>SS</info> skipped (Reason: %s)",  $e->getMessage()));
325
+            $this->outputWriter->write(sprintf("\n  <info>SS</info> skipped (Reason: %s)", $e->getMessage()));
326 326
 
327 327
             $this->state = self::STATE_NONE;
328 328
 
@@ -385,12 +385,12 @@  discard block
 block discarded – undo
385 385
 
386 386
     private function executeRegisteredSql($dryRun = false, $timeAllQueries = false)
387 387
     {
388
-        if (! $dryRun) {
388
+        if (!$dryRun) {
389 389
             if (!empty($this->sql)) {
390 390
                 foreach ($this->sql as $key => $query) {
391 391
                     $queryStart = microtime(true);
392 392
 
393
-                    if ( ! isset($this->params[$key])) {
393
+                    if (!isset($this->params[$key])) {
394 394
                         $this->outputWriter->write('     <comment>-></comment> ' . $query);
395 395
                         $this->connection->executeQuery($query);
396 396
                     } else {
Please login to merge, or discard this patch.