| Conditions | 4 |
| Paths | 6 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | protected function checkData(string $routePath, string $uriPath): void |
||
| 18 | { |
||
| 19 | $routePath = explode('/',urldecode($routePath)); |
||
| 20 | unset($routePath[0]); |
||
| 21 | $uriPath = explode('/',urldecode($uriPath)); |
||
| 22 | unset($uriPath[0]); |
||
| 23 | |||
| 24 | $this->checkCount($routePath, $uriPath); |
||
| 25 | |||
| 26 | $corretRoute = true; |
||
| 27 | foreach($routePath as $r => $routeFrag){ |
||
| 28 | $routeFrag = $this->replaceParam($routeFrag, $uriPath[$r]); |
||
| 29 | |||
| 30 | if($routeFrag !== $uriPath[$r]){ |
||
| 31 | $corretRoute = false; |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | if(!$corretRoute){ |
||
| 36 | throw new \Exception('continue'); |
||
| 37 | } |
||
| 56 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.