Completed
Push — replace-resource-module ( d94370 )
by Akihito
10:25
created
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.
src/Extension/Router/RouterMatch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
     {
34 34
         $querySymbol = $this->query ? '?' : '';
35 35
 
36
-        return "{$this->method} {$this->path}{$querySymbol}" . http_build_query($this->query);
36
+        return "{$this->method} {$this->path}{$querySymbol}".http_build_query($this->query);
37 37
     }
38 38
 }
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
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $method = strtolower($server['REQUEST_METHOD']);
39 39
         $match = new RouterMatch;
40 40
         $match->method = $method;
41
-        $match->path = $this->schemeHost . parse_url($server['REQUEST_URI'], PHP_URL_PATH);
41
+        $match->path = $this->schemeHost.parse_url($server['REQUEST_URI'], PHP_URL_PATH);
42 42
         $match->query = ($method === 'get') ? $globals['_GET'] : $this->getUnsafeQuery($method, $globals, $server);
43 43
 
44 44
         return $match;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             return $put;
77 77
         }
78 78
         $isApplicationJson = strpos($contentType, 'application/json') !== false;
79
-        if (! $isApplicationJson) {
79
+        if (!$isApplicationJson) {
80 80
             return [];
81 81
         }
82 82
         /** @var array<string, mixed> $content */
Please login to merge, or discard this patch.
src/Provide/Error/VndError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
     private function isCodeExists(Exception $e) : bool
86 86
     {
87
-        if (! ($e instanceof NotFound) && ! ($e instanceof BadRequest) && ! ($e instanceof ServerError)) {
87
+        if (!($e instanceof NotFound) && !($e instanceof BadRequest) && !($e instanceof ServerError)) {
88 88
             return false;
89 89
         }
90 90
 
Please login to merge, or discard this patch.