@@ -159,7 +159,7 @@ |
||
| 159 | 159 | $registry->add(App::class, $this); |
| 160 | 160 | |
| 161 | 161 | $registry->add(Factory::class, \Conia\Chuck\Http\Nyholm::class); |
| 162 | - $registry->add(Response::class, function (Registry $registry): Response { |
|
| 162 | + $registry->add(Response::class, function(Registry $registry): Response { |
|
| 163 | 163 | $factory = $registry->get(Factory::class); |
| 164 | 164 | assert($factory instanceof Factory); |
| 165 | 165 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | use Attribute; |
| 8 | 8 | use Conia\Chuck\Exception\RuntimeException; |
| 9 | 9 | |
| 10 | -#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD)] |
|
| 10 | +#[Attribute(Attribute::IS_REPEATABLE|Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD)] |
|
| 11 | 11 | class Inject |
| 12 | 12 | { |
| 13 | 13 | public array $args; |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | use Attribute; |
| 8 | 8 | use Conia\Chuck\Exception\RuntimeException; |
| 9 | 9 | |
| 10 | -#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS)] |
|
| 10 | +#[Attribute(Attribute::IS_REPEATABLE|Attribute::TARGET_CLASS)] |
|
| 11 | 11 | class Call |
| 12 | 12 | { |
| 13 | 13 | public array $args; |
@@ -65,8 +65,7 @@ |
||
| 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 | } |