| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function pass(Scalar\LNumber $lNum, Context $context) |
||
| 20 | { |
||
| 21 | error_log('*************************'); |
||
| 22 | var_dump($lNum->getAttribute('kind')); |
||
|
|
|||
| 23 | if ($lNum->getAttribute('kind') != Scalar\LNumber::KIND_DEC) { |
||
| 24 | $context->notice( |
||
| 25 | 'l_number_kind', |
||
| 26 | 'Avoid using octal, hexadecimal or binary', |
||
| 27 | $lNum |
||
| 28 | ); |
||
| 29 | return true; |
||
| 30 | } |
||
| 31 | |||
| 32 | return true; |
||
| 33 | } |
||
| 34 | |||
| 45 |