Test Setup Failed
Branch master (44bb91)
by Dima
03:54
created
src/Oro/Bundle/MagentoBundle/Dashboard/CustomerDataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,9 +61,9 @@
 block discarded – undo
61 61
         list($past, $now)  = $this->dateHelper->getPeriod($dateRange, 'OroMagentoBundle:Customer', 'createdAt');
62 62
         if ($past === null && $now === null) {
63 63
             $past = new \DateTime(DateHelper::MIN_DATE, new \DateTimeZone('UTC'));
64
-            $now   = new \DateTime('now', new \DateTimeZone('UTC'));
64
+            $now = new \DateTime('now', new \DateTimeZone('UTC'));
65 65
         }
66
-        $items             = [];
66
+        $items = [];
67 67
 
68 68
         /**
69 69
          * @todo Remove dependency on exact magento channel type in CRM-8153
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Form/EventListener/ConnectorsFormSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
             $allowedTypesChoices = array_flip($this->typeRegistry->getAvailableConnectorsTypesChoiceList(
76 76
                 $channelType,
77
-                function (ConnectorInterface $connector) use ($data) {
77
+                function(ConnectorInterface $connector) use ($data) {
78 78
                     return $connector instanceof ExtensionAwareInterface ? $data : true;
79 79
                 }
80 80
             ));
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Form/Type/CustomerChannelSelectType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
         $resolver->setNormalizers(
80 80
             [
81
-                'query_builder' => function (Options $options, $value) {
81
+                'query_builder' => function(Options $options, $value) {
82 82
                     $entities     = $options['entities'];
83 83
                     $queryBuilder = $this->channelsProvider->getChannelsByEntitiesQB($entities);
84 84
 
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Form/Type/CustomerGroupSelectType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
         // Set store form type readonly if ASSIGN permissions for integration not set
44 44
         $resolver->setNormalizers(
45 45
             [
46
-                'disabled' => function (Options $options, $value) {
46
+                'disabled' => function(Options $options, $value) {
47 47
                     return $this->isReadOnly($options) ? true : $value;
48 48
                 },
49
-                'validation_groups' => function (Options $options, $value) {
49
+                'validation_groups' => function(Options $options, $value) {
50 50
                     return $options['disabled'] ? false : $value;
51 51
                 },
52 52
             ]
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Form/Type/CustomerType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Command/CopyCustomerAddressesToContactCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Command/AddContactsToMagentoCustomersCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public function execute(InputInterface $input, OutputInterface $output)
49 49
     {
50
-        $logger    = new OutputLogger($output);
50
+        $logger = new OutputLogger($output);
51 51
         $logger->info('Executing command started.');
52 52
 
53 53
         $integrationIds = $input->getOption('integration-id');
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Command/SyncCartExpirationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Controller/CustomerController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,13 +112,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.