| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| 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 | 'success' => true, |
||
| 18 | 'data' => [ |
||
| 19 | 'user' => [ |
||
| 20 | 'email' => '[email protected]', |
||
| 21 | ] |
||
| 22 | ] |
||
| 23 | ]); |
||
| 24 | } |
||
| 25 | |||
| 40 |
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.