@@ -30,7 +30,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | ); |
@@ -27,7 +27,7 @@ |
||
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()) { |
@@ -531,7 +531,7 @@ |
||
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 | } |
@@ -27,7 +27,7 @@ |
||
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() |
@@ -252,8 +252,7 @@ |
||
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()) { |
@@ -76,7 +76,7 @@ |
||
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() |
@@ -100,7 +100,7 @@ discard block |
||
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 |
||
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 |
@@ -36,7 +36,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -105,7 +105,7 @@ discard block |
||
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 |
||
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', |