@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function register(Application $app) |
| 28 | 28 | { |
| 29 | - $app['monolog.level'] = function () { |
|
| 29 | + $app['monolog.level'] = function() { |
|
| 30 | 30 | return Config::get(LogConstants::LOG_LEVEL, Logger::ERROR); |
| 31 | 31 | }; |
| 32 | 32 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | { |
| 47 | 47 | $this->assertProductReviewTransfer($productReviewTransfer); |
| 48 | 48 | |
| 49 | - return $this->handleDatabaseTransaction(function () use ($productReviewTransfer) { |
|
| 49 | + return $this->handleDatabaseTransaction(function() use ($productReviewTransfer) { |
|
| 50 | 50 | return $this->executeUpdateProductReviewStatusTransaction($productReviewTransfer); |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $this->assertRatingRange($productReviewTransfer); |
| 43 | 43 | |
| 44 | - return $this->handleDatabaseTransaction(function () use ($productReviewTransfer) { |
|
| 44 | + return $this->handleDatabaseTransaction(function() use ($productReviewTransfer) { |
|
| 45 | 45 | return $this->executeCreateProductReviewTransaction($productReviewTransfer); |
| 46 | 46 | }); |
| 47 | 47 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function deleteProductReview(ProductReviewTransfer $productReviewTransfer) |
| 45 | 45 | { |
| 46 | - $this->handleDatabaseTransaction(function () use ($productReviewTransfer) { |
|
| 46 | + $this->handleDatabaseTransaction(function() use ($productReviewTransfer) { |
|
| 47 | 47 | $this->executeDeleteProductReviewTransaction($productReviewTransfer); |
| 48 | 48 | }); |
| 49 | 49 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function register(Application $app) |
| 28 | 28 | { |
| 29 | - $app->finish(function (Request $request) use ($app) { |
|
| 29 | + $app->finish(function(Request $request) use ($app) { |
|
| 30 | 30 | if (isset($app[StorageConstants::STORAGE_CACHE_STRATEGY])) { |
| 31 | 31 | $this->getClient()->persistCacheForRequest($request, $app[StorageConstants::STORAGE_CACHE_STRATEGY]); |
| 32 | 32 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function register(Application $app) |
| 29 | 29 | { |
| 30 | - $app->finish(function (Request $request) { |
|
| 30 | + $app->finish(function(Request $request) { |
|
| 31 | 31 | $this->getClient()->persistCacheForRequest($request); |
| 32 | 32 | }); |
| 33 | 33 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function register(Application $app) |
| 26 | 26 | { |
| 27 | 27 | $containerGlobals = new ContainerGlobals(); |
| 28 | - $containerGlobals[static::CLIENT_STORAGE] = function () { |
|
| 28 | + $containerGlobals[static::CLIENT_STORAGE] = function() { |
|
| 29 | 29 | $container = new Container(); |
| 30 | 30 | |
| 31 | 31 | return $container->getLocator()->storage()->client(); |
@@ -102,14 +102,14 @@ |
||
| 102 | 102 | $builder |
| 103 | 103 | ->get($fieldName) |
| 104 | 104 | ->addModelTransformer(new CallbackTransformer( |
| 105 | - function ($idsCustomerAsArray) { |
|
| 105 | + function($idsCustomerAsArray) { |
|
| 106 | 106 | if (!count($idsCustomerAsArray)) { |
| 107 | 107 | return []; |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | return implode(',', $idsCustomerAsArray); |
| 111 | 111 | }, |
| 112 | - function ($idsCustomerAsCsv) { |
|
| 112 | + function($idsCustomerAsCsv) { |
|
| 113 | 113 | if (empty($idsCustomerAsCsv)) { |
| 114 | 114 | return []; |
| 115 | 115 | } |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | $query = $this->getFactory()->createUserHasRoleQuery(); |
| 168 | 168 | |
| 169 | 169 | $query->filterByFkAclGroup($idGroup) |
| 170 | - ->filterByFkUser($idUser); |
|
| 170 | + ->filterByFkUser($idUser); |
|
| 171 | 171 | |
| 172 | 172 | return $query; |
| 173 | 173 | } |