Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
26 | public function pass(Expr\Array_ $expr, Context $context) |
||
27 | 2 | { |
|
28 | if ($expr->getAttribute('kind') == Expr\Array_::KIND_LONG) { |
||
29 | 2 | $context->notice( |
|
30 | 'array.short-syntax', |
||
31 | 'Please use [] (short syntax) for array definition.', |
||
32 | 39 | $expr |
|
33 | ); |
||
34 | |||
35 | return true; |
||
36 | } |
||
37 | |||
38 | 1 | return false; |
|
39 | } |
||
40 | |||
62 |