Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | public function preferences($managerId = null) |
||
17 | { |
||
18 | $employerId = $this->getCurrentUserDataId('employer'); |
||
|
|||
19 | $managerId = $managerId ?: $this->getCurrentUserDataId('manager'); |
||
20 | |||
21 | $uri = str_replace( |
||
22 | ['{employer_id}', '{manager_id}'], |
||
23 | [$employerId, $managerId], |
||
24 | '{employer_id}/managers/{manager_id}/settings' |
||
25 | ); |
||
26 | |||
27 | return $this->getResource($uri); |
||
28 | } |
||
29 | |||
56 | } |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.