Completed
Push — master ( 52da22...e14a89 )
by Julián
02:15
created
bin/doctrine-manager.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     }
37 37
 }
38 38
 
39
-if (!$application instanceof Application) {
39
+if ( ! $application instanceof Application) {
40 40
     echo <<<'HELP'
41 41
 You are missing a "./cli-config.php" or "./config/cli-config.php" file
42 42
 in your project, the file is not readable or it's not returning a
Please login to merge, or discard this patch.
src/RelationalBuilder.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             $this->wipe();
117 117
         }
118 118
 
119
-        if (!$this->manager instanceof EntityManager) {
119
+        if ( ! $this->manager instanceof EntityManager) {
120 120
             $this->manager = $this->buildManager();
121 121
         }
122 122
 
@@ -220,11 +220,11 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function getQueryCacheDriver()
222 222
     {
223
-        if (!$this->queryCacheDriver instanceof CacheProvider) {
223
+        if ( ! $this->queryCacheDriver instanceof CacheProvider) {
224 224
             $queryCacheDriver = $this->getOption('query_cache_driver');
225 225
             $cacheNamespace = (string) $this->getOption('query_cache_namespace');
226 226
 
227
-            if (!$queryCacheDriver instanceof CacheProvider) {
227
+            if ( ! $queryCacheDriver instanceof CacheProvider) {
228 228
                 $queryCacheDriver = clone $this->getMetadataCacheDriver();
229 229
                 $queryCacheDriver->setNamespace($cacheNamespace);
230 230
             }
@@ -258,11 +258,11 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public function getResultCacheDriver()
260 260
     {
261
-        if (!$this->resultCacheDriver instanceof CacheProvider) {
261
+        if ( ! $this->resultCacheDriver instanceof CacheProvider) {
262 262
             $resultCacheDriver = $this->getOption('result_cache_driver');
263 263
             $cacheNamespace = (string) $this->getOption('result_cache_namespace');
264 264
 
265
-            if (!$resultCacheDriver instanceof CacheProvider) {
265
+            if ( ! $resultCacheDriver instanceof CacheProvider) {
266 266
                 $resultCacheDriver = clone $this->getMetadataCacheDriver();
267 267
                 $resultCacheDriver->setNamespace($cacheNamespace);
268 268
             }
@@ -306,10 +306,10 @@  discard block
 block discarded – undo
306 306
      */
307 307
     protected function getNamingStrategy()
308 308
     {
309
-        if (!$this->namingStrategy instanceof NamingStrategy) {
309
+        if ( ! $this->namingStrategy instanceof NamingStrategy) {
310 310
             $namingStrategy = $this->getOption('naming_strategy');
311 311
 
312
-            if (!$namingStrategy instanceof NamingStrategy) {
312
+            if ( ! $namingStrategy instanceof NamingStrategy) {
313 313
                 $namingStrategy = new UnderscoreNamingStrategy(CASE_LOWER);
314 314
             }
315 315
 
@@ -328,10 +328,10 @@  discard block
 block discarded – undo
328 328
      */
329 329
     protected function getQuoteStrategy()
330 330
     {
331
-        if (!$this->quoteStrategy instanceof QuoteStrategy) {
331
+        if ( ! $this->quoteStrategy instanceof QuoteStrategy) {
332 332
             $quoteStrategy = $this->getOption('quote_strategy');
333 333
 
334
-            if (!$quoteStrategy instanceof QuoteStrategy) {
334
+            if ( ! $quoteStrategy instanceof QuoteStrategy) {
335 335
                 $quoteStrategy = new DefaultQuoteStrategy;
336 336
             }
337 337
 
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      */
349 349
     protected function getSQLLogger()
350 350
     {
351
-        if (!$this->SQLLogger instanceof SQLLogger) {
351
+        if ( ! $this->SQLLogger instanceof SQLLogger) {
352 352
             $sqlLogger = $this->getOption('sql_logger');
353 353
 
354 354
             if ($sqlLogger instanceof SQLLogger) {
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 
371 371
         return array_filter(
372 372
             $functions,
373
-            function ($name) {
373
+            function($name) {
374 374
                 return is_string($name);
375 375
             },
376 376
             ARRAY_FILTER_USE_KEY
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 
389 389
         return array_filter(
390 390
             $functions,
391
-            function ($name) {
391
+            function($name) {
392 392
                 return is_string($name);
393 393
             },
394 394
             ARRAY_FILTER_USE_KEY
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 
407 407
         return array_filter(
408 408
             $functions,
409
-            function ($name) {
409
+            function($name) {
410 410
                 return is_string($name);
411 411
             },
412 412
             ARRAY_FILTER_USE_KEY
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 
425 425
         return array_filter(
426 426
             $types,
427
-            function ($name) {
427
+            function($name) {
428 428
                 return is_string($name);
429 429
             },
430 430
             ARRAY_FILTER_USE_KEY
@@ -473,9 +473,9 @@  discard block
 block discarded – undo
473 473
 
474 474
         if ($commandPrefix !== '') {
475 475
             $commands = array_map(
476
-                function (Command $command) use ($commandPrefix) {
476
+                function(Command $command) use ($commandPrefix) {
477 477
                     $commandNames = array_map(
478
-                        function ($commandName) use ($commandPrefix) {
478
+                        function($commandName) use ($commandPrefix) {
479 479
                             return preg_replace('/^(dbal|orm):/', $commandPrefix . ':$1:', $commandName);
480 480
                         },
481 481
                         array_merge([$command->getName()], $command->getAliases())
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
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $this->wipe();
79 79
         }
80 80
 
81
-        if (!$this->manager instanceof DocumentManager) {
81
+        if ( ! $this->manager instanceof DocumentManager) {
82 82
             $this->manager = $this->buildManager();
83 83
         }
84 84
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      */
299 299
     protected function getLoggerCallable()
300 300
     {
301
-        if (!is_callable($this->loggerCallable)) {
301
+        if ( ! is_callable($this->loggerCallable)) {
302 302
             $loggerCallable = $this->getOption('logger_callable');
303 303
 
304 304
             if (is_callable($loggerCallable)) {
@@ -339,9 +339,9 @@  discard block
 block discarded – undo
339 339
 
340 340
         if ($commandPrefix !== '') {
341 341
             $commands = array_map(
342
-                function (Command $command) use ($commandPrefix) {
342
+                function(Command $command) use ($commandPrefix) {
343 343
                     $commandNames = array_map(
344
-                        function ($commandName) use ($commandPrefix) {
344
+                        function($commandName) use ($commandPrefix) {
345 345
                             return preg_replace('/^odm:/', $commandPrefix . ':odm:', $commandName);
346 346
                         },
347 347
                         array_merge([$command->getName()], $command->getAliases())
Please login to merge, or discard this patch.
src/AbstractManagerBuilder.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
         $annotationFiles = (array) $this->getOption('annotation_files');
220 220
         array_walk(
221 221
             $annotationFiles,
222
-            function ($file) {
223
-                if (!file_exists($file)) {
222
+            function($file) {
223
+                if ( ! file_exists($file)) {
224 224
                     throw new \RuntimeException(sprintf('"%s" file does not exist', $file));
225 225
                 }
226 226
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         $annotationLoaders = (array) $this->getOption('annotation_autoloaders');
234 234
         array_walk(
235 235
             $annotationLoaders,
236
-            function ($autoLoader) {
236
+            function($autoLoader) {
237 237
                 AnnotationRegistry::registerLoader($autoLoader);
238 238
             }
239 239
         );
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
         return array_filter(
252 252
             $namespaces,
253
-            function ($namespace) {
253
+            function($namespace) {
254 254
                 return is_string($namespace);
255 255
             },
256 256
             ARRAY_FILTER_USE_KEY
@@ -267,15 +267,15 @@  discard block
 block discarded – undo
267 267
      */
268 268
     public function getMetadataMappingDriver()
269 269
     {
270
-        if (!$this->mappingDriver instanceof MappingDriverChain) {
270
+        if ( ! $this->mappingDriver instanceof MappingDriverChain) {
271 271
             $metadataDriver = new MappingDriverChain;
272 272
 
273 273
             foreach ((array) $this->getOption('metadata_mapping') as $metadataMapping) {
274
-                if (!is_array($metadataMapping)) {
274
+                if ( ! is_array($metadataMapping)) {
275 275
                     $metadataMapping = ['driver' => $metadataMapping];
276 276
                 }
277 277
 
278
-                if (!array_key_exists('namespace', $metadataMapping) && $metadataDriver->getDefaultDriver() !== null) {
278
+                if ( ! array_key_exists('namespace', $metadataMapping) && $metadataDriver->getDefaultDriver() !== null) {
279 279
                     throw new \RuntimeException(
280 280
                         'Only one default metadata mapping driver allowed, a namespace must be defined'
281 281
                     );
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         if (array_key_exists('driver', $metadataMapping)) {
315 315
             $mappingDriver = $metadataMapping['driver'];
316 316
 
317
-            if (!$mappingDriver instanceof MappingDriver) {
317
+            if ( ! $mappingDriver instanceof MappingDriver) {
318 318
                 throw new \UnexpectedValueException(
319 319
                     sprintf('Provided driver should be of the type MappingDriver, "%s" given', gettype($mappingDriver))
320 320
                 );
@@ -435,10 +435,10 @@  discard block
 block discarded – undo
435 435
      */
436 436
     public function getMetadataCacheDriver()
437 437
     {
438
-        if (!$this->metadataCacheDriver instanceof CacheProvider) {
438
+        if ( ! $this->metadataCacheDriver instanceof CacheProvider) {
439 439
             $metadataCacheDriver = $this->getOption('metadata_cache_driver');
440 440
 
441
-            if (!$metadataCacheDriver instanceof CacheProvider) {
441
+            if ( ! $metadataCacheDriver instanceof CacheProvider) {
442 442
                 $metadataCacheDriver = $this->createNewCacheDriver();
443 443
             }
444 444
 
@@ -510,10 +510,10 @@  discard block
 block discarded – undo
510 510
      */
511 511
     public function getEventManager()
512 512
     {
513
-        if (!$this->eventManager instanceof EventManager) {
513
+        if ( ! $this->eventManager instanceof EventManager) {
514 514
             $eventManager = $this->getOption('event_manager');
515 515
 
516
-            if (!$eventManager instanceof EventManager) {
516
+            if ( ! $eventManager instanceof EventManager) {
517 517
                 $eventManager = new EventManager;
518 518
             }
519 519
 
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
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             $this->wipe();
60 60
         }
61 61
 
62
-        if (!$this->manager instanceof DocumentManager) {
62
+        if ( ! $this->manager instanceof DocumentManager) {
63 63
             $this->manager = $this->buildManager();
64 64
         }
65 65
 
@@ -169,9 +169,9 @@  discard block
 block discarded – undo
169 169
 
170 170
         if ($commandPrefix !== '') {
171 171
             $commands = array_map(
172
-                function (Command $command) use ($commandPrefix) {
172
+                function(Command $command) use ($commandPrefix) {
173 173
                     $commandNames = array_map(
174
-                        function ($commandName) use ($commandPrefix) {
174
+                        function($commandName) use ($commandPrefix) {
175 175
                             return preg_replace('/^couchdb:/', $commandPrefix . ':', $commandName);
176 176
                         },
177 177
                         array_merge([$command->getName()], $command->getAliases())
Please login to merge, or discard this patch.