Test Setup Failed
Push — master ( 6620a8...6443ba )
by
unknown
05:26
created
src/Oro/Bundle/SecurityBundle/Acl/Cache/AclCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         // get access to field aces in order to clone their identity
101 101
         // to prevent serialize/unserialize bug with few field aces per one sid
102 102
 
103
-        $privatePropReader = function (Acl $acl, $field) {
103
+        $privatePropReader = function(Acl $acl, $field) {
104 104
             return $acl->$field;
105 105
         };
106 106
         $privatePropReader = \Closure::bind($privatePropReader, null, $acl);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $aces = $privatePropReader($acl, 'classFieldAces');
109 109
         $aces = array_merge($aces, $privatePropReader($acl, 'objectFieldAces'));
110 110
 
111
-        $privatePropWriter = function (FieldEntry $entry, $field, $value) {
111
+        $privatePropWriter = function(FieldEntry $entry, $field, $value) {
112 112
             $entry->$field = $value;
113 113
         };
114 114
 
Please login to merge, or discard this patch.
NotificationBundle/Tests/Unit/Manager/EmailNotificationSenderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             ->method('get')
37 37
             ->willReturnMap([
38 38
                 ['oro_notification.email_notification_sender_email', false, false, null, $testSenderEmail],
39
-                ['oro_notification.email_notification_sender_name', false, false, null, $testSenderName ]
39
+                ['oro_notification.email_notification_sender_name', false, false, null, $testSenderName]
40 40
             ])
41 41
         ;
42 42
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             ->method('get')
135 135
             ->willReturnMap([
136 136
                 ['oro_notification.email_notification_sender_email', false, false, null, $testSenderEmail],
137
-                ['oro_notification.email_notification_sender_name', false, false, null, $testSenderName ]
137
+                ['oro_notification.email_notification_sender_name', false, false, null, $testSenderName]
138 138
             ])
139 139
         ;
140 140
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             ->method('get')
190 190
             ->willReturnMap([
191 191
                 ['oro_notification.email_notification_sender_email', false, false, null, $testSenderEmail],
192
-                ['oro_notification.email_notification_sender_name', false, false, null, $testSenderName ]
192
+                ['oro_notification.email_notification_sender_name', false, false, null, $testSenderName]
193 193
             ])
194 194
         ;
195 195
 
Please login to merge, or discard this patch.
Tests/Unit/Form/EventListener/AdditionalEmailsSubscriberTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 'additionalEmailAssociations',
106 106
                 $this->anything(),
107 107
                 $this->callback(
108
-                    function ($options) {
108
+                    function($options) {
109 109
                         $expectedChoices = [
110 110
                             'groups.owner' => 'Groups > Owner',
111 111
                             'users' => 'Users',
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                 'additionalEmailAssociations',
193 193
                 $this->anything(),
194 194
                 $this->callback(
195
-                    function ($options) {
195
+                    function($options) {
196 196
                         $expectedChoices = [
197 197
                             'groups.owner' => 'Groups > Owner',
198 198
                             'users' => 'Users',
Please login to merge, or discard this patch.
src/Oro/Bundle/NotificationBundle/Entity/RecipientList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     {
209 209
         // get user emails
210 210
         $results = $this->getUsers()->map(
211
-            function (User $user) {
211
+            function(User $user) {
212 212
                 return sprintf(
213 213
                     '%s %s <%s>',
214 214
                     $user->getFirstName(),
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $results = array_merge(
222 222
             $results,
223 223
             $this->getGroups()->map(
224
-                function (Group $group) use (&$results) {
224
+                function(Group $group) use (&$results) {
225 225
                     return sprintf(
226 226
                         '%s (group)',
227 227
                         $group->getName()
Please login to merge, or discard this patch.
Oro/Bundle/NotificationBundle/Entity/Repository/RecipientListRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         // get user emails
21 21
         $emails = $recipientList->getUsers()->map(
22
-            function (EmailHolderInterface $user) {
22
+            function(EmailHolderInterface $user) {
23 23
                 return $user->getEmail();
24 24
             }
25 25
         );
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     protected function addGroupUsersEmails(ArrayCollection $emails, RecipientList $recipientList)
42 42
     {
43 43
         $groupIds = $recipientList->getGroups()->map(
44
-            function ($group) {
44
+            function($group) {
45 45
                 return $group->getId();
46 46
             }
47 47
         )->toArray();
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             ->getResult();
61 61
 
62 62
         array_map(
63
-            function ($groupEmail) use ($emails) {
63
+            function($groupEmail) use ($emails) {
64 64
                 $emails->add($groupEmail['email']);
65 65
             },
66 66
             $groupUsers
Please login to merge, or discard this patch.
Bundle/NotificationBundle/Form/EventListener/AdditionalEmailsSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,9 +136,9 @@
 block discarded – undo
136 136
             $fieldLabel = $this->getFieldLabel($entityName, $fieldName);
137 137
 
138 138
             if (array_key_exists(EmailHolderInterface::class, class_implements($mapping['targetEntity']))) {
139
-                $fieldPath = ($currentPath ? implode('.', $currentPath).'.' : ''). $fieldName;
139
+                $fieldPath = ($currentPath ? implode('.', $currentPath) . '.' : '') . $fieldName;
140 140
                 $fieldLabelPath =
141
-                    ($currentLabelPath ? implode(self::LABEL_GLUE, $currentLabelPath).self::LABEL_GLUE : '').
141
+                    ($currentLabelPath ? implode(self::LABEL_GLUE, $currentLabelPath) . self::LABEL_GLUE : '') .
142 142
                     $fieldLabel;
143 143
                 $choices[$fieldPath] = $fieldLabelPath;
144 144
             }
Please login to merge, or discard this patch.
src/Oro/Bundle/NotificationBundle/Form/Type/EmailNotificationType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 'label'         => 'oro.notification.emailnotification.event.label',
86 86
                 'class'         => 'OroNotificationBundle:Event',
87 87
                 'property'      => 'name',
88
-                'query_builder' => function (EntityRepository $er) {
88
+                'query_builder' => function(EntityRepository $er) {
89 89
                     return $er->createQueryBuilder('c')->orderBy('c.name', 'ASC');
90 90
                 },
91 91
                 'configs'       => [
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $view->vars['listenChangeElements'] = array_filter(
147 147
             array_map(
148
-                function (FormView $view) {
148
+                function(FormView $view) {
149 149
                     if ($view->vars['name'] === 'entityName') {
150 150
                         return '#' . $view->vars['id'];
151 151
                     }
Please login to merge, or discard this patch.
Oro/Bundle/NotificationBundle/Event/Handler/EmailNotificationAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         }
107 107
 
108 108
         $emails = array_map(
109
-            function (EmailHolderInterface $entity) {
109
+            function(EmailHolderInterface $entity) {
110 110
                 return $entity->getEmail();
111 111
             },
112 112
             $entities
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         // Recursively leave only string values
135 135
         array_walk_recursive(
136 136
             $values,
137
-            function (&$item) {
137
+            function(&$item) {
138 138
                 if ($item instanceof EmailHolderInterface) {
139 139
                     $item = $item->getEmail();
140 140
                 }
Please login to merge, or discard this patch.
Oro/Bundle/DataAuditBundle/Service/EntityChangesToAuditEntryConverter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,10 +224,10 @@
 block discarded – undo
224 224
         }
225 225
 
226 226
         if ($audit->getVersion() < 2) {
227
-            return $defaultAction ? : AbstractAudit::ACTION_CREATE;
227
+            return $defaultAction ?: AbstractAudit::ACTION_CREATE;
228 228
         }
229 229
 
230
-        return $defaultAction ? : AbstractAudit::ACTION_UPDATE;
230
+        return $defaultAction ?: AbstractAudit::ACTION_UPDATE;
231 231
     }
232 232
 
233 233
     /**
Please login to merge, or discard this patch.