@@ -35,7 +35,9 @@ |
||
35 | 35 | { |
36 | 36 | try { |
37 | 37 | $fs = new Filesystem(); |
38 | - if (!is_dir(__DIR__.'/../../reports')) $fs->mkdir(__DIR__.'/../../reports'); |
|
38 | + if (!is_dir(__DIR__.'/../../reports')) { |
|
39 | + $fs->mkdir(__DIR__.'/../../reports'); |
|
40 | + } |
|
39 | 41 | |
40 | 42 | $reportDate = $input->getOption("date") ? $input->getOption("date") : (new \DateTime())->format('Y-m-d'); |
41 | 43 |
@@ -73,9 +73,9 @@ |
||
73 | 73 | |
74 | 74 | if ($actionType->getType() == ActionInterface::TYPE_BUY) { |
75 | 75 | $action = new BuyAction(); |
76 | - }elseif ($actionType->getType() == ActionInterface::TYPE_SELL) { |
|
76 | + } elseif ($actionType->getType() == ActionInterface::TYPE_SELL) { |
|
77 | 77 | $action = new SellAction(); |
78 | - }elseif ($actionType->getType() == ActionInterface::TYPE_IDLE) { |
|
78 | + } elseif ($actionType->getType() == ActionInterface::TYPE_IDLE) { |
|
79 | 79 | $action = new IdleAction(); |
80 | 80 | } |
81 | 81 |