@@ -90,7 +90,7 @@ |
||
90 | 90 | $url = $wantedScheme . '://' . $this->context->getHost() . $pathInfo; |
91 | 91 | |
92 | 92 | return [ |
93 | - '_controller' => function ($url) { |
|
93 | + '_controller' => function($url) { |
|
94 | 94 | return new RedirectResponse($url, 301); |
95 | 95 | }, |
96 | 96 | '_route' => null, |
@@ -182,13 +182,13 @@ |
||
182 | 182 | $cmsBusinessFactory = $this->createBusinessFactory(); |
183 | 183 | |
184 | 184 | $container = $this->createZedContainer(); |
185 | - $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function (Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
|
185 | + $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function(Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
|
186 | 186 | return [ |
187 | 187 | 'function' => $cmsContentWidgetParameterMapperPluginMock, |
188 | 188 | ]; |
189 | 189 | }; |
190 | 190 | |
191 | - $container[CmsContentWidgetDependencyProvider::FACADE_GLOSSARY] = function (Container $container) { |
|
191 | + $container[CmsContentWidgetDependencyProvider::FACADE_GLOSSARY] = function(Container $container) { |
|
192 | 192 | return $this->createGlossaryFacadeMock(); |
193 | 193 | }; |
194 | 194 |
@@ -153,11 +153,11 @@ discard block |
||
153 | 153 | { |
154 | 154 | return [ |
155 | 155 | [ |
156 | - 'functionName' => 'functionName', |
|
157 | - 'availableTemplates' => [ |
|
158 | - 'identifier' => '@module/path/to/template.twig', |
|
159 | - ], |
|
160 | - 'usageInformation' => 'how to..', |
|
156 | + 'functionName' => 'functionName', |
|
157 | + 'availableTemplates' => [ |
|
158 | + 'identifier' => '@module/path/to/template.twig', |
|
159 | + ], |
|
160 | + 'usageInformation' => 'how to..', |
|
161 | 161 | ], |
162 | 162 | [ |
163 | 163 | 'functionName' => 'functionName1', |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $container = $this->createZedContainer(); |
207 | 207 | $container[CmsContentWidgetDependencyProvider::PLUGINS_CMS_CONTENT_WIDGET_PARAMETER_MAPPERS] = function (Container $container) use ($cmsContentWidgetParameterMapperPluginMock) { |
208 | 208 | return [ |
209 | - 'function' => $cmsContentWidgetParameterMapperPluginMock, |
|
209 | + 'function' => $cmsContentWidgetParameterMapperPluginMock, |
|
210 | 210 | ]; |
211 | 211 | }; |
212 | 212 |
@@ -784,7 +784,7 @@ |
||
784 | 784 | $timeoutModel = clone $this->timeout; |
785 | 785 | |
786 | 786 | foreach ($orderItems as $orderItem) { |
787 | - $this->handleDatabaseTransaction(function () use ($orderItem, $processes, $sourceStateBuffer, $timeoutModel, $log, $currentTime) { |
|
787 | + $this->handleDatabaseTransaction(function() use ($orderItem, $processes, $sourceStateBuffer, $timeoutModel, $log, $currentTime) { |
|
788 | 788 | $this->executeSaveOrderItemTransaction( |
789 | 789 | $orderItem, |
790 | 790 | $processes, |
@@ -62,13 +62,13 @@ |
||
62 | 62 | $this->testDataFileSystemRootDirectory = Configuration::dataDir() . static::ROOT_DIRECTORY; |
63 | 63 | |
64 | 64 | $container = new Container(); |
65 | - $container[FlysystemDependencyProvider::PLUGIN_COLLECTION_FILESYSTEM_BUILDER] = function (Container $container) { |
|
65 | + $container[FlysystemDependencyProvider::PLUGIN_COLLECTION_FILESYSTEM_BUILDER] = function(Container $container) { |
|
66 | 66 | return [ |
67 | 67 | new LocalFilesystemBuilderPlugin(), |
68 | 68 | ]; |
69 | 69 | }; |
70 | 70 | |
71 | - $container[FlysystemDependencyProvider::PLUGIN_COLLECTION_FLYSYSTEM] = function (Container $container) { |
|
71 | + $container[FlysystemDependencyProvider::PLUGIN_COLLECTION_FLYSYSTEM] = function(Container $container) { |
|
72 | 72 | return []; |
73 | 73 | }; |
74 | 74 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | { |
42 | 42 | $level = $this->level; |
43 | 43 | |
44 | - $records = array_filter($records, function ($record) use ($level) { |
|
44 | + $records = array_filter($records, function($record) use ($level) { |
|
45 | 45 | return ($record['level'] >= $level); |
46 | 46 | }); |
47 | 47 |
@@ -85,7 +85,7 @@ |
||
85 | 85 | protected function createNumber() |
86 | 86 | { |
87 | 87 | try { |
88 | - $idCurrent = $this->handleDatabaseTransaction(function () { |
|
88 | + $idCurrent = $this->handleDatabaseTransaction(function() { |
|
89 | 89 | return $this->createNumberTransaction(); |
90 | 90 | }); |
91 | 91 | } catch (Exception $e) { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function register(Application $app) |
29 | 29 | { |
30 | 30 | $app['twig.global.variables'] = $app->share( |
31 | - $app->extend('twig.global.variables', function (array $variables) { |
|
31 | + $app->extend('twig.global.variables', function(array $variables) { |
|
32 | 32 | $variables += [ |
33 | 33 | 'environment' => APPLICATION_ENV, |
34 | 34 | 'store' => Store::getInstance()->getStoreName(), |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $dateTime = new DateTime(); |
34 | 34 | |
35 | 35 | $comparatorMock = $this->createComparatorMock(); |
36 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $calendarWeek) { |
|
36 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $calendarWeek) { |
|
37 | 37 | return $clauseTransfer->getValue() === $calendarWeek; |
38 | 38 | }); |
39 | 39 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $dateTime = new DateTime(); |
33 | 33 | |
34 | 34 | $comparatorMock = $this->createComparatorMock(); |
35 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $currentMonth) { |
|
35 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $currentMonth) { |
|
36 | 36 | return $clauseTransfer->getValue() === $currentMonth; |
37 | 37 | }); |
38 | 38 |