Completed
Push — master ( 63cb48...b7ca1d )
by Julián
02:17
created
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
 
10 10
 session_start();
11 11
 
12
-require __DIR__ . '/../vendor/autoload.php';
12
+require __DIR__.'/../vendor/autoload.php';
Please login to merge, or discard this patch.
tests/ManagerBuilder/RelationalBuilderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function testManagerNoAnnotationFile()
76 76
     {
77
-        $this->builder->setOption('annotation_files', __DIR__ . '/fake_file.php');
77
+        $this->builder->setOption('annotation_files', __DIR__.'/fake_file.php');
78 78
 
79 79
         $this->builder->getManager(true, true);
80 80
     }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
         return array_walk(
191 191
             $commands,
192
-            function ($command) {
192
+            function($command) {
193 193
                 static::assertInstanceOf(Command::class, $command);
194 194
             }
195 195
         );
Please login to merge, or discard this patch.
tests/ManagerBuilder/CouchDBBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
         return array_walk(
93 93
             $commands,
94
-            function ($command) {
94
+            function($command) {
95 95
                 static::assertInstanceOf(Command::class, $command);
96 96
             }
97 97
         );
Please login to merge, or discard this patch.
tests/ManagerBuilder/MongoDBBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
         return array_walk(
93 93
             $commands,
94
-            function ($command) {
94
+            function($command) {
95 95
                 static::assertInstanceOf(Command::class, $command);
96 96
             }
97 97
         );
Please login to merge, or discard this patch.
bin/doctrine-manager.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 use Symfony\Component\Console\Application;
11 11
 
12 12
 $autoloadFiles = [
13
-    __DIR__ . '/../vendor/autoload.php',
14
-    __DIR__ . '/../../../autoload.php',
13
+    __DIR__.'/../vendor/autoload.php',
14
+    __DIR__.'/../../../autoload.php',
15 15
 ];
16 16
 
17 17
 foreach ($autoloadFiles as $autoloadFile) {
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
 
25 25
 $directories = [
26 26
     getcwd(),
27
-    getcwd() . DIRECTORY_SEPARATOR . 'config',
27
+    getcwd().DIRECTORY_SEPARATOR.'config',
28 28
 ];
29 29
 foreach ($directories as $directory) {
30
-    $configFile = $directory . DIRECTORY_SEPARATOR . 'cli-config.php';
30
+    $configFile = $directory.DIRECTORY_SEPARATOR.'cli-config.php';
31 31
 
32 32
     if (file_exists($configFile) && is_readable($configFile)) {
33 33
         $application = require $configFile;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
 return $consoleBuilder->getApplication();
57 57
 
58
-HELP;
58
+help;
59 59
 
60 60
     exit(1);
61 61
 }
Please login to merge, or discard this patch.
src/RelationalBuilder.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 
394 394
         return array_filter(
395 395
             $functions,
396
-            function ($name) {
396
+            function($name) {
397 397
                 return is_string($name);
398 398
             },
399 399
             ARRAY_FILTER_USE_KEY
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 
412 412
         return array_filter(
413 413
             $functions,
414
-            function ($name) {
414
+            function($name) {
415 415
                 return is_string($name);
416 416
             },
417 417
             ARRAY_FILTER_USE_KEY
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 
430 430
         return array_filter(
431 431
             $functions,
432
-            function ($name) {
432
+            function($name) {
433 433
                 return is_string($name);
434 434
             },
435 435
             ARRAY_FILTER_USE_KEY
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 
448 448
         return array_filter(
449 449
             $types,
450
-            function ($name) {
450
+            function($name) {
451 451
                 return is_string($name);
452 452
             },
453 453
             ARRAY_FILTER_USE_KEY
@@ -496,10 +496,10 @@  discard block
 block discarded – undo
496 496
 
497 497
         if ($commandPrefix !== '') {
498 498
             $commands = array_map(
499
-                function (Command $command) use ($commandPrefix) {
499
+                function(Command $command) use ($commandPrefix) {
500 500
                     $commandNames = array_map(
501
-                        function ($commandName) use ($commandPrefix) {
502
-                            return preg_replace('/^(dbal|orm):/', $commandPrefix . ':$1:', $commandName);
501
+                        function($commandName) use ($commandPrefix) {
502
+                            return preg_replace('/^(dbal|orm):/', $commandPrefix.':$1:', $commandName);
503 503
                         },
504 504
                         array_merge([$command->getName()], $command->getAliases())
505 505
                     );
Please login to merge, or discard this patch.
src/MongoDBBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                 break;
188 188
 
189 189
             default:
190
-                throw new \InvalidArgumentException('Invalid argument: ' . $connection);
190
+                throw new \InvalidArgumentException('Invalid argument: '.$connection);
191 191
         }
192 192
 
193 193
         return $connection;
@@ -345,10 +345,10 @@  discard block
 block discarded – undo
345 345
 
346 346
         if ($commandPrefix !== '') {
347 347
             $commands = array_map(
348
-                function (Command $command) use ($commandPrefix) {
348
+                function(Command $command) use ($commandPrefix) {
349 349
                     $commandNames = array_map(
350
-                        function ($commandName) use ($commandPrefix) {
351
-                            return preg_replace('/^odm:/', $commandPrefix . ':odm:', $commandName);
350
+                        function($commandName) use ($commandPrefix) {
351
+                            return preg_replace('/^odm:/', $commandPrefix.':odm:', $commandName);
352 352
                         },
353 353
                         array_merge([$command->getName()], $command->getAliases())
354 354
                     );
Please login to merge, or discard this patch.
src/CouchDBBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -188,10 +188,10 @@
 block discarded – undo
188 188
 
189 189
         if ($commandPrefix !== '') {
190 190
             $commands = array_map(
191
-                function (Command $command) use ($commandPrefix) {
191
+                function(Command $command) use ($commandPrefix) {
192 192
                     $commandNames = array_map(
193
-                        function ($commandName) use ($commandPrefix) {
194
-                            return preg_replace('/^couchdb:/', $commandPrefix . ':', $commandName);
193
+                        function($commandName) use ($commandPrefix) {
194
+                            return preg_replace('/^couchdb:/', $commandPrefix.':', $commandName);
195 195
                         },
196 196
                         array_merge([$command->getName()], $command->getAliases())
197 197
                     );
Please login to merge, or discard this patch.
src/AbstractManagerBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         $annotationFiles = (array) $this->getOption('annotation_files');
232 232
         array_walk(
233 233
             $annotationFiles,
234
-            function ($file) {
234
+            function($file) {
235 235
                 if (!file_exists($file)) {
236 236
                     throw new \RuntimeException(sprintf('"%s" file does not exist', $file));
237 237
                 }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $annotationLoaders = (array) $this->getOption('annotation_autoloaders');
246 246
         array_walk(
247 247
             $annotationLoaders,
248
-            function ($autoLoader) {
248
+            function($autoLoader) {
249 249
                 AnnotationRegistry::registerLoader($autoLoader);
250 250
             }
251 251
         );
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
         return array_filter(
268 268
             $namespaces,
269
-            function ($namespace) {
269
+            function($namespace) {
270 270
                 return is_string($namespace);
271 271
             },
272 272
             ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.