Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
102 | 2 | public function calculateCharges(ActionInterface $action) |
|
103 | { |
||
104 | 2 | $charges = []; |
|
105 | 2 | foreach ($this->prices as $price) { |
|
106 | 2 | $charge = $action->calculateCharge($price); |
|
107 | 2 | if ($charge !== null) { |
|
108 | 2 | $charges[] = $charge; |
|
109 | } |
||
110 | } |
||
111 | |||
112 | 2 | return $charges; |
|
113 | } |
||
114 | |||
120 |