Passed
Push — master ( d1fc76...65cf75 )
by Çağrı
04:10 queued 01:47
created
src/Command/ReportCommand.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Strategy/StrategyCalculator.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.