| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | protected function makeComparativeUrl($currentUrl) |
||
| 10 | { |
||
| 11 | $mock = $this->createMock(UrlGenerator::class); |
||
|
|
|||
| 12 | $mock->method('current')->willReturn(url($currentUrl)); |
||
| 13 | $mock->method('to')->willReturnCallback('url'); |
||
| 14 | |||
| 15 | return new ComparativeUrl($mock, config('menu.skippedPaths')); |
||
| 16 | } |
||
| 17 | |||
| 41 | } |
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.