| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 5 |
| Ratio | 55.56 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 12 | public function execute(OrderDetailCollection $OrderDetails) |
|
| 21 | { |
||
| 22 | // map でやりたい |
||
| 23 | 12 | View Code Duplication | foreach ($OrderDetails as $OrderDetail) { |
| 24 | 12 | $tax = $this->app['eccube.service.tax_rule'] |
|
| 25 | 12 | ->calcTax($OrderDetail->getPrice(), $OrderDetail->getTaxRate(), $OrderDetail->getTaxRule()); |
|
| 26 | 12 | $OrderDetail->setPriceIncTax($OrderDetail->getPrice() + $tax); |
|
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 42 |