Test Setup Failed
Push — master ( f57cb2...89eab9 )
by
unknown
09:12 queued 04:52
created
src/Oro/Bundle/EmailBundle/EventListener/MailboxProcessTriggerListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         parent::onFlush($args);
59 59
         $this->emailBodies = array_filter(
60 60
             $this->emailBodies,
61
-            function (EmailBody $body) {
61
+            function(EmailBody $body) {
62 62
                 return $body->getEmail() && !$body->getEmail()->getThread();
63 63
             }
64 64
         );
Please login to merge, or discard this patch.
Oro/Bundle/EmailBundle/EventListener/ActivityListPreQueryBuildListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             $email = $this->doctrineHelper->getEntity(Email::ENTITY_CLASS, $event->getTargetId());
41 41
             if ($email->getThread()) {
42 42
                 $emailIds = array_map(
43
-                    function ($emailEntity) {
43
+                    function($emailEntity) {
44 44
                         return $emailEntity->getId();
45 45
                     },
46 46
                     $email->getThread()->getEmails()->toArray()
Please login to merge, or discard this patch.
Oro/Bundle/EmailBundle/EventListener/ReplaceEmbeddedAttachmentsListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/EventListener/EntityListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Provider/EmailActivityListProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -428,7 +428,7 @@
 block discarded – undo
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
                         }
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Mailer/Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Async/Manager/AssociationManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             });
Please login to merge, or discard this patch.
Oro/Bundle/TranslationBundle/Tests/Unit/Translation/DebugTranslatorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/Oro/Bundle/TranslationBundle/Tests/Unit/Translation/TranslatorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.