Test Setup Failed
Push — master ( f71368...e98e25 )
by
unknown
03:58
created
src/Oro/Bundle/RedirectBundle/Async/SluggableEntitiesProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $result = $this->jobRunner->runUnique(
98 98
             $message->getMessageId(),
99 99
             sprintf('%s:%s', Topics::REGENERATE_DIRECT_URL_FOR_ENTITY_TYPE, $entityClass),
100
-            function (JobRunner $jobRunner) use ($entityClass, $createRedirect) {
100
+            function(JobRunner $jobRunner) use ($entityClass, $createRedirect) {
101 101
                 /** @var EntityManager $em */
102 102
                 if (!$em = $this->doctrine->getManagerForClass($entityClass)) {
103 103
                     $this->logger->error(
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 for ($i = 0; $i < $batches; $i++) {
120 120
                     $jobRunner->createDelayed(
121 121
                         sprintf('%s:%s:%s', Topics::JOB_GENERATE_DIRECT_URL_FOR_ENTITIES, $entityClass, $i),
122
-                        function (
122
+                        function(
123 123
                             JobRunner $jobRunner,
124 124
                             Job $child
125 125
                         ) use (
Please login to merge, or discard this patch.
src/Oro/Bundle/RedirectBundle/Async/UrlCacheMassJobProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $result = $this->jobRunner->runUnique(
96 96
                 $message->getMessageId(),
97 97
                 Topics::CALCULATE_URL_CACHE_MASS,
98
-                function (JobRunner $jobRunner) {
98
+                function(JobRunner $jobRunner) {
99 99
                     $usedRoutes = $this->slugRepository->getUsedRoutes();
100 100
 
101 101
                     foreach ($usedRoutes as $usedRoute) {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 $usedRoute,
142 142
                 $page
143 143
             ),
144
-            function (JobRunner $jobRunner, Job $child) use ($usedRoute, $entityIds) {
144
+            function(JobRunner $jobRunner, Job $child) use ($usedRoute, $entityIds) {
145 145
                 $this->producer->send(Topics::PROCESS_CALCULATE_URL_CACHE_JOB, [
146 146
                     'route_name' => $usedRoute,
147 147
                     'entity_ids' => $entityIds,
Please login to merge, or discard this patch.
RedirectBundle/Tests/Unit/EventListener/SluggableEntityListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@
 block discarded – undo
341 341
         /** @var SluggableInterface|\PHPUnit_Framework_MockObject_MockObject $entity */
342 342
         $entity = $this->createMock(SluggableInterface::class);
343 343
 
344
-        $uow  = $this->prepareUow($event, $entity);
344
+        $uow = $this->prepareUow($event, $entity);
345 345
 
346 346
         $prototype = new LocalizedFallbackValue();
347 347
 
Please login to merge, or discard this patch.
src/Oro/Bundle/RedirectBundle/Tests/Unit/Cache/UrlStorageCacheTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
         $storage = $this->getMockBuilder(UrlDataStorage::class)
252 252
             ->disableOriginalConstructor()
253 253
             ->getMock();
254
-         /** @var UrlDataStorage|\PHPUnit_Framework_MockObject_MockObject $oldStorage */
254
+            /** @var UrlDataStorage|\PHPUnit_Framework_MockObject_MockObject $oldStorage */
255 255
         $oldStorage = $this->getMockBuilder(UrlDataStorage::class)
256 256
             ->disableOriginalConstructor()
257 257
             ->getMock();
Please login to merge, or discard this patch.
Oro/Bundle/RedirectBundle/Tests/Unit/Async/UrlCacheMassJobProcessorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
             ->with(
266 266
                 self::MESSAGE_ID,
267 267
                 Topics::CALCULATE_URL_CACHE_MASS,
268
-                $this->callback(function (callable $callable) {
268
+                $this->callback(function(callable $callable) {
269 269
                     return true;
270 270
                 })
271 271
             )
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             ->with(
316 316
                 self::MESSAGE_ID,
317 317
                 Topics::CALCULATE_URL_CACHE_MASS,
318
-                $this->callback(function (callable $callable) {
318
+                $this->callback(function(callable $callable) {
319 319
                     return true;
320 320
                 })
321 321
             )
Please login to merge, or discard this patch.
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.