@@ -9,7 +9,7 @@ |
||
9 | 9 | const COMMA = self::SPACES . ',' . self::SPACES; |
10 | 10 | const PIPE = self::SPACES . '\|' . self::SPACES; |
11 | 11 | const NUMBER = '(-?\d*\.?\d+)'; |
12 | - const NUMBER_OR_PERCENT = '('. self::NUMBER . '%?)'; //'((-?\d*\.?\d+)%?)'; |
|
12 | + const NUMBER_OR_PERCENT = '(' . self::NUMBER . '%?)'; //'((-?\d*\.?\d+)%?)'; |
|
13 | 13 | const PERCENT = self::NUMBER . '%'; |
14 | 14 | const POSITIVE_NUMBER = '(\d*\.?\d+)'; |
15 | 15 | const POSITIVE_NUMBER_OR_ASTERISK = '(\d*\.?\d+|\*)'; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $amount = $context->getAmount(); |
44 | 44 | |
45 | 45 | if (RangeHelper::isInRange($range, $amount)) { |
46 | - $bill = ($matches[1] * $amount)/ 100.00; |
|
46 | + $bill = ($matches[1] * $amount) / 100.00; |
|
47 | 47 | break; |
48 | 48 | } |
49 | 49 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | final class SteppedBillInterpreter extends AbstractBillInterpreter |
17 | 17 | { |
18 | - private const EXPRESSION = Expr::POSITIVE_NUMBER . |
|
18 | + private const EXPRESSION = Expr::POSITIVE_NUMBER . |
|
19 | 19 | Expr::COMMA . |
20 | 20 | Expr::POSITIVE_NUMBER . |
21 | 21 | '\+'; |