@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | */ |
| 178 | 178 | public function addLineItem(LineItem $lineItem, ShoppingList $shoppingList, $flush = true, $concatNotes = false) |
| 179 | 179 | { |
| 180 | - $func = function (LineItem $duplicate) use ($lineItem, $concatNotes) { |
|
| 180 | + $func = function(LineItem $duplicate) use ($lineItem, $concatNotes) { |
|
| 181 | 181 | $this->mergeLineItems($lineItem, $duplicate, $concatNotes); |
| 182 | 182 | }; |
| 183 | 183 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | */ |
| 198 | 198 | public function updateLineItem(LineItem $lineItem, ShoppingList $shoppingList) |
| 199 | 199 | { |
| 200 | - $func = function (LineItem $duplicate) use ($lineItem) { |
|
| 200 | + $func = function(LineItem $duplicate) use ($lineItem) { |
|
| 201 | 201 | if ($lineItem->getQuantity() > 0) { |
| 202 | 202 | $this->updateLineItemQuantity($lineItem, $duplicate); |
| 203 | 203 | } else { |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | $shoppingList = $repository->findByUserAndId($this->aclHelper, $currentListId, $this->getWebsiteId()); |
| 405 | 405 | } |
| 406 | 406 | if (!$shoppingList) { |
| 407 | - $shoppingList = $repository->findAvailableForCustomerUser($this->aclHelper, false, $this->getWebsiteId()); |
|
| 407 | + $shoppingList = $repository->findAvailableForCustomerUser($this->aclHelper, false, $this->getWebsiteId()); |
|
| 408 | 408 | } |
| 409 | 409 | if ($create && !$shoppingList instanceof ShoppingList) { |
| 410 | 410 | $label = $this->translator->trans($label ?: 'oro.shoppinglist.default.label'); |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | |
| 124 | 124 | $boolHandler->expects($this->once()) |
| 125 | 125 | ->method('getHumanReadableValue') |
| 126 | - ->willReturnCallback(function ($value) { |
|
| 126 | + ->willReturnCallback(function($value) { |
|
| 127 | 127 | return $value ? 'Yes' : 'No'; |
| 128 | 128 | }); |
| 129 | 129 | |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | private function isProductSupportsUnit(Product $product, ProductUnit $unit) |
| 83 | 83 | { |
| 84 | 84 | $productUnits = $product->getUnitPrecisions()->map( |
| 85 | - function (ProductUnitPrecision $unitPrecision) { |
|
| 85 | + function(ProductUnitPrecision $unitPrecision) { |
|
| 86 | 86 | return $unitPrecision->getUnit(); |
| 87 | 87 | } |
| 88 | 88 | ); |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | static::assertSame($configData['methodConfigs'][0]['method'], $config->getMethod()); |
| 145 | 145 | static::assertSame($configData['rule']['name'], $config->getMethodConfigsRule()->getRule()->getName()); |
| 146 | 146 | static::assertSame( |
| 147 | - (int) $configData['rule']['sortOrder'], |
|
| 147 | + (int)$configData['rule']['sortOrder'], |
|
| 148 | 148 | $config->getMethodConfigsRule()->getRule()->getSortOrder() |
| 149 | 149 | ); |
| 150 | 150 | static::assertSame( |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | private function createErrorResponse(int $code): \StdClass |
| 41 | 41 | { |
| 42 | - return (object) [ |
|
| 42 | + return (object)[ |
|
| 43 | 43 | 'HighestSeverity' => FedexRateServiceResponse::SEVERITY_ERROR, |
| 44 | - 'Notifications' => (object) [ |
|
| 44 | + 'Notifications' => (object)[ |
|
| 45 | 45 | 'Code' => $code, |
| 46 | 46 | ] |
| 47 | 47 | ]; |
@@ -52,16 +52,16 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | private function createOkResponse(): \StdClass |
| 54 | 54 | { |
| 55 | - return (object) [ |
|
| 55 | + return (object)[ |
|
| 56 | 56 | 'HighestSeverity' => FedexRateServiceResponse::SEVERITY_SUCCESS, |
| 57 | - 'Notifications' => (object) [ |
|
| 57 | + 'Notifications' => (object)[ |
|
| 58 | 58 | 'Code' => 0, |
| 59 | 59 | ], |
| 60 | - 'RateReplyDetails' => (object) [ |
|
| 60 | + 'RateReplyDetails' => (object)[ |
|
| 61 | 61 | 'ServiceType' => 'service', |
| 62 | - 'RatedShipmentDetails' => (object) [ |
|
| 63 | - 'ShipmentRateDetail' => (object) [ |
|
| 64 | - 'TotalNetCharge' => (object) [ |
|
| 62 | + 'RatedShipmentDetails' => (object)[ |
|
| 63 | + 'ShipmentRateDetail' => (object)[ |
|
| 64 | + 'TotalNetCharge' => (object)[ |
|
| 65 | 65 | 'Amount' => '25', |
| 66 | 66 | 'Currency' => 'USD', |
| 67 | 67 | ] |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | static::assertSame($request, $key->getRequest()); |
| 20 | 20 | static::assertSame($settings, $key->getSettings()); |
| 21 | 21 | static::assertSame( |
| 22 | - (string) crc32(serialize($request->getRequestData())), |
|
| 22 | + (string)crc32(serialize($request->getRequestData())), |
|
| 23 | 23 | $key->getCacheKey() |
| 24 | 24 | ); |
| 25 | 25 | } |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | foreach ($matchingNumbers as $number) { |
| 93 | 93 | static::assertEquals( |
| 94 | - FedexShippingMethod::TRACKING_URL.$number, |
|
| 94 | + FedexShippingMethod::TRACKING_URL . $number, |
|
| 95 | 95 | $method->getTrackingLink($number) |
| 96 | 96 | ); |
| 97 | 97 | } |
@@ -48,6 +48,6 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function getCacheKey(): string |
| 50 | 50 | { |
| 51 | - return (string) crc32(serialize($this->request->getRequestData())); |
|
| 51 | + return (string)crc32(serialize($this->request->getRequestData())); |
|
| 52 | 52 | } |
| 53 | 53 | } |
@@ -242,7 +242,7 @@ |
||
| 242 | 242 | { |
| 243 | 243 | foreach ($this->getTrackingRegexList() as $regex) { |
| 244 | 244 | if (preg_match($regex, $number)) { |
| 245 | - return self::TRACKING_URL.$number; |
|
| 245 | + return self::TRACKING_URL . $number; |
|
| 246 | 246 | } |
| 247 | 247 | } |
| 248 | 248 | |