Passed
Push — master ( 2d9b96...5b94d6 )
by Luiz Kim
12:41 queued 10:22
created
src/Controller/PrintOrderAction.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
         }
42 42
 
43 43
         if ($printType === 'pos') {
44
-            $text = "   PEDIDO #" . $order->getId() . "\n";
45
-            $text .= "   Data: " . $order->getOrderDate()->format('d/m/Y H:i') . "\n";
44
+            $text = "   PEDIDO #".$order->getId()."\n";
45
+            $text .= "   Data: ".$order->getOrderDate()->format('d/m/Y H:i')."\n";
46 46
             $client = $order->getClient();
47
-            $text .= "   Cliente: " . ($client !== null ? $client->getName() : 'Não informado') . "\n";
48
-            $text .= "   Total: R$ " . number_format($order->getPrice(), 2, ',', '.') . "\n";
47
+            $text .= "   Cliente: ".($client !== null ? $client->getName() : 'Não informado')."\n";
48
+            $text .= "   Total: R$ ".number_format($order->getPrice(), 2, ',', '.')."\n";
49 49
             $text .= "   ------------------------\n";
50 50
 
51 51
             $queues = [];
@@ -72,15 +72,15 @@  discard block
 block discarded – undo
72 72
             }
73 73
 
74 74
             foreach ($queues as $queueName => $products) {
75
-                $text .= strtoupper($queueName) . ":\n";
75
+                $text .= strtoupper($queueName).":\n";
76 76
                 foreach ($products as $orderProduct) {
77 77
                     $product = $orderProduct->getProduct();
78 78
                     $unit = $product->getProductUnit()->getProductUnit();
79 79
                     $quantity = $orderProduct->getQuantity();
80 80
 
81
-                    $text .= "   - " . $product->getProduct() . " (" . $quantity . " " . $unit . ")\n";
81
+                    $text .= "   - ".$product->getProduct()." (".$quantity." ".$unit.")\n";
82 82
                     $text .= "   ..............";
83
-                    $text .= "     R$ " . number_format($product->getPrice() * $quantity, 2, ',', '.') . "\n";
83
+                    $text .= "     R$ ".number_format($product->getPrice() * $quantity, 2, ',', '.')."\n";
84 84
 
85 85
                     if ($product->getType() === 'custom') {
86 86
                         $text .= "     Personalizações:\n";
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                         foreach ($productGroupProducts as $pgp) {
91 91
                             $childProduct = $pgp->getProductChild();
92 92
                             if ($childProduct) {
93
-                                $text .= "       - " . $childProduct->getProduct() . " (" . $pgp->getQuantity() . " " . $childProduct->getProductUnit()->getProductUnit() . ")\n";
93
+                                $text .= "       - ".$childProduct->getProduct()." (".$pgp->getQuantity()." ".$childProduct->getProductUnit()->getProductUnit().")\n";
94 94
                             }
95 95
                         }
96 96
                     }
Please login to merge, or discard this patch.