1 | <?php |
||
14 | class PaymentsProxy |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @param \App\Ship\Features\Payment\Contracts\ChargeableInterface $object |
||
19 | * @param $amount |
||
20 | * @param $currency |
||
21 | * @param null $paymentMethod |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public function charge(ChargeableInterface $object, $amount, $currency, $paymentMethod = null) |
||
38 | |||
39 | /** |
||
40 | * @param $object |
||
41 | * |
||
42 | * @return null |
||
43 | */ |
||
44 | private function chargeWithStripe($object) |
||
48 | |||
49 | /** |
||
50 | * @param $object |
||
51 | * |
||
52 | * @return null |
||
53 | */ |
||
54 | private function chargeWithPaypal($object) |
||
58 | |||
59 | } |
||
60 |
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.