@@ -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', |
@@ -208,7 +208,7 @@ discard block |
||
| 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 |
||
| 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() |