| Conditions | 4 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 2 | public function pass(Property $stmt, Context $context) |
|
| 20 | { |
||
| 21 | 2 | if (!$stmt->isPrivate() && !$stmt->isProtected() && ($stmt->type & Class_::MODIFIER_PUBLIC) === 0) { |
|
| 22 | 1 | $context->notice( |
|
| 23 | 1 | 'property.var', |
|
| 24 | 1 | 'Class property was defined with the deprecated var keyword. Use a visibility modifier instead', |
|
| 25 | $stmt |
||
| 26 | 1 | ); |
|
| 27 | 1 | return true; |
|
| 28 | } |
||
| 29 | 2 | return false; |
|
| 30 | } |
||
| 31 | |||
| 55 |