Total Complexity | 8 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | class GameRepository extends Repository |
||
10 | { |
||
11 | public function __construct(Game $game) |
||
12 | { |
||
13 | $this->model = $game; |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * @param int $perPage |
||
18 | * @return mixed |
||
19 | */ |
||
20 | public function getAll($perPage = 20) |
||
21 | { |
||
22 | return Game::orderBy('name')->paginate($perPage); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param string|array $with |
||
27 | * @param int $perPage |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function allWith($with, $perPage = 50) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Upgrade Games and Game Mods using GameAP API |
||
37 | */ |
||
38 | public function upgradeFromRepo() |
||
67 |
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.