Completed
Push — master ( 12714a...a3d57f )
by Patrick
04:46
created
src/Adapters/Psr7/ResponseFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * @param int   $status
35 35
      * @param array $headers
36 36
      *
37
-     * @return ResponseContract
37
+     * @return \Psr\Http\Message\ResponseInterface
38 38
      */
39 39
     public function make($content = '', int $status = 200, array $headers = [])
40 40
     {
Please login to merge, or discard this patch.
src/Emitters/SapiEmitter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     }
35 35
 
36 36
     /**
37
-     * @param Response $response
37
+     * @param ResponseInterface $response
38 38
      */
39 39
     private function emitStatus(ResponseInterface $response)
40 40
     {
Please login to merge, or discard this patch.
src/WebServer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         $this->emitter = $emitter ?: new SapiEmitter;
34 34
 
35
-        $this->setResolver(function ($class) {
35
+        $this->setResolver(function($class) {
36 36
             return new $class;
37 37
         });
38 38
     }
Please login to merge, or discard this patch.
src/Providers/DiactorosProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,26 +26,26 @@
 block discarded – undo
26 26
     public function getDefinitions() : array
27 27
     {
28 28
         return [
29
-            RequestInterface::class => function () {
29
+            RequestInterface::class => function() {
30 30
                 return new Request(
31 31
                     ServerRequestFactory::fromGlobals()
32 32
                 );
33 33
             },
34
-            ResponseInterface::class => function () {
34
+            ResponseInterface::class => function() {
35 35
                 return new Response(
36 36
                     new DiactorosResponse
37 37
                 );
38 38
             },
39
-            ResponseFactoryInterface::class => function () {
39
+            ResponseFactoryInterface::class => function() {
40 40
                 return new ResponseFactory;
41 41
             },
42
-            Psr7Request::class => function (Container $container) {
42
+            Psr7Request::class => function(Container $container) {
43 43
                 return $container->get(RequestInterface::class)->toPsr7();
44 44
             },
45
-            Psr7Response::class => function (Container $container) {
45
+            Psr7Response::class => function(Container $container) {
46 46
                 return $container->get(ResponseInterface::class)->toPsr7();
47 47
             },
48
-            DispatchRequest::class => function (Container $container) {
48
+            DispatchRequest::class => function(Container $container) {
49 49
                 return new DispatchRequest(
50 50
                     $container->get(RouteDispatcher::class),
51 51
                     $container->get(ResponseFactoryInterface::class)
Please login to merge, or discard this patch.