| Conditions | 6 |
| Paths | 5 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function handle404($data, string $type = 'db', array $page = []): void |
||
| 14 | { |
||
| 15 | if ($type == 'db') { |
||
| 16 | if (count($data) < 1 || !$data) { |
||
| 17 | throw new RouterException('404'); |
||
| 18 | } |
||
| 19 | } elseif ($type == 'pagination') { |
||
| 20 | if ($page['id'] > count($data)) { |
||
| 21 | throw new RouterException('404'); |
||
| 22 | } |
||
| 51 |
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.