Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function getUser(ApiTester $I) |
||
|
|||
11 | { |
||
12 | $I->wantTo('get user'); |
||
13 | $I->haveHttpHeader('Content-Type', 'application/json'); |
||
14 | $I->sendGET('/user/1'); |
||
15 | $I->seeResponseCodeIs(HttpCode::OK); |
||
16 | $I->seeResponseContainsJson([ |
||
17 | 'data' => [ |
||
18 | 'user' => [ |
||
19 | 'email' => '[email protected]', |
||
20 | ] |
||
21 | ] |
||
22 | ]); |
||
23 | } |
||
24 | |||
38 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.