@@ -47,7 +47,7 @@ |
||
| 47 | 47 | */ |
| 48 | 48 | public function updateProductSetData(LocalizedProductSetTransfer $localizedProductSetTransfer, $idProductSet) |
| 49 | 49 | { |
| 50 | - return $this->handleDatabaseTransaction(function () use ($localizedProductSetTransfer, $idProductSet) { |
|
| 50 | + return $this->handleDatabaseTransaction(function() use ($localizedProductSetTransfer, $idProductSet) { |
|
| 51 | 51 | return $this->executeUpdateProductSetDataTransaction($localizedProductSetTransfer, $idProductSet); |
| 52 | 52 | }); |
| 53 | 53 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | protected function mergeSettings(array $defaultSettingsArray, array $settingsArray) |
| 46 | 46 | { |
| 47 | - $settingsArray = array_filter($settingsArray, function ($value) { |
|
| 47 | + $settingsArray = array_filter($settingsArray, function($value) { |
|
| 48 | 48 | return ($value !== null); |
| 49 | 49 | }); |
| 50 | 50 | $settingsArray += $defaultSettingsArray; |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | protected function addConfigProfilerCollector(Application $app) |
| 51 | 51 | { |
| 52 | - $app->extend('data_collectors', function ($collectors) { |
|
| 53 | - $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function () { |
|
| 52 | + $app->extend('data_collectors', function($collectors) { |
|
| 53 | + $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function() { |
|
| 54 | 54 | return ConfigProfilerCollectorFactory::createConfigProfilerCollector(); |
| 55 | 55 | }; |
| 56 | 56 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | protected function addCollectorTemplates(Application $app) |
| 69 | 69 | { |
| 70 | - $app['data_collector.templates'] = $app->extend('data_collector.templates', function ($templates) { |
|
| 70 | + $app['data_collector.templates'] = $app->extend('data_collector.templates', function($templates) { |
|
| 71 | 71 | $templates[] = [ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER, $this->getTemplateName()]; |
| 72 | 72 | |
| 73 | 73 | return $templates; |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | protected function addPathToLoader(Application $app) |
| 123 | 123 | { |
| 124 | 124 | $loaderKey = $this->getLoaderKey(); |
| 125 | - $app[$loaderKey] = $app->extend($loaderKey, function (TwigFilesystemLoader $loader) { |
|
| 125 | + $app[$loaderKey] = $app->extend($loaderKey, function(TwigFilesystemLoader $loader) { |
|
| 126 | 126 | $pathToTemplates = $this->getPathToTemplates(); |
| 127 | 127 | if (method_exists($loader, 'addPath')) { |
| 128 | 128 | $loader->addPath($pathToTemplates); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | protected function setSessionStorageHandler(Application $application) |
| 70 | 70 | { |
| 71 | - $application['session.storage.handler'] = function () { |
|
| 71 | + $application['session.storage.handler'] = function() { |
|
| 72 | 72 | return $this->getFactory()->createSessionStorage()->getAndRegisterHandler(); |
| 73 | 73 | }; |
| 74 | 74 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function register(Application $app) |
| 26 | 26 | { |
| 27 | 27 | $containerGlobals = new ContainerGlobals(); |
| 28 | - $containerGlobals[static::CLIENT_SESSION] = function () { |
|
| 28 | + $containerGlobals[static::CLIENT_SESSION] = function() { |
|
| 29 | 29 | $container = new Container(); |
| 30 | 30 | |
| 31 | 31 | return $container->getLocator()->session()->client(); |
@@ -242,7 +242,7 @@ |
||
| 242 | 242 | return redis.call("DEL", KEYS[1]) |
| 243 | 243 | end |
| 244 | 244 | return 0 |
| 245 | -LUA; |
|
| 245 | +lua; |
|
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | For Zed: |
| 52 | 52 | session:lock:remove --zed <session_id> |
| 53 | -HELPTEXT; |
|
| 53 | +helptext; |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | public function fromInteger($amount, $isoCode = null) |
| 65 | 65 | { |
| 66 | - return $this->moneyFacade->fromInteger($amount, $isoCode); |
|
| 66 | + return $this->moneyFacade->fromInteger($amount, $isoCode); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | } |
@@ -42,10 +42,10 @@ |
||
| 42 | 42 | |
| 43 | 43 | $builder->get(static::FIELD_PRODUCT_SET_WEIGHTS) |
| 44 | 44 | ->addModelTransformer(new CallbackTransformer( |
| 45 | - function ($productSetIds = null) { |
|
| 45 | + function($productSetIds = null) { |
|
| 46 | 46 | return $this->getFactory()->getUtilEncodingService()->encodeJson((array)$productSetIds); |
| 47 | 47 | }, |
| 48 | - function ($productSetIds = '{}') { |
|
| 48 | + function($productSetIds = '{}') { |
|
| 49 | 49 | return $this->getFactory()->getUtilEncodingService()->decodeJson($productSetIds, true); |
| 50 | 50 | } |
| 51 | 51 | )); |