Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | private function getNormalizedArgs($method, $args): array |
||
35 | { |
||
36 | $normalizer = resolve(RouteNormalizer::class); |
||
37 | $method = str_replace('whenYou', '', $method); |
||
38 | if ($method == 'CallAction') { |
||
39 | return $normalizer->normalizeAction($args); |
||
40 | } |
||
41 | if ($method == 'HitRouteName') { |
||
42 | return $args; |
||
43 | } |
||
44 | |||
45 | $method = str_replace('VisitUrl', 'SendGet', $method); |
||
46 | $method = str_replace('Send', '', $method); |
||
47 | |||
48 | return $normalizer->normalizeUrl($args, strtoupper($method)); |
||
49 | } |
||
51 |