Test Setup Failed
Push — master ( 6620a8...6443ba )
by
unknown
05:26
created
Tests/Unit/DependencyInjection/Compiler/DetailedLogsHandlerPassTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         $this->containerBuilder->expects($this->exactly(5))
92 92
             ->method('findDefinition')
93
-            ->will($this->returnCallback(function ($handlerId) {
93
+            ->will($this->returnCallback(function($handlerId) {
94 94
                 switch ($handlerId) {
95 95
                     case 'monolog.logger':
96 96
                         $logger = $this->createMock(Definition::class);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
         $this->containerBuilder->expects($this->exactly(6))
170 170
             ->method('findDefinition')
171
-            ->will($this->returnCallback(function ($handlerId) {
171
+            ->will($this->returnCallback(function($handlerId) {
172 172
                 switch ($handlerId) {
173 173
                     case 'monolog.logger':
174 174
                     case 'monolog.logger.doctrine':
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
                         $handler = $this->createMock(Definition::class);
237 237
                         $handler->expects($this->once())
238 238
                             ->method('addMethodCall')
239
-                            ->with('setHandler', $this->callback(function ($args) {
239
+                            ->with('setHandler', $this->callback(function($args) {
240 240
                                 return (string)$args[0] == 'monolog.handler.detailed_logs_nested';
241 241
                             }));
242 242
                         return $handler;
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
         $this->containerBuilder->expects($this->exactly(2))
269 269
             ->method('findDefinition')
270
-            ->will($this->returnCallback(function ($handlerId) {
270
+            ->will($this->returnCallback(function($handlerId) {
271 271
                 switch ($handlerId) {
272 272
                     case 'monolog.logger':
273 273
                         $detailedLogsHandlerReference = $this->createMock(Reference::class);
Please login to merge, or discard this patch.
src/Oro/Bundle/EntityConfigBundle/Attribute/Entity/AttributeFamily.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -365,7 +365,7 @@
 block discarded – undo
365 365
      */
366 366
     public function toString()
367 367
     {
368
-        return 'code:'.$this->getCode();
368
+        return 'code:' . $this->getCode();
369 369
     }
370 370
 
371 371
     /**
Please login to merge, or discard this patch.
Bundle/EntityConfigBundle/Tests/Unit/Form/Type/AttributeGroupTypeTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $repositoryLocalization->expects($this->any())
48 48
             ->method('find')
49 49
             ->willReturnCallback(
50
-                function ($id) {
50
+                function($id) {
51 51
                     return $this->getEntity(Localization::class, ['id' => $id]);
52 52
                 }
53 53
             );
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $repositoryLocalizedFallbackValue->expects($this->any())
57 57
             ->method('find')
58 58
             ->willReturnCallback(
59
-                function ($id) {
59
+                function($id) {
60 60
                     return $this->getEntity(LocalizedFallbackValue::class, ['id' => $id]);
61 61
                 }
62 62
             );
Please login to merge, or discard this patch.
Tests/Unit/EventListener/AttributeFamilyFormViewListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $this->translator->expects($this->any())
37 37
             ->method('trans')
38 38
             ->willReturnCallback(
39
-                function ($id) {
39
+                function($id) {
40 40
                     return $id . '.trans';
41 41
                 }
42 42
             );
Please login to merge, or discard this patch.
EntityConfigBundle/EventListener/DeletedAttributeRelationListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function setTopic($topic)
53 53
     {
54
-        $this->topic = (string) $topic;
54
+        $this->topic = (string)$topic;
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Manager/AutoResponseManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     protected function createReplyEmailModels(Email $email, Collection $rules)
209 209
     {
210
-        return $rules->map(function (AutoResponseRule $rule) use ($email) {
210
+        return $rules->map(function(AutoResponseRule $rule) use ($email) {
211 211
             $emailModel = $this->emailBuilder->createReplyEmailModel($email);
212 212
             $emailModel->setFrom($rule->getMailbox()->getEmail());
213 213
             $emailModel->setTo([$email->getFromEmailAddress()->getEmail()]);
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     public function getApplicableRules(Mailbox $mailbox, Email $email)
271 271
     {
272
-        return $mailbox->getAutoResponseRules()->filter(function (AutoResponseRule $rule) use ($email) {
272
+        return $mailbox->getAutoResponseRules()->filter(function(AutoResponseRule $rule) use ($email) {
273 273
             return $rule->isActive()
274 274
             && $this->isExprApplicable($email, $this->createRuleExpr($rule, $email))
275 275
             && $rule->getCreatedAt() < $email->getSentAt();
@@ -333,11 +333,11 @@  discard block
 block discarded – undo
333 333
             throw new \LogicException('Number of operators have to be about 1 less than number of exprs.');
334 334
         }
335 335
 
336
-        $exprOperators = array_map(function ($operator) {
336
+        $exprOperators = array_map(function($operator) {
337 337
             return $this->filterOperatorToExprMap[$operator];
338 338
         }, $operators);
339 339
 
340
-        return array_reduce($exprs, function ($carry, $expr) use (&$exprOperators) {
340
+        return array_reduce($exprs, function($carry, $expr) use (&$exprOperators) {
341 341
             if (!$carry) {
342 342
                 return $expr;
343 343
             }
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
                 return [];
395 395
             }
396 396
 
397
-            return array_map(function ($key) use ($field) {
397
+            return array_map(function($key) use ($field) {
398 398
                 return sprintf('$%s', str_replace(static::INDEX_PLACEHOLDER, $key, $field));
399 399
             }, $keys);
400 400
         }
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Tests/Unit/Manager/AutoResponseManagerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $translator = $this->createMock('Symfony\Component\Translation\TranslatorInterface');
63 63
         $translator->expects($this->any())
64 64
             ->method('trans')
65
-            ->will($this->returnCallback(function ($id) {
65
+            ->will($this->returnCallback(function($id) {
66 66
                 return $id;
67 67
             }));
68 68
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
         $results = [];
209 209
         foreach ($definitionNames as $definition) {
210
-            $results[] = array_map(function ($data) use ($definition) {
210
+            $results[] = array_map(function($data) use ($definition) {
211 211
                 $body = new EmailBody();
212 212
                 $body->setBodyContent($data['body']);
213 213
 
Please login to merge, or discard this patch.
src/Oro/Bundle/EmailBundle/Tests/Unit/EventListener/EntityListenerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     protected function setUp()
61 61
     {
62
-        $this->emailOwnerManager    =
62
+        $this->emailOwnerManager =
63 63
             $this->getMockBuilder('Oro\Bundle\EmailBundle\Entity\Manager\EmailOwnerManager')
64 64
                 ->disableOriginalConstructor()
65 65
                 ->getMock();
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             ->will($this->returnValue([]));
217 217
         $this->emailOwnerManager->expects($this->once())
218 218
             ->method('handleChangedAddresses')
219
-            ->willReturn([[],[]]);
219
+            ->willReturn([[], []]);
220 220
         $this->emailActivityManager->expects($this->once())
221 221
             ->method('updateActivities')
222 222
             ->with($createdEmails);
Please login to merge, or discard this patch.
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.