Test Setup Failed
Push — master ( 6d5f74...30c942 )
by
unknown
03:41
created
src/Oro/Bundle/CheckoutBundle/Datagrid/CheckoutGridListener.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
             [self::USER_CURRENCY_PARAMETER]
91 91
         );
92 92
         $event->getDatagrid()
93
-              ->getParameters()
94
-              ->set(self::USER_CURRENCY_PARAMETER, $this->currencyManager->getUserCurrency());
93
+                ->getParameters()
94
+                ->set(self::USER_CURRENCY_PARAMETER, $this->currencyManager->getUserCurrency());
95 95
     }
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
     protected function buildColumns(array $records)
129 129
     {
130 130
         $ids = array_map(
131
-            function (ResultRecord $record) {
131
+            function(ResultRecord $record) {
132 132
                 return $record->getValue('id');
133 133
             },
134 134
             $records
Please login to merge, or discard this patch.
Tests/Unit/DataProvider/LineItem/CheckoutLineItemsDataProviderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
     public function isEntitySupportedProvider()
57 57
     {
58 58
         return [
59
-            ['expected' => false, 'data' => new \stdClass(),],
60
-            ['expected' => true, 'entity' => new Checkout(),],
59
+            ['expected' => false, 'data' => new \stdClass(), ],
60
+            ['expected' => true, 'entity' => new Checkout(), ],
61 61
         ];
62 62
     }
63 63
 
Please login to merge, or discard this patch.
Tests/Unit/DataProvider/Manager/CheckoutLineItemsManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         $this->checkoutLineItemsConverter->expects($this->any())
57 57
             ->method('convert')
58
-            ->will($this->returnCallback(function ($data) {
58
+            ->will($this->returnCallback(function($data) {
59 59
                 $result = new ArrayCollection();
60 60
                 foreach ($data as $productData) {
61 61
                     $result->add($this->getEntity('Oro\Bundle\OrderBundle\Entity\OrderLineItem', $productData));
Please login to merge, or discard this patch.
src/Oro/Bundle/CheckoutBundle/Tests/Unit/Acl/Voter/CheckoutVoterTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $container = $this->createMock(ContainerInterface::class);
48 48
         $container->expects($this->any())
49 49
             ->method('get')
50
-            ->willReturnCallback(function ($id) use ($services) {
50
+            ->willReturnCallback(function($id) use ($services) {
51 51
                 return $services[$id];
52 52
             });
53 53
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     {
135 135
         $this->authorizationChecker->expects($this->any())
136 136
             ->method('isGranted')
137
-            ->willReturnCallback(function ($attribute) use ($inputData) {
137
+            ->willReturnCallback(function($attribute) use ($inputData) {
138 138
                 if ($attribute === $inputData['isGrantedAttr']) {
139 139
                     return $inputData['isGranted'];
140 140
                 }
Please login to merge, or discard this patch.
Bundle/CheckoutBundle/Tests/Unit/Provider/CheckoutSubtotalProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $this->roundingService->expects($this->any())
47 47
             ->method('round')
48 48
             ->willReturnCallback(
49
-                function ($value) {
49
+                function($value) {
50 50
                     return round($value);
51 51
                 }
52 52
             );
Please login to merge, or discard this patch.
CheckoutBundle/Tests/Unit/EventListener/AbstractMethodsListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         $this->contextFactory
175 175
             ->expects($this->exactly($expectedCalls))
176 176
             ->method('create')
177
-            ->with($this->callback(function (Checkout $checkout) {
177
+            ->with($this->callback(function(Checkout $checkout) {
178 178
                 $this->assertInstanceOf(OrderAddress::class, $this->getAddressToCheck($checkout));
179 179
 
180 180
                 return $checkout instanceof Checkout;
Please login to merge, or discard this patch.
Tests/Unit/EventListener/HasPriceInShoppingLineItemsListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             ->expects($this->once())
128 128
             ->method('getMatchedPrices')
129 129
             ->with(
130
-                $this->callback(function ($productsPricesCriteria) use ($lineItems) {
130
+                $this->callback(function($productsPricesCriteria) use ($lineItems) {
131 131
                     /** @var ProductPriceCriteria[] $productsPricesCriteria */
132 132
                     $this->assertCount(2, $productsPricesCriteria);
133 133
                     $this->assertEquals($lineItems[0]->getProduct(), $productsPricesCriteria[0]->getProduct());
Please login to merge, or discard this patch.
Oro/Bundle/CheckoutBundle/Tests/Unit/Datagrid/CheckoutGridListenerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         $checkouts = [];
158 158
 
159 159
         for ($i = 1; $i <= 10; $i++) {
160
-            $completed = (bool) ($i % 2);
160
+            $completed = (bool)($i % 2);
161 161
 
162 162
             $records[$i] = new ResultRecord(['id' => $i, 'completed' => $completed]);
163 163
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         $this->checkoutRepository->expects($this->any())
171 171
             ->method('find')
172 172
             ->willReturnCallback(
173
-                function ($id) use ($checkouts) {
173
+                function($id) use ($checkouts) {
174 174
                     return $checkouts[$id];
175 175
                 }
176 176
             );
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $this->listener->onResultAfter($event);
183 183
 
184 184
         foreach ($records as $key => $record) {
185
-            $completed = (bool) ($key % 2);
185
+            $completed = (bool)($key % 2);
186 186
 
187 187
             $this->assertEquals($completed ? 42 + $key : $key, $record->getValue('itemsCount'));
188 188
         }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         $this->entityNameResolver->expects($this->atLeastOnce())
220 220
             ->method('getName')
221 221
             ->willReturnCallback(
222
-                function ($entity) use ($shoppingList) {
222
+                function($entity) use ($shoppingList) {
223 223
                     if ($entity === $shoppingList) {
224 224
                         return $shoppingList->getLabel();
225 225
                     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         $this->doctrineHelper->expects($this->atLeastOnce())
232 232
             ->method('getSingleEntityIdentifier')
233 233
             ->willReturnCallback(
234
-                function ($entity) use ($shoppingList) {
234
+                function($entity) use ($shoppingList) {
235 235
                     if ($entity === $shoppingList) {
236 236
                         return $shoppingList->getId();
237 237
                     }
Please login to merge, or discard this patch.
Oro/Bundle/CheckoutBundle/Tests/Unit/Form/Type/CheckoutAddressTypeTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $this->orderAddressManager->expects($this->once())->method('updateFromAbstract')
94 94
             ->will(
95 95
                 $this->returnCallback(
96
-                    function (CustomerAddress $address = null, OrderAddress $orderAddress = null) {
96
+                    function(CustomerAddress $address = null, OrderAddress $orderAddress = null) {
97 97
                         $orderAddress
98 98
                             ->setCustomerAddress($address)
99 99
                             ->setLabel($address->getLabel())
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 )
110 110
             );
111 111
 
112
-        $formOptions =  [
112
+        $formOptions = [
113 113
             'addressType' => $addressType,
114 114
             'object' => $this->getEntity(),
115 115
             'isEditEnabled' => true,
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             ->method('toArray')
125 125
             ->willReturn([]);
126 126
 
127
-        $formOptions =  [
127
+        $formOptions = [
128 128
             'addressType' => AddressTypeEntity::TYPE_BILLING,
129 129
             'object' => $this->getEntity(),
130 130
             'isEditEnabled' => true,
Please login to merge, or discard this patch.