Test Setup Failed
Push — master ( 568f60...80f464 )
by
unknown
03:06
created
Oro/Bundle/MagentoBundle/Provider/Customer/AccountAutocompleteProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@
 block discarded – undo
54 54
         $data = [];
55 55
 
56 56
         $contactName = $entity->getNamePrefix() .
57
-            $entity->getFirstName().
58
-            $entity->getMiddleName().
59
-            $entity->getLastName().
57
+            $entity->getFirstName() .
58
+            $entity->getMiddleName() .
59
+            $entity->getLastName() .
60 60
             $entity->getNameSuffix();
61 61
         $data[] = $contactName;
62 62
 
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Provider/CartExpirationProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         $result     = $this->transport->call(SoapTransport::ACTION_ORO_CART_LIST, $filters);
103 103
         $result     = WSIUtils::processCollectionResponse($result);
104 104
         $resultIds  = array_map(
105
-            function (&$item) {
105
+            function(&$item) {
106 106
                 return (int)$item->entity_id;
107 107
             },
108 108
             $result
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Provider/Transport/SoapTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
 
254 254
         $isExtensionInstalled = (bool)array_filter(
255 255
             $functions,
256
-            function ($definition) {
256
+            function($definition) {
257 257
                 return false !== strpos($definition, self::ACTION_PING);
258 258
             }
259 259
         );
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Provider/AbstractInitialProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         /** @var ConnectorInterface[] $dictionaryConnectors */
33 33
         $dictionaryConnectors = $this->registry->getRegisteredConnectorsTypes(
34 34
             $integration->getType(),
35
-            function (ConnectorInterface $connector) {
35
+            function(ConnectorInterface $connector) {
36 36
                 return $connector instanceof DictionaryConnectorInterface;
37 37
             }
38 38
         )->toArray();
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Provider/MagentoBigNumberProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $this->applyDateFiltering($qb, 'orders.createdAt', $start, $end);
61 61
         $value = $this->aclHelper->apply($qb)->getOneOrNullResult();
62 62
 
63
-        return $value['val'] ? : 0;
63
+        return $value['val'] ?: 0;
64 64
     }
65 65
 
66 66
     /**
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $this->applyDateFiltering($qb, 'o.createdAt', $start, $end);
76 76
         $value = $this->aclHelper->apply($qb)->getOneOrNullResult();
77 77
 
78
-        return $value['val'] ? : 0;
78
+        return $value['val'] ?: 0;
79 79
     }
80 80
 
81 81
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $this->applyDateFiltering($qb, 'customer.createdAt', $start, $end);
123 123
         $value = $this->aclHelper->apply($qb)->getOneOrNullResult();
124 124
 
125
-        return $value['val'] ? : 0;
125
+        return $value['val'] ?: 0;
126 126
     }
127 127
 
128 128
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         }
143 143
         $value = $this->aclHelper->apply($qb)->getOneOrNullResult();
144 144
 
145
-        return $value['val'] ? : 0;
145
+        return $value['val'] ?: 0;
146 146
     }
147 147
 
148 148
     /**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $this->applyDateFiltering($qb, 'cart.createdAt', $start, $end);
159 159
         $value = $this->aclHelper->apply($qb)->getOneOrNullResult();
160 160
 
161
-        return $value['val'] ? : 0;
161
+        return $value['val'] ?: 0;
162 162
     }
163 163
 
164 164
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         $value = $this->aclHelper->apply($qb)->getOneOrNullResult();
175 175
         $this->applyDateFiltering($qb, 'cart.createdAt', $start, $end);
176 176
 
177
-        return $value['val'] ? : 0;
177
+        return $value['val'] ?: 0;
178 178
     }
179 179
 
180 180
     /**
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Provider/Strategy/TwoWaySyncStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     protected function getChangeSetValues($changeSet, $key)
227 227
     {
228 228
         $values = array_map(
229
-            function ($data) use ($key) {
229
+            function($data) use ($key) {
230 230
                 if (!array_key_exists($key, $data)) {
231 231
                     return null;
232 232
                 }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 
239 239
         return array_filter(
240 240
             $values,
241
-            function ($value) {
241
+            function($value) {
242 242
                 return $value !== null;
243 243
             }
244 244
         );
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     protected function initExcludedFields(StepExecution $stepExecution)
274 274
     {
275 275
         $jobInstance = $stepExecution->getJobExecution()->getJobInstance();
276
-        $configuration = $jobInstance ? $jobInstance->getRawConfiguration(): [];
276
+        $configuration = $jobInstance ? $jobInstance->getRawConfiguration() : [];
277 277
 
278 278
         if (isset($configuration[self::REMOTE_EXCLUDED_FIELDS])) {
279 279
             foreach ((array)$configuration[self::REMOTE_EXCLUDED_FIELDS] as $item) {
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Provider/InitialScheduleProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
         return array_filter(
118 118
             $connectors,
119
-            function ($connector) {
119
+            function($connector) {
120 120
                 return strpos($connector, InitialSyncProcessor::INITIAL_CONNECTOR_SUFFIX) !== false;
121 121
             }
122 122
         );
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     protected function processConnectors(Integration $integration, array $parameters = [], callable $callback = null)
129 129
     {
130 130
         if (null === $callback) {
131
-            $callback = function ($connector) {
131
+            $callback = function($connector) {
132 132
                 return strpos($connector, InitialSyncProcessor::INITIAL_CONNECTOR_SUFFIX) === false
133 133
                     && strpos($connector, DictionaryConnectorInterface::DICTIONARY_CONNECTOR_SUFFIX) === false;
134 134
             };
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Provider/Iterator/Soap/OrderBridgeIterator.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
         $result = $this->processCollectionResponse($result);
75 75
 
76 76
         $resultIds = array_map(
77
-            function (&$item) {
77
+            function(&$item) {
78 78
                 $item->items = $this->processCollectionResponse($item->items);
79 79
 
80 80
                 return $item->order_id;
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Provider/Iterator/Soap/OrderSoapIterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         $this->entityBuffer = array_combine(
62 62
             array_map(
63
-                function ($item) {
63
+                function($item) {
64 64
                     if (is_object($item)) {
65 65
                         return $item->order_id;
66 66
                     } else {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $idFieldName = $this->getIdFieldName();
76 76
         $result      = array_map(
77
-            function ($item) use ($idFieldName) {
77
+            function($item) use ($idFieldName) {
78 78
                 $inc = is_object($item) ? $item->increment_id : $item['increment_id'];
79 79
                 $id  = is_object($item) ? $item->order_id : $item['order_id'];
80 80
 
Please login to merge, or discard this patch.