@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | protected function addCurrencyPlugin(Container $container) |
37 | 37 | { |
38 | - $container[static::PLUGIN_CURRENCY] = function (Container $container) { |
|
38 | + $container[static::PLUGIN_CURRENCY] = function(Container $container) { |
|
39 | 39 | return new CurrencyPlugin(); |
40 | 40 | }; |
41 | 41 |
@@ -147,7 +147,7 @@ |
||
147 | 147 | } |
148 | 148 | |
149 | 149 | /** |
150 | - * @param array $sourceStateBuffer |
|
150 | + * @param string[] $sourceStateBuffer |
|
151 | 151 | * @param \Generated\Shared\Transfer\StateMachineItemTransfer $stateMachineItemTransfer |
152 | 152 | * |
153 | 153 | * @throws \Spryker\Zed\StateMachine\Business\Exception\StateMachineException |
@@ -73,7 +73,7 @@ |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | foreach ($stateMachineItems as $stateMachineItemTransfer) { |
76 | - $this->handleDatabaseTransaction(function () use ($processes, $sourceStates, $stateMachineItemTransfer) { |
|
76 | + $this->handleDatabaseTransaction(function() use ($processes, $sourceStates, $stateMachineItemTransfer) { |
|
77 | 77 | $this->executeUpdateItemStateTransaction($processes, $sourceStates, $stateMachineItemTransfer); |
78 | 78 | }); |
79 | 79 | } |
@@ -28,15 +28,15 @@ |
||
28 | 28 | */ |
29 | 29 | public function provideBusinessLayerDependencies(Container $container) |
30 | 30 | { |
31 | - $container[self::FACADE_DISCOUNT] = function (Container $container) { |
|
31 | + $container[self::FACADE_DISCOUNT] = function(Container $container) { |
|
32 | 32 | return new ProductDiscountConnectorToDiscountBridge($container->getLocator()->discount()->facade()); |
33 | 33 | }; |
34 | 34 | |
35 | - $container[self::FACADE_LOCALE] = function (Container $container) { |
|
35 | + $container[self::FACADE_LOCALE] = function(Container $container) { |
|
36 | 36 | return new ProductDiscountConnectorToLocaleBridge($container->getLocator()->locale()->facade()); |
37 | 37 | }; |
38 | 38 | |
39 | - $container[self::FACADE_PRODUCT] = function (Container $container) { |
|
39 | + $container[self::FACADE_PRODUCT] = function(Container $container) { |
|
40 | 40 | return new ProductDiscountConnectorToProductBridge($container->getLocator()->product()->facade()); |
41 | 41 | }; |
42 | 42 |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config |
56 | 56 | * |
57 | - * @return mixed |
|
57 | + * @return TableConfiguration |
|
58 | 58 | */ |
59 | 59 | protected function configure(TableConfiguration $config) |
60 | 60 | { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | /** |
140 | 140 | * @param \Orm\Zed\Product\Persistence\SpyProductAbstract $item |
141 | 141 | * |
142 | - * @return array |
|
142 | + * @return string[] |
|
143 | 143 | */ |
144 | 144 | protected function createActionColumn(SpyProductAbstract $item) |
145 | 145 | { |
@@ -131,7 +131,7 @@ |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | - * @param \Generated\Shared\Transfer\ProductAbstractTransfer $productAbstractTransfer |
|
134 | + * @param ProductAbstractTransfer|null $productAbstractTransfer |
|
135 | 135 | * @param \Symfony\Component\Form\FormInterface $form |
136 | 136 | * @param int $idProduct |
137 | 137 | * |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function register(Application $app) |
33 | 33 | { |
34 | 34 | $app['twig'] = $app->share( |
35 | - $app->extend('twig', function (\Twig_Environment $twig) { |
|
35 | + $app->extend('twig', function(\Twig_Environment $twig) { |
|
36 | 36 | $twig->addFunction($this->getCurrencySymbolFunction()); |
37 | 37 | |
38 | 38 | return $twig; |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function getCurrencySymbolFunction() |
62 | 62 | { |
63 | - return new Twig_SimpleFunction(static::CURRENCY_SYMBOL_FUNCTION_NAME, function ($isoCode = null) { |
|
63 | + return new Twig_SimpleFunction(static::CURRENCY_SYMBOL_FUNCTION_NAME, function($isoCode = null) { |
|
64 | 64 | return $this->getCurrencySymbol($isoCode); |
65 | 65 | }); |
66 | 66 | } |
@@ -269,7 +269,7 @@ |
||
269 | 269 | * Finds all glossary keys and creates missing translations as empty to be able to touch the page. |
270 | 270 | * |
271 | 271 | * @param int $idPage |
272 | - * @param \Generated\Shared\Transfer\LocaleTransfer $localeTransfer |
|
272 | + * @param LocaleTransfer|null $localeTransfer |
|
273 | 273 | * |
274 | 274 | * @return void |
275 | 275 | */ |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function addStore(Container $container) |
43 | 43 | { |
44 | - $container[static::STORE] = function () { |
|
44 | + $container[static::STORE] = function() { |
|
45 | 45 | return $this->getStore(); |
46 | 46 | }; |
47 | 47 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | protected function addMoneyParser(Container $container) |
65 | 65 | { |
66 | - $container[static::MONEY_PARSER] = function () { |
|
66 | + $container[static::MONEY_PARSER] = function() { |
|
67 | 67 | $moneyToParserBridge = new MoneyToParserBridge($this->getIntlMoneyParser()); |
68 | 68 | |
69 | 69 | return $moneyToParserBridge; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function addStore(Container $container) |
46 | 46 | { |
47 | - $container[static::STORE] = function () { |
|
47 | + $container[static::STORE] = function() { |
|
48 | 48 | return $this->getStore(); |
49 | 49 | }; |
50 | 50 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | protected function addCurrencyPlugin(Container $container) |
60 | 60 | { |
61 | - $container[static::PLUGIN_CURRENCY] = function () { |
|
61 | + $container[static::PLUGIN_CURRENCY] = function() { |
|
62 | 62 | return new CurrencyPlugin(); |
63 | 63 | }; |
64 | 64 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | protected function addMoneyParser(Container $container) |
82 | 82 | { |
83 | - $container[static::MONEY_PARSER] = function () { |
|
83 | + $container[static::MONEY_PARSER] = function() { |
|
84 | 84 | $moneyToParserBridge = new MoneyToParserBridge($this->getIntlMoneyParser()); |
85 | 85 | |
86 | 86 | return $moneyToParserBridge; |