@@ -81,7 +81,7 @@ |
||
| 81 | 81 | |
| 82 | 82 | if (is_array($result) && count($result) > 0) { |
| 83 | 83 | $resultIds = array_map( |
| 84 | - function ($item) { |
|
| 84 | + function($item) { |
|
| 85 | 85 | return $item[$this->getIdFieldName()]; |
| 86 | 86 | }, |
| 87 | 87 | $result |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | $this->entityBuffer = array_combine( |
| 51 | 51 | array_map( |
| 52 | - function ($item) { |
|
| 52 | + function($item) { |
|
| 53 | 53 | if (is_object($item)) { |
| 54 | 54 | return $item->creditmemo_id; |
| 55 | 55 | } else { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | $idFieldName = $this->getIdFieldName(); |
| 65 | 65 | $result = array_map( |
| 66 | - function ($item) use ($idFieldName) { |
|
| 66 | + function($item) use ($idFieldName) { |
|
| 67 | 67 | $inc = is_object($item) ? $item->increment_id : $item['increment_id']; |
| 68 | 68 | $id = is_object($item) ? $item->creditmemo_id : $item['creditmemo_id']; |
| 69 | 69 | |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | $result = $this->processCollectionResponse($result); |
| 75 | 75 | |
| 76 | 76 | $resultIds = array_map( |
| 77 | - function (&$item) { |
|
| 77 | + function(&$item) { |
|
| 78 | 78 | $item->addresses = $this->processCollectionResponse($item->addresses); |
| 79 | 79 | |
| 80 | 80 | return $item->customer_id; |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | |
| 78 | 78 | $that = $this; |
| 79 | 79 | $resultIds = array_map( |
| 80 | - function (&$item) use ($that) { |
|
| 80 | + function(&$item) use ($that) { |
|
| 81 | 81 | $item->items = $that->processCollectionResponse($item->items); |
| 82 | 82 | |
| 83 | 83 | return $item->entity_id; |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | */ |
| 143 | 143 | protected function getConnectorsFilterFunction(callable $callback = null) |
| 144 | 144 | { |
| 145 | - return function ($connector) use ($callback) { |
|
| 145 | + return function($connector) use ($callback) { |
|
| 146 | 146 | if (is_callable($callback) && !call_user_func($callback, $connector)) { |
| 147 | 147 | return false; |
| 148 | 148 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | $filteredCustomer = array_filter( |
| 27 | 27 | $customers, |
| 28 | - function ($customerData) use ($customer) { |
|
| 28 | + function($customerData) use ($customer) { |
|
| 29 | 29 | if (is_object($customerData)) { |
| 30 | 30 | $customerData = (array)$customerData; |
| 31 | 31 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | return $customers; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - $customers = (array) $customers; |
|
| 60 | + $customers = (array)$customers; |
|
| 61 | 61 | if (empty($customers)) { |
| 62 | 62 | return false; |
| 63 | 63 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | { |
| 35 | 35 | $websites = iterator_to_array($transport->getWebsites()); |
| 36 | 36 | $websites = array_map( |
| 37 | - function ($website) { |
|
| 37 | + function($website) { |
|
| 38 | 38 | return [ |
| 39 | 39 | 'id' => $website['website_id'], |
| 40 | 40 | 'label' => $this->translator->trans( |
@@ -111,8 +111,8 @@ |
||
| 111 | 111 | public function hasOrganizationApplicableChannels(Organization $organization, $checkExtension = true) |
| 112 | 112 | { |
| 113 | 113 | /** |
| 114 | - * @todo Remove dependency on exact magento channel type in CRM-8153 |
|
| 115 | - */ |
|
| 114 | + * @todo Remove dependency on exact magento channel type in CRM-8153 |
|
| 115 | + */ |
|
| 116 | 116 | $channels = $this->doctrineHelper |
| 117 | 117 | ->getEntityRepository($this->channelClassName) |
| 118 | 118 | ->findBy(['type' => MagentoChannelType::TYPE, 'enabled' => true, 'organization' => $organization]); |
@@ -61,9 +61,9 @@ |
||
| 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 |