@@ -57,7 +57,7 @@ |
||
57 | 57 | ->setParameter('dateStart', $start) |
58 | 58 | ->setParameter('dateEnd', $end); |
59 | 59 | |
60 | - return (int) $aclHelper->apply($qb)->getSingleScalarResult(); |
|
60 | + return (int)$aclHelper->apply($qb)->getSingleScalarResult(); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $qb->select(sprintf('(%s)', implode(' + ', $selectFields))); |
56 | 56 | |
57 | - return (float) $qb->getQuery()->getSingleScalarResult(); |
|
57 | + return (float)$qb->getQuery()->getSingleScalarResult(); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -168,7 +168,7 @@ |
||
168 | 168 | $sqlNames = $this->getSQLColumnNamesArray(); |
169 | 169 | $sql = preg_replace_callback( |
170 | 170 | '/{(\w+)}/', |
171 | - function ($matches) use ($sqlNames) { |
|
171 | + function($matches) use ($sqlNames) { |
|
172 | 172 | $fieldName = trim(end($matches)); |
173 | 173 | if (isset($sqlNames[$fieldName])) { |
174 | 174 | return $sqlNames[$fieldName]; |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | protected function getChannelEntities() |
78 | 78 | { |
79 | 79 | $customEntities = $this->configManager->getProvider('extend')->map( |
80 | - function (ConfigInterface $extendConfig) { |
|
80 | + function(ConfigInterface $extendConfig) { |
|
81 | 81 | $isCustom |
82 | 82 | = $extendConfig->is('is_extend') |
83 | 83 | && $extendConfig->get('owner') === ExtendScope::OWNER_CUSTOM |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $customEntities = array_filter($customEntities); |
90 | 90 | |
91 | 91 | $entities = array_map( |
92 | - function ($setting) { |
|
92 | + function($setting) { |
|
93 | 93 | return $setting['name']; |
94 | 94 | }, |
95 | 95 | $this->settings->getSettings(SettingsProvider::DATA_PATH) |
@@ -134,7 +134,7 @@ |
||
134 | 134 | |
135 | 135 | $assignedEntityNames = $this->aclHelper->apply($qb)->getArrayResult(); |
136 | 136 | $assignedEntityNames = array_map( |
137 | - function ($result) { |
|
137 | + function($result) { |
|
138 | 138 | return $result['name']; |
139 | 139 | }, |
140 | 140 | $assignedEntityNames |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $this->builder->expects($this->exactly(4))->method('add') |
53 | 53 | ->will( |
54 | 54 | $this->returnCallback( |
55 | - function ($filedName, $fieldType) use (&$fields) { |
|
55 | + function($filedName, $fieldType) use (&$fields) { |
|
56 | 56 | $fields[$filedName] = $fieldType; |
57 | 57 | } |
58 | 58 | ) |
@@ -85,7 +85,7 @@ |
||
85 | 85 | ->method('getLabel') |
86 | 86 | ->willReturn($transportName); |
87 | 87 | |
88 | - $registry = new TypesRegistry(); |
|
88 | + $registry = new TypesRegistry(); |
|
89 | 89 | $registry->addChannelType(self::TEST_TYPE, $integrationType); |
90 | 90 | $registry->addTransportType($transportName, self::TEST_TYPE, $transportType); |
91 | 91 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | ->method('query') |
71 | 71 | ->will( |
72 | 72 | $this->returnCallback( |
73 | - function () use ($integrationId, $expected, $existingIntegrationId, $existingChannelId) { |
|
73 | + function() use ($integrationId, $expected, $existingIntegrationId, $existingChannelId) { |
|
74 | 74 | return $this->createFetchStatementMock( |
75 | 75 | [['id_0' => $existingChannelId, 'id_1' => $existingIntegrationId]] |
76 | 76 | ); |
@@ -54,11 +54,11 @@ |
||
54 | 54 | $ownerId = $message->getMessageId(); |
55 | 55 | $jobName = 'oro_channel:aggregate_lifetime_average'; |
56 | 56 | |
57 | - $result = $this->jobRunner->runUnique($ownerId, $jobName, function () use ($body) { |
|
57 | + $result = $this->jobRunner->runUnique($ownerId, $jobName, function() use ($body) { |
|
58 | 58 | /** @var LifetimeValueAverageAggregationRepository $repository */ |
59 | - $repository = $this->registry->getRepository(LifetimeValueAverageAggregation::class); |
|
59 | + $repository = $this->registry->getRepository(LifetimeValueAverageAggregation::class); |
|
60 | 60 | if ($body['force']) { |
61 | - $repository->clearTableData(! $body['use_truncate']); |
|
61 | + $repository->clearTableData(!$body['use_truncate']); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | $repository->aggregate($this->localeSettings->getTimeZone(), $body['force']); |