@@ -171,7 +171,7 @@ |
||
| 171 | 171 | { |
| 172 | 172 | $builder->addEventListener( |
| 173 | 173 | FormEvents::SUBMIT, |
| 174 | - function (FormEvent $event) { |
|
| 174 | + function(FormEvent $event) { |
|
| 175 | 175 | /** @var Customer $entity */ |
| 176 | 176 | $entity = $event->getData(); |
| 177 | 177 | $dataChannel = $entity->getDataChannel(); |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | public function execute(InputInterface $input, OutputInterface $output) |
| 54 | 54 | { |
| 55 | - $logger = new OutputLogger($output); |
|
| 55 | + $logger = new OutputLogger($output); |
|
| 56 | 56 | $logger->info('Executing command started.'); |
| 57 | 57 | |
| 58 | 58 | $integrationIds = $input->getOption('integration-id'); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | public function execute(InputInterface $input, OutputInterface $output) |
| 65 | 65 | { |
| 66 | - $logger = new OutputLogger($output); |
|
| 66 | + $logger = new OutputLogger($output); |
|
| 67 | 67 | |
| 68 | 68 | $repository = $this->getIntegrationRepository(); |
| 69 | 69 | |
@@ -112,13 +112,13 @@ discard block |
||
| 112 | 112 | return $this->get('oro_magento.form.handler.customer')->handleUpdate( |
| 113 | 113 | $customer, |
| 114 | 114 | $this->createForm('oro_magento_customer', $customer), |
| 115 | - function (Customer $customer) { |
|
| 115 | + function(Customer $customer) { |
|
| 116 | 116 | return [ |
| 117 | 117 | 'route' => 'oro_magento_customer_update', |
| 118 | 118 | 'parameters' => ['id' => $customer->getId()] |
| 119 | 119 | ]; |
| 120 | 120 | }, |
| 121 | - function (Customer $customer) { |
|
| 121 | + function(Customer $customer) { |
|
| 122 | 122 | return [ |
| 123 | 123 | 'route' => 'oro_magento_customer_view', |
| 124 | 124 | 'parameters' => ['id' => $customer->getId()] |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | ->findBy(['account' => $account, 'dataChannel' => $channel]); |
| 164 | 164 | $customers = array_filter( |
| 165 | 165 | $customers, |
| 166 | - function ($item) { |
|
| 166 | + function($item) { |
|
| 167 | 167 | return $this->isGranted('VIEW', $item); |
| 168 | 168 | } |
| 169 | 169 | ); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
| 27 | 27 | curl_close($ch); |
| 28 | 28 | |
| 29 | - if (!($httpCode>=200 && $httpCode<300)) { |
|
| 29 | + if (!($httpCode >= 200 && $httpCode < 300)) { |
|
| 30 | 30 | $this->markTestSkipped('Magento instance is not available'); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | $expected = array_map( |
| 62 | - function ($expectedReference) { |
|
| 62 | + function($expectedReference) { |
|
| 63 | 63 | return $this->getReference($expectedReference); |
| 64 | 64 | }, |
| 65 | 65 | $expected |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | |
| 61 | 61 | |
| 62 | 62 | $expected = array_map( |
| 63 | - function ($reference) { |
|
| 63 | + function($reference) { |
|
| 64 | 64 | return $this->getReference($reference); |
| 65 | 65 | }, |
| 66 | 66 | $expected |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $expectedData = [ |
| 43 | 43 | [ |
| 44 | 44 | 'label' => 'oro.workflow.b2c_flow_abandoned_shopping_cart.step.open.label', |
| 45 | - //value=OpenCart1 [not applied: OpenCart2(disabled channel), OpenCart3(expired), OpenCart4(purchased)] |
|
| 45 | + //value=OpenCart1 [not applied: OpenCart2(disabled channel), OpenCart3(expired), OpenCart4(purchased)] |
|
| 46 | 46 | 'value' => 10, |
| 47 | 47 | 'isNozzle' => false |
| 48 | 48 | ], |
@@ -27,11 +27,11 @@ discard block |
||
| 27 | 27 | $this->initClient([]); |
| 28 | 28 | |
| 29 | 29 | $this->manager = $this->getContainer() |
| 30 | - ->get('doctrine') |
|
| 31 | - ->getManager(); |
|
| 30 | + ->get('doctrine') |
|
| 31 | + ->getManager(); |
|
| 32 | 32 | |
| 33 | 33 | $this->fieldHelper = $this->getContainer() |
| 34 | - ->get('oro_entity.helper.field_helper'); |
|
| 34 | + ->get('oro_entity.helper.field_helper'); |
|
| 35 | 35 | |
| 36 | 36 | $this->loadFixtures([LoadOrderNotesData::class]); |
| 37 | 37 | } |
@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | public function testGetCreatedOrderNote() |
| 69 | 69 | { |
| 70 | 70 | $orderNote = $this->manager |
| 71 | - ->getRepository('OroMagentoBundle:OrderNote') |
|
| 72 | - ->findOneBy(['originId' => LoadOrderNotesData::DEFAULT_ORIGIN_ID]); |
|
| 71 | + ->getRepository('OroMagentoBundle:OrderNote') |
|
| 72 | + ->findOneBy(['originId' => LoadOrderNotesData::DEFAULT_ORIGIN_ID]); |
|
| 73 | 73 | |
| 74 | 74 | $this->assertNotNull($orderNote); |
| 75 | 75 | $this->assertEquals($orderNote->getOriginId(), LoadOrderNotesData::DEFAULT_ORIGIN_ID); |