Passed
Push — 3.x ( a4269d...ac5d09 )
by Aleksei
20:34 queued 06:23
created
src/Migrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             try {
156 156
                 $capsule = $capsule ?? new Capsule($this->dbal->database($migration->getDatabase()));
157 157
                 $capsule->getDatabase($migration->getDatabase())->transaction(
158
-                    static function () use ($migration, $capsule): void {
158
+                    static function() use ($migration, $capsule): void {
159 159
                         $migration->withCapsule($capsule)->up();
160 160
                     }
161 161
                 );
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
             $capsule = $capsule ?? new Capsule($this->dbal->database($migration->getDatabase()));
213 213
             $capsule->getDatabase()->transaction(
214
-                static function () use ($migration, $capsule): void {
214
+                static function() use ($migration, $capsule): void {
215 215
                     $migration->withCapsule($capsule)->down();
216 216
                 }
217 217
             );
Please login to merge, or discard this patch.
src/Atomizer/Renderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@
 block discarded – undo
403 403
         }
404 404
 
405 405
         $default = $options['default'];
406
-        if ($column::DATETIME_NOW === ($default instanceof \Stringable ? (string)$default : $default)) {
406
+        if ($column::DATETIME_NOW === ($default instanceof \Stringable ? (string) $default : $default)) {
407 407
             $options['default'] = AbstractColumn::DATETIME_NOW;
408 408
         }
409 409
 
Please login to merge, or discard this patch.
src/FileRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $migrations = [];
54 54
 
55 55
         foreach ($this->getFilesIterator() as $f) {
56
-            if (! \class_exists($f['class'], false)) {
56
+            if (!\class_exists($f['class'], false)) {
57 57
                 //Attempting to load migration class (we can not relay on autoloading here)
58 58
                 require_once($f['filename']);
59 59
             }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function registerMigration(string $name, string $class, string $body = null): string
75 75
     {
76
-        if (empty($body) && ! \class_exists($class)) {
76
+        if (empty($body) && !\class_exists($class)) {
77 77
             throw new RepositoryException(
78 78
                 "Unable to register migration '{$class}', representing class does not exists"
79 79
             );
Please login to merge, or discard this patch.