Completed
Push — master ( 3d32fe...b559d6 )
by Fabian
12s queued 10s
created
src/Sales/OrderBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
         // create products
104 104
         $products = array_map(
105
-            static function (ProductBuilder $productBuilder) {
105
+            static function(ProductBuilder $productBuilder) {
106 106
                 return $productBuilder->build();
107 107
             },
108 108
             $builder->productBuilders
Please login to merge, or discard this patch.
src/Sales/OrderFixtureRollback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             $this->customerRepository->deleteById($orderFixture->getCustomerId());
78 78
             array_walk(
79 79
                 $orderItems,
80
-                function (OrderItemInterface $orderItem) {
80
+                function(OrderItemInterface $orderItem) {
81 81
                     $this->productRepository->deleteById($orderItem->getSku());
82 82
                 }
83 83
             );
Please login to merge, or discard this patch.
src/Catalog/ProductBuilder.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,9 +114,9 @@
 block discarded – undo
114 114
         /** @var StockItemInterface $stockItem */
115 115
         $stockItem = $objectManager->create(StockItemInterface::class);
116 116
         $stockItem->setManageStock(true)
117
-                  ->setQty(100)
118
-                  ->setIsQtyDecimal(false)
119
-                  ->setIsInStock(true);
117
+                    ->setQty(100)
118
+                    ->setIsQtyDecimal(false)
119
+                    ->setIsInStock(true);
120 120
         $product->setExtensionAttributes(
121 121
             $product->getExtensionAttributes()->setStockItem($stockItem)
122 122
         );
Please login to merge, or discard this patch.
src/Customer/AddressBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     public function withStreet(string $street): AddressBuilder
110 110
     {
111 111
         $builder = clone $this;
112
-        $builder->address->setStreet((array)$street);
112
+        $builder->address->setStreet((array) $street);
113 113
         return $builder;
114 114
     }
115 115
 
Please login to merge, or discard this patch.
src/Sales/ShipmentBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,8 +130,8 @@
 block discarded – undo
130 130
     private function buildTracks(): array
131 131
     {
132 132
         return array_map(
133
-            function (string $trackingNumber): ShipmentTrackCreationInterface {
134
-                $carrierCode = strtok((string)$this->order->getShippingMethod(), '_');
133
+            function(string $trackingNumber): ShipmentTrackCreationInterface {
134
+                $carrierCode = strtok((string) $this->order->getShippingMethod(), '_');
135 135
                 $track = $this->trackFactory->create();
136 136
                 $track->setCarrierCode($carrierCode);
137 137
                 $track->setTitle($carrierCode);
Please login to merge, or discard this patch.
src/Customer/CustomerBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             $builder->customer->setEmail(sha1(uniqid('', true)) . '@example.com');
198 198
         }
199 199
         $addresses = array_map(
200
-            function (AddressBuilder $addressBuilder) {
200
+            function(AddressBuilder $addressBuilder) {
201 201
                 return $addressBuilder->buildWithoutSave();
202 202
             },
203 203
             $builder->addressBuilders
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
          * Magento automatically sets random confirmation key for new account with password.
209 209
          * We need to save again with our own confirmation (null for confirmed customer)
210 210
          */
211
-        $customer->setConfirmation((string)$builder->customer->getConfirmation());
211
+        $customer->setConfirmation((string) $builder->customer->getConfirmation());
212 212
         return $builder->customerRepository->save($customer);
213 213
     }
214 214
 
Please login to merge, or discard this patch.
src/Customer/CustomerFixture.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
     public function getAllAddressIds(): array
58 58
     {
59 59
         return array_map(
60
-            function (AddressInterface $address): int {
61
-                return (int)$address->getId();
60
+            function(AddressInterface $address): int {
61
+                return (int) $address->getId();
62 62
             },
63
-            (array)$this->customer->getAddresses()
63
+            (array) $this->customer->getAddresses()
64 64
         );
65 65
     }
66 66
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function getConfirmation(): string
73 73
     {
74
-        return (string)$this->customer->getConfirmation();
74
+        return (string) $this->customer->getConfirmation();
75 75
     }
76 76
 
77 77
     public function getEmail(): string
Please login to merge, or discard this patch.
src/Sales/CreditmemoBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         // refund items must be explicitly set
87 87
         if (empty($this->orderItems)) {
88 88
             foreach ($this->order->getItems() as $item) {
89
-                $this->orderItems[$item->getItemId()] = (float)$item->getQtyOrdered();
89
+                $this->orderItems[$item->getItemId()] = (float) $item->getQtyOrdered();
90 90
             }
91 91
         }
92 92
 
Please login to merge, or discard this patch.
src/Sales/OrderFixture.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $qtys = [];
43 43
         foreach ($this->order->getItems() as $item) {
44
-            $qtys[$item->getItemId()] = (float)$item->getQtyOrdered();
44
+            $qtys[$item->getItemId()] = (float) $item->getQtyOrdered();
45 45
         }
46 46
 
47 47
         return $qtys;
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
         if ($payment === null) {
54 54
             throw new \RuntimeException('Order does not have any payment information');
55 55
         }
56
-        return (string)$payment->getMethod();
56
+        return (string) $payment->getMethod();
57 57
     }
58 58
 
59 59
     public function getShippingMethod(): string
60 60
     {
61
-        return (string)$this->order->getShippingMethod();
61
+        return (string) $this->order->getShippingMethod();
62 62
     }
63 63
 
64 64
     public function rollback(): void
Please login to merge, or discard this patch.