Passed
Push — master ( 31f09d...721b41 )
by Luiz Kim
02:25
created
src/Controller/PrintOrderAction.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
         }
43 43
 
44 44
         if ($printType === 'pos') {
45
-            $text = "PEDIDO #" . $order->getId() . "\n";
46
-            $text .= "Data: " . $order->getOrderDate()->format('d/m/Y H:i') . "\n";
45
+            $text = "PEDIDO #".$order->getId()."\n";
46
+            $text .= "Data: ".$order->getOrderDate()->format('d/m/Y H:i')."\n";
47 47
 
48 48
             // Correção: Verificar explicitamente se getClient() é null
49 49
             $client = $order->getClient();
50
-            $text .= "Cliente: " . ($client !== null ? $client->getName() : 'Não informado') . "\n";
50
+            $text .= "Cliente: ".($client !== null ? $client->getName() : 'Não informado')."\n";
51 51
 
52
-            $text .= "Total: R$ " . number_format($order->getPrice(), 2, ',', '.') . "\n";
52
+            $text .= "Total: R$ ".number_format($order->getPrice(), 2, ',', '.')."\n";
53 53
             $text .= "------------------------\n";
54 54
 
55 55
             // Agrupar produtos por fila diretamente
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
 
66 66
             // Exibir produtos organizados por fila
67 67
             foreach ($queues as $queueName => $products) {
68
-                $text .= strtoupper($queueName) . ":\n";
68
+                $text .= strtoupper($queueName).":\n";
69 69
                 foreach ($products as $orderProduct) {
70 70
                     $product = $orderProduct->getProduct();
71 71
                     $unit = $product->getProductUnit()->getProductUnit();
72 72
                     $quantity = $orderProduct->getQuantity();
73 73
 
74
-                    $text .= "- " . $product->getProduct() . " (" . $quantity . " " . $unit . ")\n";
75
-                    $text .= "  R$ " . number_format($product->getPrice() * $quantity, 2, ',', '.') . "\n";
74
+                    $text .= "- ".$product->getProduct()." (".$quantity." ".$unit.")\n";
75
+                    $text .= "  R$ ".number_format($product->getPrice() * $quantity, 2, ',', '.')."\n";
76 76
 
77 77
                     // Verifica se o produto é customizado
78 78
                     if ($product->getType() === 'custom') {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                         foreach ($productGroupProducts as $pgp) {
84 84
                             $childProduct = $pgp->getProductChild();
85 85
                             if ($childProduct) {
86
-                                $text .= "    - " . $childProduct->getProduct() . " (" . $pgp->getQuantity() . " " . $childProduct->getProductUnit()->getProductUnit() . ")\n";
86
+                                $text .= "    - ".$childProduct->getProduct()." (".$pgp->getQuantity()." ".$childProduct->getProductUnit()->getProductUnit().")\n";
87 87
                             }
88 88
                         }
89 89
                     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             }
93 93
 
94 94
             $text .= "------------------------\n";
95
-            $text .= "Status: " . $order->getStatus()->getStatus() . "\n";
95
+            $text .= "Status: ".$order->getStatus()->getStatus()."\n";
96 96
 
97 97
             return $text;
98 98
         }
Please login to merge, or discard this patch.