@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | ->method('round') |
| 51 | 51 | ->will( |
| 52 | 52 | $this->returnCallback( |
| 53 | - function ($value) { |
|
| 53 | + function($value) { |
|
| 54 | 54 | return round($value, 2, PHP_ROUND_HALF_UP); |
| 55 | 55 | } |
| 56 | 56 | ) |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | ->method('trans') |
| 100 | 100 | ->with('oro.order.subtotals.' . DiscountSubtotalProvider::TYPE) |
| 101 | 101 | ->willReturn(ucfirst(DiscountSubtotalProvider::TYPE)); |
| 102 | - $subtotalMock = $this->createMock('Oro\Bundle\PricingBundle\SubtotalProcessor\Model\Subtotal'); |
|
| 102 | + $subtotalMock = $this->createMock('Oro\Bundle\PricingBundle\SubtotalProcessor\Model\Subtotal'); |
|
| 103 | 103 | $this->lineItemSubtotal->expects($this->once()) |
| 104 | 104 | ->method('getSubtotal') |
| 105 | 105 | ->willReturn($subtotalMock); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | ->method('round') |
| 37 | 37 | ->will( |
| 38 | 38 | $this->returnCallback( |
| 39 | - function ($value) { |
|
| 39 | + function($value) { |
|
| 40 | 40 | return round($value, 2, PHP_ROUND_HALF_UP); |
| 41 | 41 | } |
| 42 | 42 | ) |
@@ -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 | ); |
@@ -79,13 +79,13 @@ |
||
| 79 | 79 | |
| 80 | 80 | $translatableEntity->expects($this->any())->method('setDefaultOptions')->will( |
| 81 | 81 | $this->returnCallback( |
| 82 | - function (OptionsResolver $resolver) use ($choices) { |
|
| 83 | - $choiceList = function (Options $options) use ($choices) { |
|
| 82 | + function(OptionsResolver $resolver) use ($choices) { |
|
| 83 | + $choiceList = function(Options $options) use ($choices) { |
|
| 84 | 84 | $className = $options->offsetGet('class'); |
| 85 | 85 | if (array_key_exists($className, $choices)) { |
| 86 | 86 | return new ArrayChoiceList( |
| 87 | 87 | $choices[$className], |
| 88 | - function ($item) { |
|
| 88 | + function($item) { |
|
| 89 | 89 | if ($item instanceof Country) { |
| 90 | 90 | return $item->getIso2Code(); |
| 91 | 91 | } |