| 1 | <?php |
||
| 20 | class Devices |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * DeviceFactory. |
||
| 24 | * |
||
| 25 | * @var DeviceFactory |
||
| 26 | */ |
||
| 27 | protected $device_factory; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * CreationChallengeFactory. |
||
| 31 | * |
||
| 32 | * @var CreationChallengeFactory |
||
| 33 | */ |
||
| 34 | protected $creation_challenge_factory; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Server. |
||
| 38 | * |
||
| 39 | * @var Server |
||
| 40 | */ |
||
| 41 | protected $server; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Initialize. |
||
| 45 | */ |
||
| 46 | public function __construct(DeviceFactory $device_factory, CreationChallengeFactory $creation_challenge_factory, Server $server) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Devices endpoint. |
||
| 55 | */ |
||
| 56 | public function post(string $id, string $type, string $rawId, array $response, ObjectId $challenge): Response |
||
| 69 | } |
||
| 70 |
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.