Completed
Push — master ( 1d0e21...b94259 )
by Patrick
14:43
created
src/Providers/DiactorosProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,23 +24,23 @@
 block discarded – undo
24 24
     public function getDefinitions() : array
25 25
     {
26 26
         return [
27
-            RequestInterface::class => function () {
27
+            RequestInterface::class => function() {
28 28
                 return new Request(
29 29
                     ServerRequestFactory::fromGlobals()
30 30
                 );
31 31
             },
32
-            ResponseInterface::class => function () {
32
+            ResponseInterface::class => function() {
33 33
                 return new Response(
34 34
                     new DiactorosResponse
35 35
                 );
36 36
             },
37
-            ResponseFactoryInterface::class => function () {
37
+            ResponseFactoryInterface::class => function() {
38 38
                 return new ResponseFactory;
39 39
             },
40
-            Psr7Request::class => function (Container $container) {
40
+            Psr7Request::class => function(Container $container) {
41 41
                 return $container->make(RequestInterface::class)->toPsr7();
42 42
             },
43
-            Psr7Response::class => function (Container $container) {
43
+            Psr7Response::class => function(Container $container) {
44 44
                 return $container->make(ResponseInterface::class)->toPsr7();
45 45
             }
46 46
         ];
Please login to merge, or discard this patch.
src/Adapters/Psr7/Request.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function exists($key)
91 91
     {
92
-        return array_reduce((array) $key, function ($carry, $item) {
92
+        return array_reduce((array) $key, function($carry, $item) {
93 93
             return $carry && array_key_exists($item, $this->all());
94 94
         }, true);
95 95
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function has($key)
101 101
     {
102
-        return array_reduce((array) $key, function ($carry, $item) {
102
+        return array_reduce((array) $key, function($carry, $item) {
103 103
             return $carry && !$this->isEmptyString($item);
104 104
         }, true);
105 105
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $segments = explode('/', trim($this->getUri()->getPath(), '/'));
125 125
 
126
-        return array_values(array_filter($segments, function ($segment) {
126
+        return array_values(array_filter($segments, function($segment) {
127 127
             return trim($segment) !== '';
128 128
         }));
129 129
     }
Please login to merge, or discard this patch.
src/WebServer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
         ob_start();
40 40
         $bufferLevel = ob_get_level();
41 41
 
42
-        $response = array_reduce(array_reverse($this->pipes), function ($next, $pipe) use ($request) {
43
-            return $pipe($request, function () use ($next) {
42
+        $response = array_reduce(array_reverse($this->pipes), function($next, $pipe) use ($request) {
43
+            return $pipe($request, function() use ($next) {
44 44
                 return $next;
45 45
             });
46 46
         });
Please login to merge, or discard this patch.