Passed
Push — main ( a1a461...2097df )
by Thomas
12:50
created
src/Registry.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
         }
66 66
 
67 67
         $message = empty($this->tag) ?
68
-            'Unresolvable id: ' . $id :
69
-            'Unresolvable tagged id: ' . $this->tag . '::' . $id;
68
+            'Unresolvable id: ' . $id : 'Unresolvable tagged id: ' . $this->tag . '::' . $id;
70 69
 
71 70
         throw new NotFoundException($message);
72 71
     }
Please login to merge, or discard this patch.
src/App.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
         $registry->add($router::class, $router);
182 182
 
183 183
         $registry->add(Factory::class, \Conia\Chuck\Psr\Nyholm::class);
184
-        $registry->add(Response::class, function (Registry $registry): Response {
184
+        $registry->add(Response::class, function(Registry $registry): Response {
185 185
             $factory = $registry->get(Factory::class);
186 186
             assert($factory instanceof Factory);
187 187
 
Please login to merge, or discard this patch.
src/ResponseFactory.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
         mixed $data,
75 75
         int $code = 200,
76 76
         string $reasonPhrase = '',
77
-        int $flags = JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR,
77
+        int $flags = JSON_UNESCAPED_SLASHES|JSON_THROW_ON_ERROR,
78 78
     ): Response {
79 79
         $psrResponse = $this->createPsrResponse($code, $reasonPhrase)->withAddedHeader(
80 80
             'Content-Type',
Please login to merge, or discard this patch.
src/Renderer/JsonErrorRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
             $json['traceback'] = $data->traceback;
26 26
         }
27 27
 
28
-        return json_encode($json, JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR);
28
+        return json_encode($json, JSON_UNESCAPED_SLASHES|JSON_THROW_ON_ERROR);
29 29
     }
30 30
 
31 31
     public function response(mixed $data, mixed ...$args): Response
Please login to merge, or discard this patch.
src/Renderer/JsonRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     public function render(mixed $data, mixed ...$args): string
18 18
     {
19
-        $flags = JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR;
19
+        $flags = JSON_UNESCAPED_SLASHES|JSON_THROW_ON_ERROR;
20 20
 
21 21
         if (count($args) > 0) {
22 22
             /** @var mixed */
Please login to merge, or discard this patch.