Passed
Push — develop ( 04e5ba...4f40fb )
by Greg
20:04 queued 14:02
created
app/Factories/ResponseFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @return ResponseInterface
101 101
      */
102
-    public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface
103
->>>>>>> 90fa61f704... PHP8.0 - Union types
102
+    public function response(string | array | object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface
103
+>> >> >> > 90fa61f704... PHP8.0 - Union types
104 104
     {
105 105
         if ($content === '' && $code === StatusCodeInterface::STATUS_OK) {
106 106
             $code = StatusCodeInterface::STATUS_NO_CONTENT;
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         if (is_string($content)) {
110 110
             $headers['content-type'] ??= 'text/html; charset=UTF-8';
111 111
         } else {
112
-            $content                 = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
112
+            $content = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
113 113
             $headers['content-type'] ??= 'application/json';
114 114
         }
115 115
 
Please login to merge, or discard this patch.