Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
29 | View Code Duplication | public function down(Schema $schema) |
|
30 | { |
||
31 | $app = \Eccube\Application::getInstance(); |
||
32 | $em = $app["orm.em"]; |
||
33 | $DeliveryDate = $app['eccube.repository.delivery_date']->find(9); |
||
34 | if ($DeliveryDate->getValue() === -1) { |
||
35 | $DeliveryDate->setValue(0); |
||
36 | $em->flush($DeliveryDate); |
||
37 | } |
||
38 | } |
||
39 | } |
||
40 |