@@ -111,7 +111,7 @@ |
||
| 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 | |
@@ -67,7 +67,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 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 |
||
| 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', |
@@ -22,7 +22,7 @@ |
||
| 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 | }) |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | $output->writeln($message); |
| 203 | 203 | |
| 204 | 204 | if (false !== $range) { |
| 205 | - $result = range($range[0], $range[1]); |
|
| 205 | + $result = range($range[0], $range[1]); |
|
| 206 | 206 | } else { |
| 207 | 207 | $result = $this->getLastEntityId($className); |
| 208 | 208 | $result = range(1, $result); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $configuration = new Configuration(); |
| 20 | 20 | $config = $this->processConfiguration($configuration, $configs); |
| 21 | 21 | |
| 22 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 22 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 23 | 23 | |
| 24 | 24 | $loader->load('services.yml'); |
| 25 | 25 | $loader->load('form_types.yml'); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $this->translator->expects($this->any()) |
| 116 | 116 | ->method('trans') |
| 117 | 117 | ->willReturnCallback( |
| 118 | - function ($messageId) { |
|
| 118 | + function($messageId) { |
|
| 119 | 119 | return $messageId . ' TRANS'; |
| 120 | 120 | } |
| 121 | 121 | ); |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $this->translator->expects($this->any()) |
| 170 | 170 | ->method('trans') |
| 171 | 171 | ->willReturnCallback( |
| 172 | - function ($messageId) { |
|
| 172 | + function($messageId) { |
|
| 173 | 173 | return $messageId . ' TRANS'; |
| 174 | 174 | } |
| 175 | 175 | ); |
@@ -73,6 +73,6 @@ |
||
| 73 | 73 | ->setSubtotal($price->getValue() * $lineItem->getQuantity()) |
| 74 | 74 | ] |
| 75 | 75 | ] |
| 76 | - ]; |
|
| 76 | + ]; |
|
| 77 | 77 | } |
| 78 | 78 | } |