Test Setup Failed
Push — master ( fe3d4c...e44f29 )
by
unknown
03:25
created
TaxBundle/Tests/Unit/EventListener/Config/AddressEventListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 
112 112
     public function testBeforeSaveNoAddress()
113 113
     {
114
-        $address ='some_value';
114
+        $address = 'some_value';
115 115
         $settings = ['value' => $address];
116 116
         $event = new ConfigSettingsUpdateEvent($this->configManager, $settings);
117 117
 
Please login to merge, or discard this patch.
src/Oro/Bundle/SaleBundle/Form/Type/QuoteAddressType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         $builder->addEventListener(
69 69
             FormEvents::PRE_SET_DATA,
70
-            function (FormEvent $event) use ($quote, $type, $isManualEditGranted) {
70
+            function(FormEvent $event) use ($quote, $type, $isManualEditGranted) {
71 71
                 $form = $event->getForm();
72 72
 
73 73
                 $addressCollection = $this->quoteAddressManager->getGroupedAddresses($quote, $type, 'oro.sale.quote.');
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         $builder->addEventListener(
103 103
             FormEvents::SUBMIT,
104
-            function (FormEvent $event) use ($isManualEditGranted) {
104
+            function(FormEvent $event) use ($isManualEditGranted) {
105 105
                 if (!$isManualEditGranted) {
106 106
                     $event->setData(null);
107 107
                 }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     {
213 213
         array_walk_recursive(
214 214
             $addresses,
215
-            function (&$item) {
215
+            function(&$item) {
216 216
                 if ($item instanceof AbstractAddress) {
217 217
                     $item = $this->addressFormatter->format($item, null, ', ');
218 218
                 }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
         array_walk_recursive(
237 237
             $addresses,
238
-            function ($item, $key) use (&$data) {
238
+            function($item, $key) use (&$data) {
239 239
                 if ($item instanceof AbstractAddress) {
240 240
                     $data[$key] = $this->serializer->normalize($item);
241 241
                 }
Please login to merge, or discard this patch.
src/Oro/Bundle/SaleBundle/Tests/Unit/Form/Type/QuoteAddressTypeTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         $this->quoteAddressManager->expects($this->any())->method('updateFromAbstract')
132 132
             ->will(
133 133
                 $this->returnCallback(
134
-                    function (CustomerAddress $address = null, QuoteAddress $orderAddress = null) {
134
+                    function(CustomerAddress $address = null, QuoteAddress $orderAddress = null) {
135 135
                         if (!$orderAddress) {
136 136
                             $orderAddress = new QuoteAddress();
137 137
                         }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         $this->quoteAddressManager->expects($this->any())->method('getEntityByIdentifier')
254 254
             ->will(
255 255
                 $this->returnCallback(
256
-                    function ($identifier) use ($groupedAddresses) {
256
+                    function($identifier) use ($groupedAddresses) {
257 257
                         foreach ($groupedAddresses as $groupedAddressesGroup) {
258 258
                             if (array_key_exists($identifier, $groupedAddressesGroup)) {
259 259
                                 return $groupedAddressesGroup[$identifier];
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $this->quoteAddressManager->expects($this->any())->method('updateFromAbstract')
269 269
             ->will(
270 270
                 $this->returnCallback(
271
-                    function (CustomerAddress $address) {
271
+                    function(CustomerAddress $address) {
272 272
                         $quoteAddress = new QuoteAddress();
273 273
                         $quoteAddress->setCountry($address->getCountry());
274 274
                         $quoteAddress->setStreet($address->getStreet());
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         $this->quoteAddressManager->expects($this->any())->method('updateFromAbstract')
284 284
             ->will(
285 285
                 $this->returnCallback(
286
-                    function (CustomerAddress $address = null, QuoteAddress $orderAddress = null) {
286
+                    function(CustomerAddress $address = null, QuoteAddress $orderAddress = null) {
287 287
                         if (!$orderAddress) {
288 288
                             $orderAddress = new QuoteAddress();
289 289
                         }
Please login to merge, or discard this patch.
Bundle/WebsiteSearchBundle/Engine/AsyncMessaging/SearchMessageProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             case AsyncIndexer::TOPIC_REINDEX:
108 108
                 $ownerId = $message->getMessageId();
109 109
                 $jobName = $this->buildJobNameForMessage($data);
110
-                $closure = function () use ($data) {
110
+                $closure = function() use ($data) {
111 111
                     $this->indexer->reindex($data['class'], $data['context']);
112 112
                     return true;
113 113
                 };
Please login to merge, or discard this patch.
Oro/Bundle/WebsiteSearchBundle/Tests/Unit/Engine/IndexDataProviderTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $this->placeholderHelper->expects($this->any())
51 51
             ->method('isNameMatch')
52 52
             ->willReturnCallback(
53
-                function ($name, $nameValue) {
53
+                function($name, $nameValue) {
54 54
                     return $name === 'custom_PLACEHOLDER_ID' && $nameValue === 'custom_42';
55 55
                 }
56 56
             );
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $this->logicalAnd(
80 80
                 $this->isInstanceOf(CollectContextEvent::class),
81 81
                 $this->callback(
82
-                    function (CollectContextEvent $event) use ($expectedContext) {
82
+                    function(CollectContextEvent $event) use ($expectedContext) {
83 83
                         $this->assertEquals($expectedContext, $event->getContext());
84 84
 
85 85
                         return true;
@@ -107,12 +107,12 @@  discard block
 block discarded – undo
107 107
                     $this->isInstanceOf(RestrictIndexEntityEvent::class),
108 108
                 ],
109 109
                 [
110
-                    RestrictIndexEntityEvent::NAME.'.std',
110
+                    RestrictIndexEntityEvent::NAME . '.std',
111 111
                     $this->isInstanceOf(RestrictIndexEntityEvent::class),
112 112
                 ]
113 113
             )
114 114
             ->willReturnCallback(
115
-                function () use ($qb) {
115
+                function() use ($qb) {
116 116
                     $qb->select(['something']);
117 117
                 }
118 118
             );
@@ -131,12 +131,12 @@  discard block
 block discarded – undo
131 131
     {
132 132
         $this->aliasResolver->expects($this->once())->method('getAlias')->with(\stdClass::class)->willReturn('std');
133 133
         $this->tagHelper->expects($this->any())->method('stripTags')->willReturnCallback(
134
-            function ($value) {
134
+            function($value) {
135 135
                 return trim(strip_tags($value));
136 136
             }
137 137
         );
138 138
         $this->placeholder->expects($this->any())->method('replace')->willReturnCallback(
139
-            function ($string, array $values) {
139
+            function($string, array $values) {
140 140
                 return str_replace(array_keys($values), array_values($values), $string);
141 141
             }
142 142
         );
@@ -148,12 +148,12 @@  discard block
 block discarded – undo
148 148
                     $this->isInstanceOf(IndexEntityEvent::class),
149 149
                 ],
150 150
                 [
151
-                    IndexEntityEvent::NAME.'.std',
151
+                    IndexEntityEvent::NAME . '.std',
152 152
                     $this->isInstanceOf(IndexEntityEvent::class),
153 153
                 ]
154 154
             )
155 155
             ->willReturnCallback(
156
-                function ($name, IndexEntityEvent $event) use ($indexData) {
156
+                function($name, IndexEntityEvent $event) use ($indexData) {
157 157
                     foreach ($indexData as $data) {
158 158
                         $method = count($data) === 4 ? 'addField' : 'addPlaceholderField';
159 159
                         call_user_func_array([$event, $method], $data);
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 
368 368
         $this->eventDispatcher->expects($this->atLeastOnce())->method('dispatch')
369 369
             ->willReturnCallback(
370
-                function ($name, IndexEntityEvent $event) {
370
+                function($name, IndexEntityEvent $event) {
371 371
                     $event->addField(1, 'sku', 'SKU-01');
372 372
                 }
373 373
             );
Please login to merge, or discard this patch.
src/Oro/Bundle/WebsiteSearchBundle/Tests/Unit/Engine/AsyncIndexerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
             ->willReturn([
229 229
                             [Item::class],
230 230
                             [self::WEBSITE_ID]
231
-                         ]);
231
+                            ]);
232 232
 
233 233
         $this->granularizer->expects($this->atLeastOnce())
234 234
             ->method('process')
Please login to merge, or discard this patch.
Tests/Unit/Provider/WebsiteSearchMappingProviderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             ->with(WebsiteSearchMappingEvent::NAME, $this->isInstanceOf(WebsiteSearchMappingEvent::class))
81 81
             ->willReturnOnConsecutiveCalls(
82 82
                 $this->returnCallback(
83
-                    function ($name, WebsiteSearchMappingEvent $event) {
83
+                    function($name, WebsiteSearchMappingEvent $event) {
84 84
                         $config = $event->getConfiguration();
85 85
                         $config['Oro\TestBundle\Entity\TestEntity']['fields']['lastname'] = [
86 86
                             'name' => 'lastname',
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                     }
93 93
                 ),
94 94
                 $this->returnCallback(
95
-                    function ($name, WebsiteSearchMappingEvent $event) {
95
+                    function($name, WebsiteSearchMappingEvent $event) {
96 96
                         $config = $event->getConfiguration();
97 97
                         $config['Oro\TestBundle\Entity\TestEntity']['fields']['email'] = [
98 98
                             'name' => 'email',
Please login to merge, or discard this patch.
Tests/Unit/EventListener/WebsiteLocalizationConfigListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             ->method('dispatch')
23 23
             ->with(
24 24
                 ReindexationRequestEvent::EVENT_NAME,
25
-                $this->callback(function ($reindexationEvent) {
25
+                $this->callback(function($reindexationEvent) {
26 26
                     /** @var ReindexationRequestEvent $reindexationEvent */
27 27
                     return count($reindexationEvent->getWebsitesIds()) === 0;
28 28
                 })
Please login to merge, or discard this patch.
Bundle/WebsiteSearchBundle/Tests/Functional/Engine/ORM/OrmIndexerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@
 block discarded – undo
391 391
             ]
392 392
         );
393 393
 
394
-        $items = $this->getResultItems(['alias' => 'oro_product_'.  $notExistingId]);
394
+        $items = $this->getResultItems(['alias' => 'oro_product_' . $notExistingId]);
395 395
 
396 396
         $this->assertCount(0, $items);
397 397
     }
Please login to merge, or discard this patch.