Test Setup Failed
Push — master ( fe3d4c...e44f29 )
by
unknown
03:25
created
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.
Bundle/CheckoutBundle/Tests/Unit/Converter/OrderLineItemConverterTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $this->quantityProvider->expects($this->any())
82 82
             ->method('canDecrement')
83 83
             ->willReturnCallback(
84
-                function (Product $product) use ($canDecrement) {
84
+                function(Product $product) use ($canDecrement) {
85 85
                     return $canDecrement && $product->getId() === 3;
86 86
                 }
87 87
             );
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $this->quantityProvider->expects($this->any())
90 90
             ->method('getAvailableQuantity')
91 91
             ->willReturnCallback(
92
-                function (Product $product) use ($availableQuantity) {
92
+                function(Product $product) use ($availableQuantity) {
93 93
                     return $product->getId() === 3 ? $availableQuantity : 0;
94 94
                 }
95 95
             );
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $this->authorizationChecker->expects($this->any())
98 98
             ->method('isGranted')
99 99
             ->willReturnCallback(
100
-                function ($argument, Product $product) use ($isVisible) {
100
+                function($argument, Product $product) use ($isVisible) {
101 101
                     return $isVisible && $argument === 'VIEW' && $product->getId() === 3;
102 102
                 }
103 103
             );
Please login to merge, or discard this patch.
Tests/Functional/Controller/Frontend/CheckoutControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
         /* @var $dispatcher EventDispatcherInterface */
54 54
         $dispatcher = static::getContainer()->get('event_dispatcher');
55
-        $listener = function (CheckoutValidateEvent $event) {
55
+        $listener = function(CheckoutValidateEvent $event) {
56 56
             $event->setIsCheckoutRestartRequired(true);
57 57
         };
58 58
         $dispatcher->addListener(CheckoutValidateEvent::NAME, $listener);
Please login to merge, or discard this patch.
src/Oro/Bundle/TaxBundle/EventListener/TaxCodeGridListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     protected function addJoin(DatagridConfiguration $config)
109 109
     {
110 110
         $config->getOrmQuery()->addLeftJoin(
111
-            $this->getAlias($config).'.taxCode',
111
+            $this->getAlias($config) . '.taxCode',
112 112
             $this->getJoinAlias()
113 113
         );
114 114
     }
Please login to merge, or discard this patch.
Oro/Bundle/TaxBundle/EventListener/Config/ProductTaxCodeEventListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 ->findBy(['id' => $this->filterIds($ids)]);
82 82
 
83 83
             $result = array_map(
84
-                function (AbstractTaxCode $taxCode) {
84
+                function(AbstractTaxCode $taxCode) {
85 85
                     return $taxCode->getCode();
86 86
                 },
87 87
                 $taxCodes
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     {
101 101
         $data = array_filter(
102 102
             $data,
103
-            function ($value) {
103
+            function($value) {
104 104
                 return false !== filter_var($value, FILTER_VALIDATE_INT);
105 105
             }
106 106
         );
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     {
119 119
         $data = array_filter(
120 120
             $data,
121
-            function ($value) {
121
+            function($value) {
122 122
                 return is_string($value) && $value;
123 123
             }
124 124
         );
Please login to merge, or discard this patch.
src/Oro/Bundle/TaxBundle/EventListener/Order/OrderTaxesListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,12 +54,12 @@
 block discarded – undo
54 54
 
55 55
         $result = $this->getProvider()->getTax($order);
56 56
         $taxItems = array_map(
57
-            function (Result $lineItem) {
57
+            function(Result $lineItem) {
58 58
                 return [
59 59
                     'unit' => $lineItem->getUnit()->getArrayCopy(),
60 60
                     'row' => $lineItem->getRow()->getArrayCopy(),
61 61
                     'taxes' => array_map(
62
-                        function (AbstractResultElement $item) {
62
+                        function(AbstractResultElement $item) {
63 63
                             return $item->getArrayCopy();
64 64
                         },
65 65
                         $lineItem->getTaxes()
Please login to merge, or discard this patch.
src/Oro/Bundle/TaxBundle/Tests/Unit/Provider/TaxSubtotalProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $this->translator = $this->createMock('Symfony\Component\Translation\TranslatorInterface');
42 42
         $this->translator->expects($this->any())->method('trans')->willReturnCallback(
43
-            function ($message) {
43
+            function($message) {
44 44
                 return ucfirst($message);
45 45
             }
46 46
         );
Please login to merge, or discard this patch.