Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function _before(ApiTester $I) |
||
|
|||
18 | { |
||
19 | $user = $I->grabEntityFromRepository(User::class, ['id' => $I->getCurrentUserId()]); |
||
20 | $I->haveInRepository(History::class, [ |
||
21 | 'user' => $user, |
||
22 | 'owner' => $user, |
||
23 | 'resource' => 'awesome_sauce', |
||
24 | 'changeAction' => HistoryManagement::ACTION_REMOVE, |
||
25 | 'at' => new \DateTime(), |
||
26 | ]); |
||
27 | } |
||
28 | |||
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.