Total Complexity | 6 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | class JudgerRequest extends Request |
||
10 | { |
||
11 | private $judger; |
||
12 | |||
13 | public function getJudger() |
||
14 | { |
||
15 | if (!$this->judger) { |
||
16 | $this->judger = app(JudgerService::class)->find($this->getJudgeId()); |
||
17 | } |
||
18 | |||
19 | return $this->judger; |
||
20 | } |
||
21 | |||
22 | public function getJudgeId() |
||
23 | { |
||
24 | return $this->header('Judge-Id'); |
||
25 | } |
||
26 | |||
27 | public function getToken() |
||
28 | { |
||
29 | return $this->header('Token'); |
||
30 | } |
||
31 | |||
32 | public function validate() |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 |
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.