Completed
Push — master ( 91d83f...255971 )
by Matthew
02:37
created
src/Fyuze/Http/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,6 +97,6 @@
 block discarded – undo
97 97
      */
98 98
     public function __toString()
99 99
     {
100
-        return (string)$this->getBody();
100
+        return (string) $this->getBody();
101 101
     }
102 102
 }
Please login to merge, or discard this patch.
src/Fyuze/Http/Message/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     public function withStatus($code, $reasonPhrase = '')
109 109
     {
110 110
         $instance = clone $this;
111
-        $code = (int)$code;
111
+        $code = (int) $code;
112 112
         if (is_float($code) || $code < 100 || $code >= 600) {
113 113
             throw new \InvalidArgumentException(sprintf('Invalid status code %d', $code));
114 114
         }
Please login to merge, or discard this patch.
src/Fyuze/Http/Message/ServerRequest.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             'REMOTE_ADDR' => '127.0.0.1',
65 65
             'SERVER_PROTOCOL' => 'HTTP/1.1',
66 66
             'REQUEST_TIME' => time(),
67
-            'REQUEST_URI' => (string)$uri,
67
+            'REQUEST_URI' => (string) $uri,
68 68
             'REQUEST_METHOD' => $method
69 69
         ], $_SERVER);
70 70
 
Please login to merge, or discard this patch.
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,6 @@
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * ServerRequest constructor.
42
-     * @param string $uri
43
-     * @param string $method
44 42
      * @param array $server
45 43
      */
46 44
     public function __construct($server = [])
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Fyuze\Http\Message;
3 3
 
4 4
 use Psr\Http\Message\ServerRequestInterface;
5
-use Psr\Http\Message\UriInterface;
6 5
 
7 6
 class ServerRequest extends Request implements ServerRequestInterface
8 7
 {
Please login to merge, or discard this patch.
src/Fyuze/Config/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         foreach (new GlobIterator($this->path . '/*.*') as $file) {
99 99
 
100
-            if($config = $this->getType($file)) {
100
+            if ($config = $this->getType($file)) {
101 101
                 $this->configs[$config[0]] = $config[1];
102 102
             }
103 103
         }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $extension = $file->getExtension();
113 113
         $name = $file->getBasename(".$extension");
114 114
 
115
-        $type = array_filter($this->types, function ($n) use ($extension) {
115
+        $type = array_filter($this->types, function($n) use ($extension) {
116 116
             return in_array($extension, $n::$extensions);
117 117
         });
118 118
 
Please login to merge, or discard this patch.
src/Fyuze/Routing/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
      */
42 42
     protected function match(ServerRequestInterface $request)
43 43
     {
44
-        return array_filter($this->routes->getRoutes(), function (Route $route) use ($request) {
44
+        return array_filter($this->routes->getRoutes(), function(Route $route) use ($request) {
45 45
             $match = $route->matches($request);
46
-            if(false !== $match) {
46
+            if (false !== $match) {
47 47
                 return $route->setParams($match);
48 48
             }
49 49
         });
Please login to merge, or discard this patch.