Passed
Pull Request — master (#560)
by Mike
08:32 queued 01:20
created
lib/Doctrine/DBAL/Migrations/Tools/Console/Helper/ConfigurationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
          * instead of any other one.
61 61
          */
62 62
         if ($input->getOption('configuration')) {
63
-            $outputWriter->write("Loading configuration from command option: " . $input->getOption('configuration'));
63
+            $outputWriter->write("Loading configuration from command option: ".$input->getOption('configuration'));
64 64
 
65 65
             return $this->loadConfig($input->getOption('configuration'), $outputWriter);
66 66
         }
Please login to merge, or discard this patch.
DBAL/Migrations/Tools/Console/Helper/MigrationStatusInfosHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         }
76 76
 
77 77
         //Show normal version number
78
-        return $this->configuration->getDateTime($version) . ' (<comment>' . $version . '</comment>)';
78
+        return $this->configuration->getDateTime($version).' (<comment>'.$version.'</comment>)';
79 79
     }
80 80
 
81 81
     /** @var Version[] */
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/Finder/GlobFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $dir = $this->getRealPath($directory);
40 40
 
41
-        $files = glob(rtrim($dir, '/') . '/Version*.php');
41
+        $files = glob(rtrim($dir, '/').'/Version*.php');
42 42
 
43 43
         return $this->loadMigrations($files, $namespace);
44 44
     }
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/QueryWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\DBAL\Migrations;
23 23
 
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/SqlFileWriter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $string = $this->buildMigrationFile($queriesByVersion, $direction);
79 79
 
80 80
         if ($this->outputWriter) {
81
-            $this->outputWriter->write("\n" . sprintf('Writing migration file to "<info>%s</info>"', $path));
81
+            $this->outputWriter->write("\n".sprintf('Writing migration file to "<info>%s</info>"', $path));
82 82
         }
83 83
 
84 84
         return file_put_contents($path, $string);
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
         $string = sprintf("-- Doctrine Migration File Generated on %s\n", date('Y-m-d H:i:s'));
90 90
 
91 91
         foreach ($queriesByVersion as $version => $queries) {
92
-            $string .= "\n-- Version " . $version . "\n";
92
+            $string .= "\n-- Version ".$version."\n";
93 93
 
94 94
             foreach ($queries as $query) {
95
-                $string .= $query . ";\n";
95
+                $string .= $query.";\n";
96 96
             }
97 97
 
98 98
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         if (is_dir($path)) {
121 121
             $path = realpath($path);
122
-            $path = $path . '/doctrine_migration_' . date('YmdHis') . '.sql';
122
+            $path = $path.'/doctrine_migration_'.date('YmdHis').'.sql';
123 123
         }
124 124
 
125 125
         return $path;
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/FileQueryWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\DBAL\Migrations;
23 23
 
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/MigrationsVersion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
      */
43 43
     private static function isACustomPharBuild($gitversion)
44 44
     {
45
-        return $gitversion !== '@' . 'git-version@';
45
+        return $gitversion !== '@'.'git-version@';
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/Provider/OrmSchemaProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
     public function __construct($em)
39 39
     {
40
-        if ( ! $this->isEntityManager($em)) {
40
+        if (!$this->isEntityManager($em)) {
41 41
             throw new \InvalidArgumentException(sprintf(
42 42
                 '$em is not a valid Doctrine ORM Entity Manager, got "%s"',
43 43
                 is_object($em) ? get_class($em) : gettype($em)
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/Provider/LazySchemaDiffProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         return $this->proxyFactory->createProxy(
72 72
             Schema::class,
73
-            function (& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) {
73
+            function(& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator) {
74 74
                 $initializer   = null;
75 75
                 $wrappedObject = $originalSchemaManipulator->createFromSchema();
76 76
 
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $originalSchemaManipulator = $this->originalSchemaManipulator;
89 89
 
90
-        if ($fromSchema instanceof LazyLoadingInterface && ! $fromSchema->isProxyInitialized()) {
90
+        if ($fromSchema instanceof LazyLoadingInterface && !$fromSchema->isProxyInitialized()) {
91 91
             return $this->proxyFactory->createProxy(
92 92
                 Schema::class,
93
-                function (& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) {
93
+                function(& $wrappedObject, $proxy, $method, array $parameters, & $initializer) use ($originalSchemaManipulator, $fromSchema) {
94 94
                     $initializer   = null;
95 95
                     $wrappedObject = $originalSchemaManipulator->createToSchema($fromSchema);
96 96
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema)
112 112
     {
113 113
         if ($toSchema instanceof LazyLoadingInterface
114
-            && ! $toSchema->isProxyInitialized()) {
114
+            && !$toSchema->isProxyInitialized()) {
115 115
             return [];
116 116
         }
117 117
 
Please login to merge, or discard this patch.