Test Setup Failed
Push — master ( fe3d4c...e44f29 )
by
unknown
03:25
created
Bundle/RedirectBundle/Tests/Unit/Async/SluggableEntitiesProcessorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $this->jobRunner->expects($this->once())
134 134
             ->method('runUnique')
135 135
             ->willReturnCallback(
136
-                function ($ownerId, $name, $closure) use ($class, $job) {
136
+                function($ownerId, $name, $closure) use ($class, $job) {
137 137
                     $this->assertEquals('mid-42', $ownerId);
138 138
                     $this->assertEquals(Topics::REGENERATE_DIRECT_URL_FOR_ENTITY_TYPE . ':' . $class, $name);
139 139
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         $this->jobRunner->expects($this->once())
194 194
             ->method('runUnique')
195 195
             ->willReturnCallback(
196
-                function ($ownerId, $name, $closure) use ($class, $job) {
196
+                function($ownerId, $name, $closure) use ($class, $job) {
197 197
                     $this->assertEquals('mid-42', $ownerId);
198 198
                     $this->assertEquals(Topics::REGENERATE_DIRECT_URL_FOR_ENTITY_TYPE . ':' . $class, $name);
199 199
 
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         $this->jobRunner->expects($this->once())
204 204
             ->method('createDelayed')
205 205
             ->willReturnCallback(
206
-                function ($name, $closure) use ($class, $childJob) {
206
+                function($name, $closure) use ($class, $childJob) {
207 207
                     $this->assertEquals(
208 208
                         sprintf('%s:%s:%s', Topics::JOB_GENERATE_DIRECT_URL_FOR_ENTITIES, $class, 0),
209 209
                         $name
Please login to merge, or discard this patch.
CheckoutBundle/DataProvider/LineItem/CheckoutLineItemsDataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     protected function findPrices(Collection $lineItems)
88 88
     {
89 89
         $lineItemsWithoutPrice = $lineItems->filter(
90
-            function (CheckoutLineItem $lineItem) {
90
+            function(CheckoutLineItem $lineItem) {
91 91
                 return !$lineItem->isPriceFixed() && !$lineItem->getPrice() && $lineItem->getProduct();
92 92
             }
93 93
         )->toArray();
Please login to merge, or discard this patch.
Oro/Bundle/CheckoutBundle/DataProvider/Manager/CheckoutLineItemsManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,14 +86,14 @@
 block discarded – undo
86 86
             if ($provider->isEntitySupported($entity)) {
87 87
                 $lineItems = $this->checkoutLineItemsConverter->convert($provider->getData($entity));
88 88
                 $lineItems = $lineItems->filter(
89
-                    function ($lineItem) {
89
+                    function($lineItem) {
90 90
                         return $this->isLineItemAvailable($lineItem);
91 91
                     }
92 92
                 );
93 93
 
94 94
                 if (!$disablePriceFilter) {
95 95
                     $lineItems = $lineItems->filter(
96
-                        function ($lineItem) use ($currency, $supportedStatuses) {
96
+                        function($lineItem) use ($currency, $supportedStatuses) {
97 97
                             return $this->isLineItemHasCurrencyAndSupportedStatus(
98 98
                                 $lineItem,
99 99
                                 $currency,
Please login to merge, or discard this patch.
Bundle/CheckoutBundle/EventListener/HasPriceInShoppingLineItemsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         $checkout = $context->get('checkout');
65 65
         $lineItems = $checkout->getLineItems();
66 66
         $lineItemsWithNotFixedPrice = $lineItems->filter(
67
-            function (CheckoutLineItem $lineItem) {
67
+            function(CheckoutLineItem $lineItem) {
68 68
                 return !$lineItem->isPriceFixed();
69 69
             }
70 70
         );
Please login to merge, or discard this patch.
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.