@@ -193,12 +193,12 @@ |
||
193 | 193 | public function querySalesOrderDetails($idSalesOrder) |
194 | 194 | { |
195 | 195 | $query = $this->getFactory()->createSalesOrderQuery() |
196 | - ->setModelAlias('order') |
|
197 | - ->filterByIdSalesOrder($idSalesOrder) |
|
198 | - ->innerJoinWith('order.BillingAddress billingAddress') |
|
199 | - ->innerJoinWith('billingAddress.Country billingCountry') |
|
200 | - ->innerJoinWith('order.ShippingAddress shippingAddress') |
|
201 | - ->innerJoinWith('shippingAddress.Country shippingCountry'); |
|
196 | + ->setModelAlias('order') |
|
197 | + ->filterByIdSalesOrder($idSalesOrder) |
|
198 | + ->innerJoinWith('order.BillingAddress billingAddress') |
|
199 | + ->innerJoinWith('billingAddress.Country billingCountry') |
|
200 | + ->innerJoinWith('order.ShippingAddress shippingAddress') |
|
201 | + ->innerJoinWith('shippingAddress.Country shippingCountry'); |
|
202 | 202 | |
203 | 203 | return $query; |
204 | 204 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | public function register(Application $app) |
26 | 26 | { |
27 | 27 | $containerGlobals = new ContainerGlobals(); |
28 | - $containerGlobals[static::CLIENT_SEARCH] = function () { |
|
28 | + $containerGlobals[static::CLIENT_SEARCH] = function() { |
|
29 | 29 | $container = new Container(); |
30 | 30 | |
31 | 31 | return $container->getLocator()->search()->client(); |
@@ -79,9 +79,9 @@ |
||
79 | 79 | */ |
80 | 80 | public function findDiscountPromotionByIdDiscountPromotion($idDiscountPromotion) |
81 | 81 | { |
82 | - return $this->getFactory() |
|
83 | - ->createDiscountPromotionReader() |
|
84 | - ->findDiscountPromotionByIdDiscountPromotion($idDiscountPromotion); |
|
82 | + return $this->getFactory() |
|
83 | + ->createDiscountPromotionReader() |
|
84 | + ->findDiscountPromotionByIdDiscountPromotion($idDiscountPromotion); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -24,8 +24,8 @@ |
||
24 | 24 | */ |
25 | 25 | public function read(ProductAbstractTransfer $productAbstractTransfer) |
26 | 26 | { |
27 | - return $this->getFacade() |
|
28 | - ->mapTaxSet($productAbstractTransfer); |
|
27 | + return $this->getFacade() |
|
28 | + ->mapTaxSet($productAbstractTransfer); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | } |
@@ -173,10 +173,10 @@ |
||
173 | 173 | protected function addBoolModelTransformer(FormBuilderInterface $builder, $fieldName) |
174 | 174 | { |
175 | 175 | $builder->get($fieldName)->addModelTransformer(new CallbackTransformer( |
176 | - function ($originalValue) { |
|
176 | + function($originalValue) { |
|
177 | 177 | return $originalValue ? 'yes' : 'no'; |
178 | 178 | }, |
179 | - function ($submittedValue) { |
|
179 | + function($submittedValue) { |
|
180 | 180 | return $submittedValue === 'yes' ? true : false; |
181 | 181 | } |
182 | 182 | )); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function register(Application $app) |
24 | 24 | { |
25 | - $app['flash_messenger'] = function ($app) { |
|
25 | + $app['flash_messenger'] = function($app) { |
|
26 | 26 | return $this->createFlashMessenger($app); |
27 | 27 | }; |
28 | 28 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function register(Application $app) |
26 | 26 | { |
27 | - $app['messenger'] = function () { |
|
27 | + $app['messenger'] = function() { |
|
28 | 28 | return $this->getFacade(); |
29 | 29 | }; |
30 | 30 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $userPath = Config::get(ErrorHandlerConstants::USER_BASE_PATH, ''); |
51 | 51 | $handler = new PrettyPageHandler(); |
52 | 52 | if ($userPath) { |
53 | - $handler->setEditor(function ($file, $line) use ($userPath) { |
|
53 | + $handler->setEditor(function($file, $line) use ($userPath) { |
|
54 | 54 | $serverPath = Config::get(ErrorHandlerConstants::SERVER_BASE_PATH, '/data/shop/development/current'); |
55 | 55 | $file = str_replace($serverPath, $userPath, $file); |
56 | 56 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | protected function getErrorLoggerCallbackHandler() |
78 | 78 | { |
79 | - return new CallbackHandler(function ($exception) { |
|
79 | + return new CallbackHandler(function($exception) { |
|
80 | 80 | ErrorLogger::getInstance()->log($exception); |
81 | 81 | }); |
82 | 82 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | public function setDataImporterReaderConfigurationTransfer(DataImporterReaderConfigurationTransfer $dataImporterReaderConfigurationTransfer) |
41 | 41 | { |
42 | 42 | $modified = $dataImporterReaderConfigurationTransfer->modifiedToArray(); |
43 | - $modified = array_filter($modified, function ($value) { |
|
43 | + $modified = array_filter($modified, function($value) { |
|
44 | 44 | return ($value !== null); |
45 | 45 | }); |
46 | 46 | $this->dataImporterReaderConfigurationTransfer->fromArray($modified); |