Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function testRedeemCoupon() |
||
31 | { |
||
32 | $actualCouponData = static::$xsollaClient->RedeemCoupon([ |
||
33 | 'project_id' => static::$projectId, |
||
34 | 'code' => getenv('COUPON_CODE'), |
||
35 | 'request' => [ |
||
36 | 'user_id' => static::$userId, |
||
37 | ], |
||
38 | ]); |
||
39 | static::assertInternalType('array', $actualCouponData); |
||
40 | } |
||
41 | } |
||
42 |
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.