@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | $isManualEditGranted = $this->orderAddressSecurityProvider->isManualEditGranted($type); |
68 | 68 | $this->initCustomerAddressField($builder, $type, $order, $isManualEditGranted, $isEditEnabled); |
69 | 69 | |
70 | - $builder->add('phone', 'text', ['required' => false, StripTagsExtension::OPTION_NAME => true,]); |
|
70 | + $builder->add('phone', 'text', ['required' => false, StripTagsExtension::OPTION_NAME => true, ]); |
|
71 | 71 | |
72 | 72 | $builder->addEventListener( |
73 | 73 | FormEvents::SUBMIT, |
74 | - function (FormEvent $event) use ($isManualEditGranted) { |
|
74 | + function(FormEvent $event) use ($isManualEditGranted) { |
|
75 | 75 | if (!$isManualEditGranted) { |
76 | 76 | $event->setData(null); |
77 | 77 | } |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | { |
152 | 152 | array_walk_recursive( |
153 | 153 | $addresses, |
154 | - function (&$item) { |
|
154 | + function(&$item) { |
|
155 | 155 | if ($item instanceof AbstractAddress) { |
156 | 156 | $item = $this->addressFormatter->format($item, null, ', '); |
157 | 157 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | array_walk_recursive( |
176 | 176 | $addresses, |
177 | - function ($item, $key) use (&$data) { |
|
177 | + function($item, $key) use (&$data) { |
|
178 | 178 | if ($item instanceof AbstractAddress) { |
179 | 179 | $data[$key] = $this->serializer->normalize($item); |
180 | 180 | } |
@@ -1192,7 +1192,7 @@ discard block |
||
1192 | 1192 | */ |
1193 | 1193 | public function setShippingMethod($shippingMethod) |
1194 | 1194 | { |
1195 | - $this->shippingMethod = (string) $shippingMethod; |
|
1195 | + $this->shippingMethod = (string)$shippingMethod; |
|
1196 | 1196 | |
1197 | 1197 | return $this; |
1198 | 1198 | } |
@@ -1211,7 +1211,7 @@ discard block |
||
1211 | 1211 | */ |
1212 | 1212 | public function setShippingMethodType($shippingMethodType) |
1213 | 1213 | { |
1214 | - $this->shippingMethodType = (string) $shippingMethodType; |
|
1214 | + $this->shippingMethodType = (string)$shippingMethodType; |
|
1215 | 1215 | |
1216 | 1216 | return $this; |
1217 | 1217 | } |
@@ -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 |