Passed
Push — master ( 2d9b96...5b94d6 )
by Luiz Kim
12:41 queued 10:22
created
src/Entity/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1093,7 +1093,7 @@
 block discarded – undo
1093 1093
             return false;
1094 1094
 
1095 1095
         return $currentUser->getPeople()->getLink()->exists(
1096
-            function ($key, $element) use ($provider) {
1096
+            function($key, $element) use ($provider) {
1097 1097
                 return $element->getCompany() === $provider;
1098 1098
             }
1099 1099
         );
Please login to merge, or discard this patch.
src/Service/OrderService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         RequestStack $requestStack
22 22
 
23 23
     ) {
24
-        $this->request  = $requestStack->getCurrentRequest();
24
+        $this->request = $requestStack->getCurrentRequest();
25 25
     }
26 26
 
27 27
     public function calculateOrderPrice(Order $order)
Please login to merge, or discard this patch.
src/Service/OrderProductService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
         foreach ($subProducts as $subproduct) {
68 68
             $product = $this->manager->getRepository(Product::class)->find($subproduct['product']);
69
-            $productGroup =  $this->manager->getRepository(ProductGroup::class)->find($subproduct['productGroup']);
69
+            $productGroup = $this->manager->getRepository(ProductGroup::class)->find($subproduct['productGroup']);
70 70
             $this->addSubproduct($orderProduct, $product, $productGroup, $subproduct['quantity']);
71 71
         }
72 72
         $this->orderProductQueueService->addProductToQueue($orderProduct);
Please login to merge, or discard this patch.
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.