Completed
Push — 1.x ( f091f0...81f5a7 )
by Akihito
20s
created
src/Provide/Error/VndError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
     private function isCodeExists(\Exception $e) : bool
76 76
     {
77
-        if (! ($e instanceof NotFound) && ! ($e instanceof BadRequest) && ! ($e instanceof ServerError)) {
77
+        if (!($e instanceof NotFound) && !($e instanceof BadRequest) && !($e instanceof ServerError)) {
78 78
             return false;
79 79
         }
80 80
 
Please login to merge, or discard this patch.
src/Extension/Router/RouterMatch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
31 31
     {
32 32
         $querySymbol = $this->query ? '?' : '';
33 33
 
34
-        return "{$this->method} {$this->path}{$querySymbol}" . \http_build_query($this->query);
34
+        return "{$this->method} {$this->path}{$querySymbol}".\http_build_query($this->query);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
src/Provide/Router/WebRouter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $method = \strtolower($server['REQUEST_METHOD']);
34 34
         $match = new RouterMatch;
35 35
         $match->method = $method;
36
-        $match->path = $this->schemeHost . \parse_url($server['REQUEST_URI'], PHP_URL_PATH);
36
+        $match->path = $this->schemeHost.\parse_url($server['REQUEST_URI'], PHP_URL_PATH);
37 37
         $match->query = ($method === 'get') ? $globals['_GET'] : $this->getUnsafeQuery($method, $globals, $server);
38 38
 
39 39
         return $match;
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             return $put;
65 65
         }
66 66
         $isApplicationJson = strpos($contentType, 'application/json') !== false;
67
-        if (! $isApplicationJson) {
67
+        if (!$isApplicationJson) {
68 68
             return [];
69 69
         }
70 70
         $content = json_decode($rawBody, true);
Please login to merge, or discard this patch.
src/Provide/Transfer/ConditionalResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function isModified(ResourceObject $ro, array $server) : bool
27 27
     {
28
-        return ! (isset($server['HTTP_IF_NONE_MATCH'], $ro->headers['ETag']) && $server['HTTP_IF_NONE_MATCH'] === $ro->headers['ETag']);
28
+        return !(isset($server['HTTP_IF_NONE_MATCH'], $ro->headers['ETag']) && $server['HTTP_IF_NONE_MATCH'] === $ro->headers['ETag']);
29 29
     }
30 30
 
31 31
     /**
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $headers = [];
37 37
         foreach ($originalHeaders as $label => $value) {
38
-            if (! in_array($label, self::HEADER_IN_304, true)) {
38
+            if (!in_array($label, self::HEADER_IN_304, true)) {
39 39
                 continue;
40 40
             }
41 41
             $headers[$label] = $value;
Please login to merge, or discard this patch.