Test Setup Failed
Pull Request — master (#798)
by Paul
05:57
created
src/Oro/Bundle/FormBundle/Tests/Behat/Element/Select2Entity.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         if (1 < count($results)) {
32 32
             // Try remove (Add new) records
33
-            $results = array_filter($results, function (NodeElement $result) {
33
+            $results = array_filter($results, function(NodeElement $result) {
34 34
                 return !stripos($result->getText(), 'Add new');
35 35
             });
36 36
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                     implode(
58 58
                         ', ',
59 59
                         array_map(
60
-                            function (NodeElement $result) {
60
+                            function(NodeElement $result) {
61 61
                                 return trim($result->getText());
62 62
                             },
63 63
                             $results
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $this->attempts = 0;
99 99
         $resultSet = $this->getResultSet();
100 100
 
101
-        $results = $this->spin(function (Select2Entity $element) use ($resultSet) {
101
+        $results = $this->spin(function(Select2Entity $element) use ($resultSet) {
102 102
             /** @var NodeElement[] $results */
103 103
             $results = $resultSet->findAll('css', 'li');
104 104
             if (3 == $element->attempts) {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     public function getResultSet()
128 128
     {
129 129
         $this->open();
130
-        $this->waitFor(60, function () {
130
+        $this->waitFor(60, function() {
131 131
             return null === $this->getPage()->find('css', '.select2-results li.select2-searching');
132 132
         });
133 133
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     public function getSuggestedValues()
148 148
     {
149 149
         $suggestions = array_map(
150
-            function (NodeElement $element) {
150
+            function(NodeElement $element) {
151 151
                 return $element->getText();
152 152
             },
153 153
             $this->getSuggestions()
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             if ($openArrow) {
165 165
                 $this->focus();
166 166
                 // Although ajax is already loaded element need some extra time to appear by js animation
167
-                $openArrow->waitFor(60, function (NodeElement $element) {
167
+                $openArrow->waitFor(60, function(NodeElement $element) {
168 168
                     return $element->isVisible();
169 169
                 });
170 170
                 if ($openArrow->isVisible()) {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     {
191 191
         return 0 !== count(array_filter(
192 192
             $this->getPage()->findAll('css', '.select2-search'),
193
-            function (NodeElement $element) {
193
+            function(NodeElement $element) {
194 194
                 return $element->isVisible();
195 195
             }
196 196
         ));
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     {
249 249
         $inputs = array_filter(
250 250
             $this->getPage()->findAll('css', $this->searchInputSelector),
251
-            function (NodeElement $element) {
251
+            function(NodeElement $element) {
252 252
                 return $element->isVisible();
253 253
             }
254 254
         );
Please login to merge, or discard this patch.
src/Oro/Bundle/FormBundle/Tests/Behat/Context/FeatureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $this->waitForAjax();
28 28
 
29 29
         /** @var NodeElement $priceList */
30
-        $priceList = $this->spin(function (FeatureContext $context) use ($value) {
30
+        $priceList = $this->spin(function(FeatureContext $context) use ($value) {
31 31
             $priceList = $context->getPage()->find('named', ['content', $value]);
32 32
 
33 33
             if ($priceList && $priceList->isVisible()) {
Please login to merge, or discard this patch.
src/Oro/Bundle/FormBundle/Tests/Behat/Context/FormContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -531,7 +531,7 @@
 block discarded – undo
531 531
         /** @var NodeElement[] $options */
532 532
         $options = $element->findAll('css', 'option');
533 533
 
534
-        return array_map(function (NodeElement $option) {
534
+        return array_map(function(NodeElement $option) {
535 535
             return $option->getText();
536 536
         }, $options);
537 537
     }
Please login to merge, or discard this patch.
Bundle/AttachmentBundle/Tests/Unit/Formatter/ImageEncodedFormatterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             ->getMockBuilder('Symfony\Component\HttpKernel\Config\FileLocator')
28 28
             ->disableOriginalConstructor()
29 29
             ->getMock();
30
-        $this->formatter   = new ImageEncodedFormatter($this->fileManager, $this->fileLocator);
30
+        $this->formatter = new ImageEncodedFormatter($this->fileManager, $this->fileLocator);
31 31
     }
32 32
 
33 33
     public function testGetFormatterName()
Please login to merge, or discard this patch.
Oro/Bundle/SecurityBundle/Owner/AbstractEntityOwnershipDecisionMaker.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -252,8 +252,7 @@
 block discarded – undo
252 252
         }
253 253
 
254 254
         $ownerId = $domainObject instanceof DomainObjectReference ?
255
-            $domainObject->getOwnerId() :
256
-            $this->getObjectIdIgnoreNull($this->getOwner($domainObject));
255
+            $domainObject->getOwnerId() : $this->getObjectIdIgnoreNull($this->getOwner($domainObject));
257 256
         if ($metadata->isBusinessUnitOwned()) {
258 257
             return $this->isUserBusinessUnit($this->getObjectId($user), $ownerId, $deep, $organizationId);
259 258
         } elseif ($metadata->isUserOwned()) {
Please login to merge, or discard this patch.
src/Oro/Bundle/SecurityBundle/Authentication/TokenSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         return implode(
77 77
             ',',
78 78
             array_map(
79
-                function (RoleInterface $role) {
79
+                function(RoleInterface $role) {
80 80
                     return $role->getRole();
81 81
                 },
82 82
                 $token->getRoles()
Please login to merge, or discard this patch.
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.