Passed
Push — master ( 348a77...80c788 )
by Luiz Kim
22:43 queued 20:36
created
src/Command/LogisticCommand.php 1 patch
Braces   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -72,8 +72,9 @@  discard block
 block discarded – undo
72 72
       $orderLimit = $input->getArgument('limit') ?: 100;
73 73
 
74 74
       $getOrders  = 'get' . str_replace('_', '', ucwords(strtolower($targetName), '_')) . 'Orders';
75
-      if (method_exists($this, $getOrders) === false)
76
-        throw new \Exception(sprintf('Notification target "%s" is not defined', $targetName));
75
+      if (method_exists($this, $getOrders) === false) {
76
+              throw new \Exception(sprintf('Notification target "%s" is not defined', $targetName));
77
+      }
77 78
 
78 79
       $this->output->writeln([
79 80
         '',
@@ -104,8 +105,9 @@  discard block
 block discarded – undo
104 105
 
105 106
           $this->output->writeln(['']);
106 107
         }
107
-      } else
108
-        $this->output->writeln('      There is no pending orders.');
108
+      } else {
109
+              $this->output->writeln('      There is no pending orders.');
110
+      }
109 111
 
110 112
       $this->output->writeln([
111 113
         '',
@@ -142,9 +144,9 @@  discard block
 block discarded – undo
142 144
     $OrderLogistic = $qry->getResult();
143 145
 
144 146
 
145
-    if (count($OrderLogistic) == 0)
146
-      return null;
147
-    else {
147
+    if (count($OrderLogistic) == 0) {
148
+          return null;
149
+    } else {
148 150
       foreach ($OrderLogistic as $logistic) {
149 151
         $order = $logistic->getOrder();
150 152
         $orders[] = (object) [
Please login to merge, or discard this patch.