Conditions | 1 |
Paths | 1 |
Total Lines | 30 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function getRequests(): array |
||
30 | { |
||
31 | $body = new A(); |
||
32 | $body->a = 'baz'; |
||
33 | $body->b = 'bar'; |
||
34 | |||
35 | $collection = new \ArrayObject([1, 2, 3]); |
||
36 | return [ |
||
37 | [ |
||
38 | (new ServerRequest())->withParsedBody(null), |
||
39 | [], |
||
40 | ], |
||
41 | [ |
||
42 | (new ServerRequest())->withParsedBody([]), |
||
43 | [], |
||
44 | ], |
||
45 | [ |
||
46 | (new ServerRequest())->withParsedBody($body), |
||
47 | ['a' => 'baz', 'b' => 'bar'], |
||
48 | ], |
||
49 | [ |
||
50 | (new ServerRequest())->withParsedBody($collection), |
||
51 | [1, 2, 3], |
||
52 | ], |
||
53 | [ |
||
54 | (new ServerRequest())->withParsedBody(['zzz' => 'aaa']), |
||
55 | ['zzz' => 'aaa'], |
||
56 | ], |
||
57 | ]; |
||
58 | } |
||
59 | } |
||
60 |
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.