Test Setup Failed
Push — master ( bbae22...33a2d7 )
by Hesham
39:07
created
src/console/UpdateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
                 (
136 136
                     $response ? "\r\n[{$response->getStatusCode()}]
137 137
                     {$response->getReasonPhrase()} {(string)$response->getBody()}"
138
-                    : "Connection Failed.\r\n" . ShellHelper::$LastError
138
+                    : "Connection Failed.\r\n".ShellHelper::$LastError
139 139
                 )
140 140
             );
141 141
             return;
Please login to merge, or discard this patch.
src/controllers/LumenerController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function __call($method, $params)
35 35
     {
36 36
         if (strncasecmp($method, "get", 3) === 0) {
37
-            $var = preg_replace_callback('/[A-Z]/', function ($c) {
37
+            $var = preg_replace_callback('/[A-Z]/', function($c) {
38 38
                 return '_'.strtolower($c[0]);
39 39
             }, lcfirst(substr($method, 3)));
40 40
             return $this->$var;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $this->_stopErrorHandling();
187 187
         $content = "";
188 188
         while ($level = ob_get_clean()) {
189
-            $content = $level . $content;
189
+            $content = $level.$content;
190 190
         }
191 191
         return $content;
192 192
     }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             $handled |= $code;
199 199
         }
200 200
         set_error_handler(
201
-            function ($err_severity, $err_msg, $err_file, $err_line) use ($pattern) {
201
+            function($err_severity, $err_msg, $err_file, $err_line) use ($pattern) {
202 202
                 // Check if suppressed with the @-operator
203 203
                 if (0 === error_reporting()) {
204 204
                     return false;
Please login to merge, or discard this patch.
vendor/illuminate/container/Container.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         // If the factory is not a Closure, it means it is just a class name which is
234 234
         // bound into this container to the abstract type and we will just wrap it
235 235
         // up inside its own Closure to give us more convenience when extending.
236
-        if (! $concrete instanceof Closure) {
236
+        if (!$concrete instanceof Closure) {
237 237
             $concrete = $this->getClosure($abstract, $concrete);
238 238
         }
239 239
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      */
257 257
     protected function getClosure($abstract, $concrete)
258 258
     {
259
-        return function ($container, $parameters = []) use ($abstract, $concrete) {
259
+        return function($container, $parameters = []) use ($abstract, $concrete) {
260 260
             if ($abstract == $concrete) {
261 261
                 return $container->build($concrete);
262 262
             }
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      */
341 341
     public function bindIf($abstract, $concrete = null, $shared = false)
342 342
     {
343
-        if (! $this->bound($abstract)) {
343
+        if (!$this->bound($abstract)) {
344 344
             $this->bind($abstract, $concrete, $shared);
345 345
         }
346 346
     }
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
      */
419 419
     protected function removeAbstractAlias($searched)
420 420
     {
421
-        if (! isset($this->aliases[$searched])) {
421
+        if (!isset($this->aliases[$searched])) {
422 422
             return;
423 423
         }
424 424
 
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
         $tags = is_array($tags) ? $tags : array_slice(func_get_args(), 1);
444 444
 
445 445
         foreach ($tags as $tag) {
446
-            if (! isset($this->tags[$tag])) {
446
+            if (!isset($this->tags[$tag])) {
447 447
                 $this->tags[$tag] = [];
448 448
             }
449 449
 
@@ -461,11 +461,11 @@  discard block
 block discarded – undo
461 461
      */
462 462
     public function tagged($tag)
463 463
     {
464
-        if (! isset($this->tags[$tag])) {
464
+        if (!isset($this->tags[$tag])) {
465 465
             return [];
466 466
         }
467 467
 
468
-        return new RewindableGenerator(function () use ($tag) {
468
+        return new RewindableGenerator(function() use ($tag) {
469 469
             foreach ($this->tags[$tag] as $abstract) {
470 470
                 yield $this->make($abstract);
471 471
             }
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
      */
519 519
     public function refresh($abstract, $target, $method)
520 520
     {
521
-        return $this->rebinding($abstract, function ($app, $instance) use ($target, $method) {
521
+        return $this->rebinding($abstract, function($app, $instance) use ($target, $method) {
522 522
             $target->{$method}($instance);
523 523
         });
524 524
     }
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
      */
559 559
     public function wrap(Closure $callback, array $parameters = [])
560 560
     {
561
-        return function () use ($callback, $parameters) {
561
+        return function() use ($callback, $parameters) {
562 562
             return $this->call($callback, $parameters);
563 563
         };
564 564
     }
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
      */
585 585
     public function factory($abstract)
586 586
     {
587
-        return function () use ($abstract) {
587
+        return function() use ($abstract) {
588 588
             return $this->make($abstract);
589 589
         };
590 590
     }
@@ -645,14 +645,14 @@  discard block
 block discarded – undo
645 645
     {
646 646
         $abstract = $this->getAlias($abstract);
647 647
 
648
-        $needsContextualBuild = ! empty($parameters) || ! is_null(
648
+        $needsContextualBuild = !empty($parameters) || !is_null(
649 649
             $this->getContextualConcrete($abstract)
650 650
         );
651 651
 
652 652
         // If an instance of the type is currently being managed as a singleton we'll
653 653
         // just return an existing instance instead of instantiating new instances
654 654
         // so the developer can keep using the same objects instance every time.
655
-        if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
655
+        if (isset($this->instances[$abstract]) && !$needsContextualBuild) {
656 656
             return $this->instances[$abstract];
657 657
         }
658 658
 
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
         // If the requested type is registered as a singleton we'll want to cache off
680 680
         // the instances in "memory" so we can return it later without creating an
681 681
         // entirely new instance of an object on each subsequent request for it.
682
-        if ($this->isShared($abstract) && ! $needsContextualBuild) {
682
+        if ($this->isShared($abstract) && !$needsContextualBuild) {
683 683
             $this->instances[$abstract] = $object;
684 684
         }
685 685
 
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
      */
706 706
     protected function getConcrete($abstract)
707 707
     {
708
-        if (! is_null($concrete = $this->getContextualConcrete($abstract))) {
708
+        if (!is_null($concrete = $this->getContextualConcrete($abstract))) {
709 709
             return $concrete;
710 710
         }
711 711
 
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
      */
728 728
     protected function getContextualConcrete($abstract)
729 729
     {
730
-        if (! is_null($binding = $this->findInContextualBindings($abstract))) {
730
+        if (!is_null($binding = $this->findInContextualBindings($abstract))) {
731 731
             return $binding;
732 732
         }
733 733
 
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
         }
740 740
 
741 741
         foreach ($this->abstractAliases[$abstract] as $alias) {
742
-            if (! is_null($binding = $this->findInContextualBindings($alias))) {
742
+            if (!is_null($binding = $this->findInContextualBindings($alias))) {
743 743
                 return $binding;
744 744
             }
745 745
         }
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
         // If the type is not instantiable, the developer is attempting to resolve
793 793
         // an abstract type such as an Interface or Abstract Class and there is
794 794
         // no binding registered for the abstractions so we need to bail out.
795
-        if (! $reflector->isInstantiable()) {
795
+        if (!$reflector->isInstantiable()) {
796 796
             return $this->notInstantiable($concrete);
797 797
         }
798 798
 
@@ -900,7 +900,7 @@  discard block
 block discarded – undo
900 900
      */
901 901
     protected function resolvePrimitive(ReflectionParameter $parameter)
902 902
     {
903
-        if (! is_null($concrete = $this->getContextualConcrete('$'.$parameter->name))) {
903
+        if (!is_null($concrete = $this->getContextualConcrete('$'.$parameter->name))) {
904 904
             return $concrete instanceof Closure ? $concrete($this) : $concrete;
905 905
         }
906 906
 
@@ -947,7 +947,7 @@  discard block
 block discarded – undo
947 947
      */
948 948
     protected function notInstantiable($concrete)
949 949
     {
950
-        if (! empty($this->buildStack)) {
950
+        if (!empty($this->buildStack)) {
951 951
             $previous = implode(', ', $this->buildStack);
952 952
 
953 953
             $message = "Target [$concrete] is not instantiable while building [$previous].";
@@ -1101,7 +1101,7 @@  discard block
 block discarded – undo
1101 1101
      */
1102 1102
     public function getAlias($abstract)
1103 1103
     {
1104
-        if (! isset($this->aliases[$abstract])) {
1104
+        if (!isset($this->aliases[$abstract])) {
1105 1105
             return $abstract;
1106 1106
         }
1107 1107
 
@@ -1234,7 +1234,7 @@  discard block
 block discarded – undo
1234 1234
      */
1235 1235
     public function offsetSet($key, $value)
1236 1236
     {
1237
-        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
1237
+        $this->bind($key, $value instanceof Closure ? $value : function() use ($value) {
1238 1238
             return $value;
1239 1239
         });
1240 1240
     }
Please login to merge, or discard this patch.
vendor/illuminate/container/BoundMethod.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             return static::callClass($container, $callback, $parameters, $defaultMethod);
28 28
         }
29 29
 
30
-        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
30
+        return static::callBoundMethod($container, $callback, function() use ($container, $callback, $parameters) {
31 31
             return call_user_func_array(
32 32
                 $callback, static::getMethodDependencies($container, $callback, $parameters)
33 33
             );
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     protected static function callBoundMethod($container, $callback, $default)
76 76
     {
77
-        if (! is_array($callback)) {
77
+        if (!is_array($callback)) {
78 78
             return $default instanceof Closure ? $default() : $default;
79 79
         }
80 80
 
Please login to merge, or discard this patch.
vendor/illuminate/http/UploadedFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
      */
97 97
     public function get()
98 98
     {
99
-        if (! $this->isValid()) {
99
+        if (!$this->isValid()) {
100 100
             throw new FileNotFoundException("File does not exist at path {$this->getPathname()}");
101 101
         }
102 102
 
Please login to merge, or discard this patch.
vendor/illuminate/http/RedirectResponse.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
     public function withInput(array $input = null)
75 75
     {
76 76
         $this->session->flashInput($this->removeFilesFromInput(
77
-            ! is_null($input) ? $input : $this->request->input()
77
+            !is_null($input) ? $input : $this->request->input()
78 78
         ));
79 79
 
80 80
         return $this;
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
         $errors = $this->session->get('errors', new ViewErrorBag);
136 136
 
137
-        if (! $errors instanceof ViewErrorBag) {
137
+        if (!$errors instanceof ViewErrorBag) {
138 138
             $errors = new ViewErrorBag;
139 139
         }
140 140
 
Please login to merge, or discard this patch.
vendor/illuminate/http/Concerns/InteractsWithInput.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function hasHeader($key)
32 32
     {
33
-        return ! is_null($this->header($key));
33
+        return !is_null($this->header($key));
34 34
     }
35 35
 
36 36
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $input = $this->all();
84 84
 
85 85
         foreach ($keys as $value) {
86
-            if (! Arr::has($input, $value)) {
86
+            if (!Arr::has($input, $value)) {
87 87
                 return false;
88 88
             }
89 89
         }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     {
161 161
         $value = $this->input($key);
162 162
 
163
-        return ! is_bool($value) && ! is_array($value) && trim((string) $value) === '';
163
+        return !is_bool($value) && !is_array($value) && trim((string) $value) === '';
164 164
     }
165 165
 
166 166
     /**
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     {
184 184
         $input = array_replace_recursive($this->input(), $this->allFiles());
185 185
 
186
-        if (! $keys) {
186
+        if (!$keys) {
187 187
             return $input;
188 188
         }
189 189
 
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      */
286 286
     public function hasCookie($key)
287 287
     {
288
-        return ! is_null($this->cookie($key));
288
+        return !is_null($this->cookie($key));
289 289
     }
290 290
 
291 291
     /**
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      */
321 321
     protected function convertUploadedFiles(array $files)
322 322
     {
323
-        return array_map(function ($file) {
323
+        return array_map(function($file) {
324 324
             if (is_null($file) || (is_array($file) && empty(array_filter($file)))) {
325 325
                 return $file;
326 326
             }
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      */
340 340
     public function hasFile($key)
341 341
     {
342
-        if (! is_array($files = $this->file($key))) {
342
+        if (!is_array($files = $this->file($key))) {
343 343
             $files = [$files];
344 344
         }
345 345
 
Please login to merge, or discard this patch.
vendor/illuminate/http/Concerns/InteractsWithContentTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function expectsJson()
43 43
     {
44
-        return ($this->ajax() && ! $this->pjax() && $this->acceptsAnyContentType()) || $this->wantsJson();
44
+        return ($this->ajax() && !$this->pjax() && $this->acceptsAnyContentType()) || $this->wantsJson();
45 45
     }
46 46
 
47 47
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             foreach ($contentTypes as $contentType) {
108 108
                 $type = $contentType;
109 109
 
110
-                if (! is_null($mimeType = $this->getMimeType($contentType))) {
110
+                if (!is_null($mimeType = $this->getMimeType($contentType))) {
111 111
                     $type = $mimeType;
112 112
                 }
113 113
 
Please login to merge, or discard this patch.
vendor/illuminate/http/Request.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     {
172 172
         $segments = explode('/', $this->decodedPath());
173 173
 
174
-        return array_values(array_filter($segments, function ($value) {
174
+        return array_values(array_filter($segments, function($value) {
175 175
             return $value !== '';
176 176
         }));
177 177
     }
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
      */
346 346
     public function json($key = null, $default = null)
347 347
     {
348
-        if (! isset($this->json)) {
348
+        if (!isset($this->json)) {
349 349
             $this->json = new ParameterBag((array) json_decode($this->getContent(), true));
350 350
         }
351 351
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
      */
455 455
     protected function filterFiles($files)
456 456
     {
457
-        if (! $files) {
457
+        if (!$files) {
458 458
             return;
459 459
         }
460 460
 
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
      */
481 481
     public function session()
482 482
     {
483
-        if (! $this->hasSession()) {
483
+        if (!$this->hasSession()) {
484 484
             throw new RuntimeException('Session store not set on request.');
485 485
         }
486 486
 
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      */
547 547
     public function fingerprint()
548 548
     {
549
-        if (! $route = $this->route()) {
549
+        if (!$route = $this->route()) {
550 550
             throw new RuntimeException('Unable to generate fingerprint. Route unavailable.');
551 551
         }
552 552
 
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
      */
577 577
     public function getUserResolver()
578 578
     {
579
-        return $this->userResolver ?: function () {
579
+        return $this->userResolver ?: function() {
580 580
             //
581 581
         };
582 582
     }
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
      */
602 602
     public function getRouteResolver()
603 603
     {
604
-        return $this->routeResolver ?: function () {
604
+        return $this->routeResolver ?: function() {
605 605
             //
606 606
         };
607 607
     }
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
      */
686 686
     public function __isset($key)
687 687
     {
688
-        return ! is_null($this->__get($key));
688
+        return !is_null($this->__get($key));
689 689
     }
690 690
 
691 691
     /**
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
      */
697 697
     public function __get($key)
698 698
     {
699
-        return Arr::get($this->all(), $key, function () use ($key) {
699
+        return Arr::get($this->all(), $key, function() use ($key) {
700 700
             return $this->route($key);
701 701
         });
702 702
     }
Please login to merge, or discard this patch.