@@ -37,12 +37,12 @@ |
||
37 | 37 | |
38 | 38 | if ($amount === '*') { |
39 | 39 | $percentageCtxt->setAmount(floatval($billableAmount)) |
40 | - ->setStructure($matches[1] . ', 1 - * '); |
|
40 | + ->setStructure($matches[1] . ', 1 - * '); |
|
41 | 41 | $bill += $percentageBillInterpreter->interpret($percentageCtxt); |
42 | 42 | } else { |
43 | 43 | $billableAmount -= $amount; |
44 | 44 | $percentageCtxt->setAmount($amount) |
45 | - ->setStructure($matches[1] . ', 1 - * '); |
|
45 | + ->setStructure($matches[1] . ', 1 - * '); |
|
46 | 46 | $bill += $percentageBillInterpreter->interpret($percentageCtxt); |
47 | 47 | } |
48 | 48 | } |
@@ -23,8 +23,8 @@ |
||
23 | 23 | use RangeValidityCheck; |
24 | 24 | |
25 | 25 | private const EXPRESSION = Expr::POSITIVE_NUMBER . |
26 | - Expr::COMMA . |
|
27 | - Expr::RANGE; |
|
26 | + Expr::COMMA . |
|
27 | + Expr::RANGE; |
|
28 | 28 | |
29 | 29 | public function __construct() |
30 | 30 | { |
@@ -23,8 +23,8 @@ |
||
23 | 23 | use RangeValidityCheck; |
24 | 24 | |
25 | 25 | private const EXPRESSION = Expr::PERCENT . |
26 | - Expr::COMMA . |
|
27 | - Expr::RANGE; |
|
26 | + Expr::COMMA . |
|
27 | + Expr::RANGE; |
|
28 | 28 | |
29 | 29 | public function __construct() |
30 | 30 | { |