Test Setup Failed
Push — master ( fc3d1f...802d91 )
by Arnold
06:12
created
src/Traits/Header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return $this
26 26
      */
27
-    protected function header(string $header, string|int|\Stringable $value, bool $add = false): static
27
+    protected function header(string $header, string | int | \Stringable $value, bool $add = false): static
28 28
     {
29 29
         $response = $add
30 30
             ? $this->getResponse()->withAddedHeader($header, (string)$value)
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param int|string $status
48 48
      * @return $this
49 49
      */
50
-    protected function status(int|string $status): static
50
+    protected function status(int | string $status): static
51 51
     {
52 52
         if (is_string($status)) {
53 53
             [$status, $phrase] = explode(' ', $status, 2) + [1 => ''];
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @param string     $url
135 135
      * @param int|string $status  301 (Moved Permanently), 302 (Found), 303 (See Other) or 307 (Temporary Redirect)
136 136
      */
137
-    protected function redirect(string $url, int|string $status = 303): static
137
+    protected function redirect(string $url, int | string $status = 303): static
138 138
     {
139 139
         if ($status < 300 || $status >= 400) {
140 140
             throw new \DomainException("Invalid status code $status for redirect");
Please login to merge, or discard this patch.
src/Traits/ContentNegotiation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     abstract protected function getRequest(): ServerRequestInterface;
15 15
 
16
-    abstract protected function header(string $header, string|int|\Stringable $value, bool $add = false): static;
16
+    abstract protected function header(string $header, string | int | \Stringable $value, bool $add = false): static;
17 17
 
18 18
     /**
19 19
      * Pick best content type
Please login to merge, or discard this patch.