@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function replace(EmailBodyLoaded $event) |
14 | 14 | { |
15 | - $emailBody = $event->getEmail()->getEmailBody(); |
|
15 | + $emailBody = $event->getEmail()->getEmailBody(); |
|
16 | 16 | if ($emailBody !== null) { |
17 | 17 | $content = $emailBody->getBodyContent(); |
18 | 18 | $attachments = $emailBody->getAttachments(); |
@@ -236,7 +236,7 @@ |
||
236 | 236 | */ |
237 | 237 | protected function getEmailFilter() |
238 | 238 | { |
239 | - return function ($entity) { |
|
239 | + return function($entity) { |
|
240 | 240 | return $entity instanceof Email; |
241 | 241 | }; |
242 | 242 | } |
@@ -428,7 +428,7 @@ |
||
428 | 428 | $activityOwner->setOrganization($owner->getOrganization()); |
429 | 429 | $user = $owner->getOwner(); |
430 | 430 | if (!$owner->getOwner() && $owner->getMailboxOwner()) { |
431 | - $settings = $owner->getMailboxOwner()->getProcessSettings(); |
|
431 | + $settings = $owner->getMailboxOwner()->getProcessSettings(); |
|
432 | 432 | if ($settings) { |
433 | 433 | $user = $settings->getOwner(); |
434 | 434 | } |
@@ -234,7 +234,7 @@ |
||
234 | 234 | $guesser = ExtensionGuesser::getInstance(); |
235 | 235 | $body = preg_replace_callback( |
236 | 236 | '/<img(.*)src(\s*)=(\s*)["\'](.*)["\']/U', |
237 | - function ($matches) use ($message, $guesser, $model) { |
|
237 | + function($matches) use ($message, $guesser, $model) { |
|
238 | 238 | if (count($matches) === 5) { |
239 | 239 | // 1st match contains any data between '<img' and 'src' parts (e.g. 'width=100') |
240 | 240 | $imgConfig = $matches[1]; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | $target = $this->doctrineHelper->getEntityRepository($targetClass)->find($targetId); |
81 | 81 | $countNewAssociations = 0; |
82 | - $emails =$this->emailManager->findEmailsByIds($ids); |
|
82 | + $emails = $this->emailManager->findEmailsByIds($ids); |
|
83 | 83 | foreach ($emails as $email) { |
84 | 84 | $result = $this->emailActivityManager->addAssociation($email, $target); |
85 | 85 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $ownerIds = (new BufferedIdentityQueryResultIterator($ownerIdsQb)) |
117 | 117 | ->setBufferSize(self::OWNER_IDS_BUFFER_SIZE) |
118 | - ->setPageLoadedCallback(function (array $rows) use ($emailOwnerClassName) { |
|
118 | + ->setPageLoadedCallback(function(array $rows) use ($emailOwnerClassName) { |
|
119 | 119 | $ownerIds = array_map('current', $rows); |
120 | 120 | if ($this->queued) { |
121 | 121 | $this->producer->send( |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $emailIds = []; |
158 | 158 | $emails = (new BufferedIdentityQueryResultIterator($emailQB)) |
159 | 159 | ->setBufferSize(self::EMAIL_BUFFER_SIZE) |
160 | - ->setPageCallback(function () use ( |
|
160 | + ->setPageCallback(function() use ( |
|
161 | 161 | &$owner, |
162 | 162 | &$emailIds, |
163 | 163 | &$ownerClassName, |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | { |
234 | 234 | return (new BufferedIdentityQueryResultIterator($ownerQb)) |
235 | 235 | ->setBufferSize(1) |
236 | - ->setPageCallback(function () { |
|
236 | + ->setPageCallback(function() { |
|
237 | 237 | $this->getEmailEntityManager()->flush(); |
238 | 238 | $this->getEmailEntityManager()->clear(); |
239 | 239 | }); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $loader = $this->createMock(LoaderInterface::class); |
157 | 157 | $loader->expects($this->any()) |
158 | 158 | ->method('load') |
159 | - ->willReturnCallback(function ($resource, $locale, $domain) use ($messages) { |
|
159 | + ->willReturnCallback(function($resource, $locale, $domain) use ($messages) { |
|
160 | 160 | return $this->getCatalogue($locale, $messages[$locale]); |
161 | 161 | }); |
162 | 162 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | ->willReturn($strategy); |
178 | 178 | $strategyProvider->expects($this->any()) |
179 | 179 | ->method('getFallbackLocales') |
180 | - ->willReturnCallback(function ($strategy, $locale) use ($fallbackLocales) { |
|
180 | + ->willReturnCallback(function($strategy, $locale) use ($fallbackLocales) { |
|
181 | 181 | if ('en' !== $locale) { |
182 | 182 | return $fallbackLocales; |
183 | 183 | } |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | $loader = $this->createMock(LoaderInterface::class); |
205 | 205 | $loader->expects($this->any()) |
206 | 206 | ->method('load') |
207 | - ->willReturnCallback(function ($resource, $locale, $domain) use ($messages) { |
|
207 | + ->willReturnCallback(function($resource, $locale, $domain) use ($messages) { |
|
208 | 208 | return $this->getCatalogue($locale, $messages[$locale]); |
209 | 209 | }); |
210 | 210 | |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | ->willReturn($strategy); |
227 | 227 | $strategyProvider->expects($this->any()) |
228 | 228 | ->method('getFallbackLocales') |
229 | - ->willReturnCallback(function ($strategy, $loc) use ($locale, $fallbackLocales) { |
|
229 | + ->willReturnCallback(function($strategy, $loc) use ($locale, $fallbackLocales) { |
|
230 | 230 | if ($loc === $locale) { |
231 | 231 | return $fallbackLocales; |
232 | 232 | } |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | $strategyProvider->expects($this->any()) |
413 | 413 | ->method('getFallbackLocales') |
414 | 414 | ->with($strategy) |
415 | - ->willReturnCallback(function ($strategy, $loc) use ($locale, $fallbackLocales) { |
|
415 | + ->willReturnCallback(function($strategy, $loc) use ($locale, $fallbackLocales) { |
|
416 | 416 | if ($loc === $locale) { |
417 | 417 | return $fallbackLocales; |
418 | 418 | } |
@@ -236,7 +236,7 @@ |
||
236 | 236 | [ |
237 | 237 | 'cache_dir' => $tmpDir, |
238 | 238 | 'resource_files' => array_map( |
239 | - function (array $localeResources) { |
|
239 | + function(array $localeResources) { |
|
240 | 240 | return array_unique($localeResources); |
241 | 241 | }, |
242 | 242 | $this->resourceFiles |
@@ -45,7 +45,7 @@ |
||
45 | 45 | return; |
46 | 46 | } |
47 | 47 | |
48 | - $enumEntities = $this->getEnumEntitiesWithFields($logger, $enumEntityIds); |
|
48 | + $enumEntities = $this->getEnumEntitiesWithFields($logger, $enumEntityIds); |
|
49 | 49 | |
50 | 50 | $this->processChange($logger, $enumEntities, $dryRun); |
51 | 51 | } |