@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $this->orderAddressManager->expects($this->any())->method('updateFromAbstract') |
| 122 | 122 | ->will( |
| 123 | 123 | $this->returnCallback( |
| 124 | - function (CustomerAddress $address = null, OrderAddress $orderAddress = null) { |
|
| 124 | + function(CustomerAddress $address = null, OrderAddress $orderAddress = null) { |
|
| 125 | 125 | if (!$orderAddress) { |
| 126 | 126 | $orderAddress = new OrderAddress(); |
| 127 | 127 | } |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | $this->orderAddressManager->expects($this->any())->method('getEntityByIdentifier') |
| 293 | 293 | ->will( |
| 294 | 294 | $this->returnCallback( |
| 295 | - function ($identifier) use ($groupedAddresses) { |
|
| 295 | + function($identifier) use ($groupedAddresses) { |
|
| 296 | 296 | foreach ($groupedAddresses as $groupedAddressesGroup) { |
| 297 | 297 | if (array_key_exists($identifier, $groupedAddressesGroup)) { |
| 298 | 298 | return $groupedAddressesGroup[$identifier]; |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | $this->orderAddressManager->expects($this->any())->method('updateFromAbstract') |
| 308 | 308 | ->will( |
| 309 | 309 | $this->returnCallback( |
| 310 | - function (CustomerAddress $address) { |
|
| 310 | + function(CustomerAddress $address) { |
|
| 311 | 311 | $orderAddress = new OrderAddress(); |
| 312 | 312 | $orderAddress->setCountry($address->getCountry()) |
| 313 | 313 | ->setRegion($address->getRegion()) |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | $this->orderAddressManager->expects($this->any())->method('updateFromAbstract') |
| 327 | 327 | ->will( |
| 328 | 328 | $this->returnCallback( |
| 329 | - function (CustomerAddress $address = null, OrderAddress $orderAddress = null) { |
|
| 329 | + function(CustomerAddress $address = null, OrderAddress $orderAddress = null) { |
|
| 330 | 330 | if (!$orderAddress) { |
| 331 | 331 | $orderAddress = new OrderAddress(); |
| 332 | 332 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | return [ |
| 68 | 68 | [ |
| 69 | - 'email' => self::USER_WITH_CHARGE_AUTHORIZED_PAYMENTS_PERMISSION.'@test.com', |
|
| 69 | + 'email' => self::USER_WITH_CHARGE_AUTHORIZED_PAYMENTS_PERMISSION . '@test.com', |
|
| 70 | 70 | 'username' => self::USER_WITH_CHARGE_AUTHORIZED_PAYMENTS_PERMISSION, |
| 71 | 71 | 'password' => self::USER_WITH_CHARGE_AUTHORIZED_PAYMENTS_PERMISSION, |
| 72 | 72 | 'firstname' => 'User', |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | 'roles' => [self::ROLE_CHARGE_AUTHORIZED_PAYMENTS_PERMISSION], |
| 75 | 75 | ], |
| 76 | 76 | [ |
| 77 | - 'email' => self::USER_PAYMENT_HISTORY_VIEWER.'@test.com', |
|
| 77 | + 'email' => self::USER_PAYMENT_HISTORY_VIEWER . '@test.com', |
|
| 78 | 78 | 'username' => self::USER_PAYMENT_HISTORY_VIEWER, |
| 79 | 79 | 'password' => self::USER_PAYMENT_HISTORY_VIEWER, |
| 80 | 80 | 'firstname' => 'User', |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $repositoryLocalization->expects($this->any()) |
| 54 | 54 | ->method('find') |
| 55 | 55 | ->willReturnCallback( |
| 56 | - function ($id) { |
|
| 56 | + function($id) { |
|
| 57 | 57 | return $this->getEntity(Localization::class, ['id' => $id]); |
| 58 | 58 | } |
| 59 | 59 | ); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $repositoryLocalizedFallbackValue->expects($this->any()) |
| 63 | 63 | ->method('find') |
| 64 | 64 | ->willReturnCallback( |
| 65 | - function ($id) { |
|
| 65 | + function($id) { |
|
| 66 | 66 | return $this->getEntity(LocalizedFallbackValue::class, ['id' => $id]); |
| 67 | 67 | } |
| 68 | 68 | ); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | use UserUtilityTrait; |
| 34 | 34 | |
| 35 | 35 | const DEFAULT_WEB_CATALOG_NAME = 'Default Web Catalog'; |
| 36 | - const DEFAULT_WEB_CATALOG_DESC= 'Default Web Catalog description'; |
|
| 36 | + const DEFAULT_WEB_CATALOG_DESC = 'Default Web Catalog description'; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @var ContainerInterface |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | { |
| 91 | 91 | return preg_replace_callback( |
| 92 | 92 | '/"(\/bundles\/[^"]*\.jpg)"/', |
| 93 | - function ($matches) use ($subPath) { |
|
| 93 | + function($matches) use ($subPath) { |
|
| 94 | 94 | return sprintf('"%s%s"', $subPath, $matches[1]); |
| 95 | 95 | }, |
| 96 | 96 | $content |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | return preg_replace_callback( |
| 108 | 108 | '/href=("|\')(\/[^"\']+)\1/', |
| 109 | - function ($matches) use ($subPath) { |
|
| 109 | + function($matches) use ($subPath) { |
|
| 110 | 110 | return sprintf('href=%1$s%2$s%3$s%1$s', $matches[1], $subPath, $matches[2]); |
| 111 | 111 | }, |
| 112 | 112 | $content |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->translator->expects($this->any()) |
| 35 | 35 | ->method('trans') |
| 36 | 36 | ->willReturnCallback( |
| 37 | - function ($id) { |
|
| 37 | + function($id) { |
|
| 38 | 38 | return $id . '.trans'; |
| 39 | 39 | } |
| 40 | 40 | ); |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | // filter for only those websites which have current `$webCatalogId` assigned |
| 174 | 174 | $relatedWebsiteIds = array_filter( |
| 175 | 175 | $assignedWebCatalogs, |
| 176 | - function ($relatedWebsiteWebCatalogId) use ($webCatalogId) { |
|
| 176 | + function($relatedWebsiteWebCatalogId) use ($webCatalogId) { |
|
| 177 | 177 | return $webCatalogId == $relatedWebsiteWebCatalogId; |
| 178 | 178 | } |
| 179 | 179 | ); |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | ->method('round') |
| 61 | 61 | ->will( |
| 62 | 62 | $this->returnCallback( |
| 63 | - function ($value) { |
|
| 63 | + function($value) { |
|
| 64 | 64 | return round($value, 0, PHP_ROUND_HALF_UP); |
| 65 | 65 | } |
| 66 | 66 | ) |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | ->method('round') |
| 61 | 61 | ->will( |
| 62 | 62 | $this->returnCallback( |
| 63 | - function ($value) { |
|
| 63 | + function($value) { |
|
| 64 | 64 | return round($value, 0, PHP_ROUND_HALF_UP); |
| 65 | 65 | } |
| 66 | 66 | ) |