| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 2 | public function pass(Expr\Array_ $expr, Context $context) |
|
| 20 | { |
||
| 21 | 2 | if ($expr->getAttribute('kind') == Expr\Array_::KIND_LONG) { |
|
| 22 | 1 | $context->notice( |
|
| 23 | 1 | 'array.short-syntax', |
|
| 24 | 1 | 'Please use [] (short syntax) for array definition.', |
|
| 25 | 1 | $expr |
|
| 26 | 1 | ); |
|
| 27 | |||
| 28 | 1 | return true; |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | return false; |
|
| 32 | } |
||
| 33 | } |
||
| 34 |