@@ -57,10 +57,10 @@ |
||
57 | 57 | protected function createArrayObjectModelTransformer(): CallbackTransformer |
58 | 58 | { |
59 | 59 | return new CallbackTransformer( |
60 | - function ($value) { |
|
60 | + function($value) { |
|
61 | 61 | return (array)$value; |
62 | 62 | }, |
63 | - function ($value) { |
|
63 | + function($value) { |
|
64 | 64 | return new ArrayObject($value); |
65 | 65 | } |
66 | 66 | ); |
@@ -145,7 +145,7 @@ |
||
145 | 145 | protected function prepareEncoderMocks(): EncoderMatcherInterface |
146 | 146 | { |
147 | 147 | $encoderMock = $this->createEncoderMock(); |
148 | - $encoderMock->method('encode')->willReturnCallback(function (array $data) { |
|
148 | + $encoderMock->method('encode')->willReturnCallback(function(array $data) { |
|
149 | 149 | return json_encode($data); |
150 | 150 | }); |
151 | 151 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | $formatResponseHeaderPlugin->method('format') |
42 | 42 | ->willReturnCallback( |
43 | - function ( |
|
43 | + function( |
|
44 | 44 | Response $httpResponse, |
45 | 45 | RestResponseInterface $restResponse, |
46 | 46 | RestRequestInterface $restRequest |
@@ -30,7 +30,7 @@ |
||
30 | 30 | [$controller, $action] = $currentController; |
31 | 31 | |
32 | 32 | $request = $event->getRequest(); |
33 | - $apiController = function () use ($controller, $action, $request) { |
|
33 | + $apiController = function() use ($controller, $action, $request) { |
|
34 | 34 | return $this->filter($controller, $action, $request); |
35 | 35 | }; |
36 | 36 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | protected function setControllerResolver() |
61 | 61 | { |
62 | - $this->application['resolver'] = $this->application->share(function () { |
|
62 | + $this->application['resolver'] = $this->application->share(function() { |
|
63 | 63 | return new GlueFragmentControllerResolver($this->application); |
64 | 64 | }); |
65 | 65 | } |
@@ -18,9 +18,9 @@ |
||
18 | 18 | */ |
19 | 19 | public function findParentResourceByType(string $type): ?RestResourceInterface; |
20 | 20 | |
21 | - /** |
|
22 | - * @return \Spryker\Glue\GlueApplication\Rest\JsonApi\RestResourceInterface |
|
23 | - */ |
|
21 | + /** |
|
22 | + * @return \Spryker\Glue\GlueApplication\Rest\JsonApi\RestResourceInterface |
|
23 | + */ |
|
24 | 24 | public function getResource(): RestResourceInterface; |
25 | 25 | |
26 | 26 | /** |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | protected function getProductAlternativeSearchPreSubmitCallback(): callable |
64 | 64 | { |
65 | - return function (FormEvent $e) { |
|
65 | + return function(FormEvent $e) { |
|
66 | 66 | $data = $e->getData(); |
67 | 67 | $form = $e->getForm(); |
68 | 68 | if (empty($data[static::FIELD_PRODUCT_ALTERNATIVE])) { |
@@ -40,10 +40,10 @@ |
||
40 | 40 | ->suggestProductConcrete($suggestion); |
41 | 41 | |
42 | 42 | return $this->jsonResponse([ |
43 | - static::KEY_RESULTS => array_merge( |
|
44 | - $this->prepareData($productAbstractSuggestions), |
|
45 | - $this->prepareData($productConcreteSuggestions) |
|
46 | - ), |
|
43 | + static::KEY_RESULTS => array_merge( |
|
44 | + $this->prepareData($productAbstractSuggestions), |
|
45 | + $this->prepareData($productConcreteSuggestions) |
|
46 | + ), |
|
47 | 47 | ]); |
48 | 48 | } |
49 | 49 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | ->setIdPriceProductDefault($idPriceProductDefault) |
68 | 68 | ->setFkPriceProductStore($moneyValueTransfer->getIdEntity()); |
69 | 69 | |
70 | - return $this->priceProductEntityManager |
|
71 | - ->savePriceProductDefaultEntity($priceProductDefaultEntity); |
|
70 | + return $this->priceProductEntityManager |
|
71 | + ->savePriceProductDefaultEntity($priceProductDefaultEntity); |
|
72 | 72 | } |
73 | 73 | } |