| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | trait CustomControllerHelperTrait |
||
| 13 | { |
||
| 14 | 99 | use BaseControllerHelperTrait; |
|
| 15 | |||
| 16 | 99 | public function __construct() |
|
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | 99 | /** |
|
| 25 | * @param array<mixed> $request |
||
| 26 | 99 | * @param callable|Config $config |
|
| 27 | */ |
||
| 28 | final protected function createRequestParserFactory($request, $config): CustomRequestParserFactory |
||
| 29 | 18 | { |
|
| 30 | return new CustomRequestParserFactory($request, $config); |
||
| 31 | 18 | } |
|
| 32 | 18 | ||
| 33 | 18 | protected function tidyString(string $string): string |
|
| 34 | 18 | { |
|
| 35 | 18 | return trim( |
|
| 36 | 18 | str_replace( |
|
| 37 | 18 | ['<', '>', '>', '<'], |
|
| 38 | '', |
||
| 39 | strip_tags($string) |
||
| 40 | ) |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | |||
| 44 | protected function parameter(string $name): TypeParser |
||
| 51 | } |
||
| 52 | } |
||
| 53 |