| Conditions | 1 |
| Paths | 1 |
| Total Lines | 33 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function hydratorsDataProvider(): array |
||
| 52 | { |
||
| 53 | $a1 = new A(); |
||
| 54 | $a1->a = 10; |
||
| 55 | $b1 = new B(); |
||
| 56 | $b1->a = 15; |
||
| 57 | $b1->b = 'bar'; |
||
| 58 | $a1->b = $b1; |
||
| 59 | |||
| 60 | $a2 = new A(); |
||
| 61 | $a2->a = 14; |
||
| 62 | $a2->b = null; |
||
| 63 | |||
| 64 | return [ |
||
| 65 | [ |
||
| 66 | $a1, |
||
| 67 | [ |
||
| 68 | 'a' => 10, |
||
| 69 | 'b' => [ |
||
| 70 | 'a' => 15, |
||
| 71 | 'b' => 'bar' |
||
| 72 | ], |
||
| 73 | ], |
||
| 74 | ], |
||
| 75 | [ |
||
| 76 | $a2, |
||
| 77 | [ |
||
| 78 | 'a' => 14, |
||
| 79 | 'b' => null, |
||
| 80 | ], |
||
| 81 | ], |
||
| 82 | ]; |
||
| 83 | } |
||
| 84 | } |
||
| 85 |
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.