Test Setup Failed
Push — master ( fe3d4c...e44f29 )
by
unknown
03:25
created
Tests/Functional/Controller/Frontend/OrderControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,8 +133,8 @@
 block discarded – undo
133 133
             $this->assertTrue(isset($actualCheckouts[$id]));
134 134
             $actualCheckout = $actualCheckouts[$id];
135 135
             $this->assertEquals(
136
-                (float) $actualCheckout['subtotal'] + (float) $actualCheckout['shippingCost'],
137
-                (float) $actualCheckout['total']
136
+                (float)$actualCheckout['subtotal'] + (float)$actualCheckout['shippingCost'],
137
+                (float)$actualCheckout['total']
138 138
             );
139 139
         }
140 140
     }
Please login to merge, or discard this patch.
src/Oro/Bundle/RedirectBundle/Generator/SlugEntityGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
     protected function getExistingSlugs(SlugUrl $slugUrl, Collection $slugs)
174 174
     {
175 175
         return $slugs->filter(
176
-            function (Slug $slug) use ($slugUrl) {
176
+            function(Slug $slug) use ($slugUrl) {
177 177
                 return $slugUrl->getUrl() === $slug->getUrl()
178 178
                     && $slugUrl->getLocalization() === $slug->getLocalization();
179 179
             }
Please login to merge, or discard this patch.
Bundle/RedirectBundle/EventListener/UpdateSlugsDemoDataFixturesListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,12 +118,12 @@
 block discarded – undo
118 118
     {
119 119
         $classes = array_filter(
120 120
             array_map(
121
-                function (ClassMetadata $metadata) {
121
+                function(ClassMetadata $metadata) {
122 122
                     return $metadata->getName();
123 123
                 },
124 124
                 $manager->getMetadataFactory()->getAllMetadata()
125 125
             ),
126
-            function ($class) {
126
+            function($class) {
127 127
                 return is_subclass_of($class, SluggableInterface::class);
128 128
             }
129 129
         );
Please login to merge, or discard this patch.
src/Oro/Bundle/RedirectBundle/Entity/Repository/SlugRepository.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->restrictByEntitySlugs($qb, $restrictedEntity);
78 78
 
79 79
         return array_map(
80
-            function ($item) {
80
+            function($item) {
81 81
                 return $item['url'];
82 82
             },
83 83
             $qb->getQuery()->getArrayResult()
Please login to merge, or discard this patch.
src/Oro/Bundle/RedirectBundle/Async/DirectUrlProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $em = null;
83 83
         try {
84 84
             $messageData = JSON::decode($message->getBody());
85
-            $className =  $this->messageFactory->getEntityClassFromMessage($messageData);
85
+            $className = $this->messageFactory->getEntityClassFromMessage($messageData);
86 86
             /** @var EntityManagerInterface $em */
87 87
             $em = $this->registry->getManagerForClass($className);
88 88
             $em->beginTransaction();
Please login to merge, or discard this patch.
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.