@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $this->setupHardcodedTextcats(); |
| 43 | 43 | |
| 44 | - $this->serviceManager->setFactory('db', function () { |
|
| 44 | + $this->serviceManager->setFactory('db', function() { |
|
| 45 | 45 | return null; |
| 46 | 46 | }); |
| 47 | 47 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $this->setupTwig(); |
| 55 | 55 | |
| 56 | 56 | if (HelperConfig::$core['enable_module_shop']) { |
| 57 | - $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) { |
|
| 57 | + $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) { |
|
| 58 | 58 | return new \HaaseIT\HCSF\Shop\Items($serviceManager); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | // PSR-7 Stuff |
| 69 | 69 | // Init request object |
| 70 | - $this->serviceManager->setFactory('request', function () { |
|
| 70 | + $this->serviceManager->setFactory('request', function() { |
|
| 71 | 71 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
| 72 | 72 | |
| 73 | 73 | // cleanup request |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | protected function setupDB() |
| 129 | 129 | { |
| 130 | - $this->serviceManager->setFactory('dbal', function () { |
|
| 130 | + $this->serviceManager->setFactory('dbal', function() { |
|
| 131 | 131 | $config = new \Doctrine\DBAL\Configuration(); |
| 132 | 132 | |
| 133 | 133 | $connectionParams = [ |
@@ -148,14 +148,14 @@ discard block |
||
| 148 | 148 | return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
| 149 | 149 | }); |
| 150 | 150 | |
| 151 | - $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) { |
|
| 151 | + $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) { |
|
| 152 | 152 | return $serviceManager->get('dbal')->getWrappedConnection(); |
| 153 | 153 | }); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | protected function setupTextcats() |
| 157 | 157 | { |
| 158 | - $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) { |
|
| 158 | + $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) { |
|
| 159 | 159 | $langavailable = HelperConfig::$core['lang_available']; |
| 160 | 160 | $textcats = new \HaaseIT\Toolbox\Textcat( |
| 161 | 161 | HelperConfig::$lang, |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | protected function setupTwig() |
| 174 | 174 | { |
| 175 | - $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) { |
|
| 175 | + $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) { |
|
| 176 | 176 | $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']); |
| 177 | 177 | |
| 178 | 178 | $twig_options = [ |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | } |
| 298 | 298 | |
| 299 | 299 | $aP['countrylist'][] = ' | '; |
| 300 | - foreach (HelperConfig::$countries['countries_' .HelperConfig::$lang] as $sKey => $sValue) { |
|
| 300 | + foreach (HelperConfig::$countries['countries_'.HelperConfig::$lang] as $sKey => $sValue) { |
|
| 301 | 301 | $aP['countrylist'][] = $sKey.'|'.$sValue; |
| 302 | 302 | } |
| 303 | 303 | |