@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $this->setupHardcodedTextcats(); |
64 | 64 | |
65 | - $this->serviceManager->setFactory('db', function () { |
|
65 | + $this->serviceManager->setFactory('db', function() { |
|
66 | 66 | return null; |
67 | 67 | }); |
68 | 68 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | if (HelperConfig::$core['enable_module_shop']) { |
80 | - $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) { |
|
80 | + $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) { |
|
81 | 81 | return new \HaaseIT\HCSF\Shop\Items($serviceManager); |
82 | 82 | }); |
83 | 83 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | { |
95 | 95 | // PSR-7 Stuff |
96 | 96 | // Init request object |
97 | - $this->serviceManager->setFactory('request', function () { |
|
97 | + $this->serviceManager->setFactory('request', function() { |
|
98 | 98 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
99 | 99 | |
100 | 100 | // cleanup request |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | |
155 | 155 | protected function setupDB() |
156 | 156 | { |
157 | - $this->serviceManager->setFactory('dbal', function () { |
|
157 | + $this->serviceManager->setFactory('dbal', function() { |
|
158 | 158 | $config = new \Doctrine\DBAL\Configuration(); |
159 | 159 | |
160 | 160 | $connectionParams = [ |
@@ -175,14 +175,14 @@ discard block |
||
175 | 175 | return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
176 | 176 | }); |
177 | 177 | |
178 | - $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) { |
|
178 | + $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) { |
|
179 | 179 | return $serviceManager->get('dbal')->getWrappedConnection(); |
180 | 180 | }); |
181 | 181 | } |
182 | 182 | |
183 | 183 | protected function setupTextcats() |
184 | 184 | { |
185 | - $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) { |
|
185 | + $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) { |
|
186 | 186 | $langavailable = HelperConfig::$core['lang_available']; |
187 | 187 | $textcats = new \HaaseIT\Toolbox\Textcat( |
188 | 188 | HelperConfig::$lang, |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | |
200 | 200 | protected function setupTwig() |
201 | 201 | { |
202 | - $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) { |
|
202 | + $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) { |
|
203 | 203 | $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']); |
204 | 204 | |
205 | 205 | $twig_options = [ |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | } |
322 | 322 | |
323 | 323 | $aP['countrylist'][] = ' | '; |
324 | - foreach (HelperConfig::$countries['countries_' .HelperConfig::$lang] as $sKey => $sValue) { |
|
324 | + foreach (HelperConfig::$countries['countries_'.HelperConfig::$lang] as $sKey => $sValue) { |
|
325 | 325 | $aP['countrylist'][] = $sKey.'|'.$sValue; |
326 | 326 | } |
327 | 327 |