Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function __invoke($url): object |
||
24 | { |
||
25 | if (! $urlRewrite = $this->repository->getByRequestPath($url)) { |
||
26 | abort(404); |
||
27 | } |
||
28 | |||
29 | if ($urlRewrite->isForward()) { |
||
30 | return $this->forwardResponse($urlRewrite->target_path); |
||
31 | } |
||
32 | |||
33 | return redirect($urlRewrite->target_path, $urlRewrite->getRedirectType()); |
||
34 | } |
||
35 | |||
46 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.