Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function testCreateCoupon() |
||
11 | { |
||
12 | $response = static::$xsollaClient->CreateCoupon([ |
||
|
|||
13 | 'campaign_id' => (int) getenv('CAMPAIGN_ID'), |
||
14 | 'request' => [ |
||
15 | 'coupon_code' => uniqid('sdk_coupon_', false), |
||
16 | ], |
||
17 | ]); |
||
18 | static::assertSame(204, $response->getStatusCode()); |
||
19 | } |
||
20 | |||
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.