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