Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
27 | public function generate( |
||
28 | string $name, |
||
29 | array $parameters, |
||
30 | $absolute = false |
||
31 | ): string { |
||
32 | return $this->prefix . str_replace( |
||
33 | array_map(static function (string $parameter): string { |
||
34 | return '{' . $parameter . '}'; |
||
35 | }, array_keys($parameters)), |
||
36 | array_values($parameters), |
||
37 | self::ROUTES[$name] |
||
38 | ); |
||
41 |