@@ -120,7 +120,7 @@ |
||
120 | 120 | { |
121 | 121 | usort( |
122 | 122 | $stockProducts, |
123 | - function (StockProductTransfer $stockProductLeftTransfer, StockProductTransfer $stockProductRightTransfer) { |
|
123 | + function(StockProductTransfer $stockProductLeftTransfer, StockProductTransfer $stockProductRightTransfer) { |
|
124 | 124 | return strcmp($stockProductLeftTransfer->getStockType(), $stockProductRightTransfer->getStockType()); |
125 | 125 | } |
126 | 126 | ); |
@@ -33,10 +33,10 @@ |
||
33 | 33 | */ |
34 | 34 | protected function build(TabsViewTransfer $tabsViewTransfer) |
35 | 35 | { |
36 | - $this->createPlaceHolderTabs($tabsViewTransfer) |
|
36 | + $this->createPlaceHolderTabs($tabsViewTransfer) |
|
37 | 37 | ->setFooter($tabsViewTransfer); |
38 | 38 | |
39 | - return $tabsViewTransfer; |
|
39 | + return $tabsViewTransfer; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -18,10 +18,10 @@ |
||
18 | 18 | protected function createArrayObjectModelTransformer() |
19 | 19 | { |
20 | 20 | return new CallbackTransformer( |
21 | - function ($value) { |
|
21 | + function($value) { |
|
22 | 22 | return (array)$value; |
23 | 23 | }, |
24 | - function ($value) { |
|
24 | + function($value) { |
|
25 | 25 | return new ArrayObject($value); |
26 | 26 | } |
27 | 27 | ); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function filter(array $bundlesDependencies) |
85 | 85 | { |
86 | - $callback = function (array $bundleDependency) { |
|
86 | + $callback = function(array $bundleDependency) { |
|
87 | 87 | return ($bundleDependency[DependencyTree::META_FOREIGN_BUNDLE] !== 'external'); |
88 | 88 | }; |
89 | 89 | $bundlesDependencies = array_filter($bundlesDependencies, $callback); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $this->buildIndirectIncomingDependencies($bundle, $indirectIncomingDependencies); |
137 | 137 | |
138 | 138 | $indirectIncomingDependencies = $indirectIncomingDependencies->getArrayCopy(); |
139 | - $callback = function ($bundle) use ($incomingBundles) { |
|
139 | + $callback = function($bundle) use ($incomingBundles) { |
|
140 | 140 | return !in_array($bundle, $incomingBundles); |
141 | 141 | }; |
142 | 142 | $indirectIncomingDependencies = array_filter($indirectIncomingDependencies, $callback); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | protected function createValidFromRangeConstraint() |
232 | 232 | { |
233 | 233 | return new Callback([ |
234 | - 'callback' => function ($dateTimeFrom, ExecutionContextInterface $context) { |
|
234 | + 'callback' => function($dateTimeFrom, ExecutionContextInterface $context) { |
|
235 | 235 | $cmsPageTransfer = $context->getRoot()->getData(); |
236 | 236 | if (!$dateTimeFrom) { |
237 | 237 | if ($cmsPageTransfer->getValidTo()) { |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | protected function createValidToFieldRangeConstraint() |
259 | 259 | { |
260 | 260 | return new Callback([ |
261 | - 'callback' => function ($dateTimeTo, ExecutionContextInterface $context) { |
|
261 | + 'callback' => function($dateTimeTo, ExecutionContextInterface $context) { |
|
262 | 262 | |
263 | 263 | $cmsPageTransfer = $context->getRoot()->getData(); |
264 | 264 | |
@@ -282,12 +282,12 @@ discard block |
||
282 | 282 | protected function createDateTimeModelTransformer() |
283 | 283 | { |
284 | 284 | return new CallbackTransformer( |
285 | - function ($value) { |
|
285 | + function($value) { |
|
286 | 286 | if ($value !== null) { |
287 | 287 | return new DateTime($value); |
288 | 288 | } |
289 | 289 | }, |
290 | - function ($value) { |
|
290 | + function($value) { |
|
291 | 291 | return $value; |
292 | 292 | } |
293 | 293 | ); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | 'class' => 'datepicker safe-datetime', |
196 | 196 | ], |
197 | 197 | 'constraints' => [ |
198 | - $this->createValidFromRangeConstraint(), |
|
198 | + $this->createValidFromRangeConstraint(), |
|
199 | 199 | ], |
200 | 200 | ]); |
201 | 201 | |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | protected function createValidToFieldRangeConstraint() |
263 | 263 | { |
264 | 264 | return new Callback([ |
265 | - 'callback' => function ($dateTimeTo, ExecutionContextInterface $context) { |
|
265 | + 'callback' => function ($dateTimeTo, ExecutionContextInterface $context) { |
|
266 | 266 | |
267 | 267 | $cmsPageTransfer = $context->getRoot()->getData(); |
268 | 268 | |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | if ($dateTimeTo < $cmsPageTransfer->getValidFrom()) { |
277 | 277 | $context->addViolation('Date "Valid to" cannot be earlier than "Valid from".'); |
278 | 278 | } |
279 | - }, |
|
279 | + }, |
|
280 | 280 | ]); |
281 | 281 | } |
282 | 282 |
@@ -114,7 +114,7 @@ |
||
114 | 114 | */ |
115 | 115 | public function getPageUrlPrefix(CmsPageAttributesTransfer $cmsPageAttributesTransfer) |
116 | 116 | { |
117 | - return $this->cmsFacade->getPageUrlPrefix($cmsPageAttributesTransfer); |
|
117 | + return $this->cmsFacade->getPageUrlPrefix($cmsPageAttributesTransfer); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function boot(Application $app) |
46 | 46 | { |
47 | - $app->before(function (Request $request) { |
|
47 | + $app->before(function(Request $request) { |
|
48 | 48 | if ($this->isCli() && $request->server->get('argv', false)) { |
49 | 49 | $this->parseCliRequestData($request); |
50 | 50 | } else { |
@@ -85,7 +85,7 @@ |
||
85 | 85 | ); |
86 | 86 | } |
87 | 87 | |
88 | - return true; |
|
88 | + return true; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected function addUrlBuilder(Container $container) |
40 | 40 | { |
41 | - $container[static::URL_BUILDER] = function () { |
|
41 | + $container[static::URL_BUILDER] = function() { |
|
42 | 42 | return new UrlBuilder(); |
43 | 43 | }; |
44 | 44 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function addUtilEncodingService(Container $container) |
54 | 54 | { |
55 | - $container[static::SERVICE_ENCODING] = function (Container $container) { |
|
55 | + $container[static::SERVICE_ENCODING] = function(Container $container) { |
|
56 | 56 | $navigationToUtilEncodingBridger = new ZedNavigationToUtilEncodingBridge( |
57 | 57 | $container->getLocator()->utilEncoding()->service() |
58 | 58 | ); |