@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | return [ |
| 47 | 47 | Request::class => \DI\create(Request::class) |
| 48 | 48 | ->constructor(\Klein\Request::createFromGlobals()), |
| 49 | - ContextInterface::class => function (ContainerInterface $c) { |
|
| 49 | + ContextInterface::class => function(ContainerInterface $c) { |
|
| 50 | 50 | switch (APP_MODULE) { |
| 51 | 51 | case 'web': |
| 52 | 52 | return $c->get(\SP\Core\Context\SessionContext::class); |
@@ -54,24 +54,24 @@ discard block |
||
| 54 | 54 | return $c->get(\SP\Core\Context\StatelessContext::class); |
| 55 | 55 | } |
| 56 | 56 | }, |
| 57 | - Config::class => function (ContainerInterface $c) { |
|
| 57 | + Config::class => function(ContainerInterface $c) { |
|
| 58 | 58 | return new Config( |
| 59 | 59 | new XmlHandler(new FileHandler(CONFIG_FILE)), |
| 60 | 60 | new FileCache(Config::CONFIG_CACHE_FILE), |
| 61 | 61 | $c); |
| 62 | 62 | }, |
| 63 | - ConfigData::class => function (Config $config) { |
|
| 63 | + ConfigData::class => function(Config $config) { |
|
| 64 | 64 | return $config->getConfigData(); |
| 65 | 65 | }, |
| 66 | 66 | DBStorageInterface::class => \DI\create(MySQLHandler::class) |
| 67 | 67 | ->constructor(\DI\factory([DatabaseConnectionData::class, 'getFromConfig'])), |
| 68 | - Actions::class => function (ContainerInterface $c) { |
|
| 68 | + Actions::class => function(ContainerInterface $c) { |
|
| 69 | 69 | return new Actions( |
| 70 | 70 | new FileCache(Actions::ACTIONS_CACHE_FILE), |
| 71 | 71 | new XmlHandler(new FileHandler(ACTIONS_FILE)) |
| 72 | 72 | ); |
| 73 | 73 | }, |
| 74 | - MimeTypes::class => function (ContainerInterface $c) { |
|
| 74 | + MimeTypes::class => function(ContainerInterface $c) { |
|
| 75 | 75 | return new MimeTypes( |
| 76 | 76 | new FileCache(MimeTypes::MIME_CACHE_FILE), |
| 77 | 77 | new XmlHandler(new FileHandler(MIMETYPES_FILE)) |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | $this->session, |
| 240 | 240 | $this->request, |
| 241 | 241 | $this->configData, |
| 242 | - function ($redirect) { |
|
| 242 | + function($redirect) { |
|
| 243 | 243 | $this->router->response() |
| 244 | 244 | ->redirect($redirect) |
| 245 | 245 | ->send(true); |
@@ -175,7 +175,7 @@ |
||
| 175 | 175 | $template->addTemplate('accounts'); |
| 176 | 176 | $template->assign('gdIsAvailable', $this->extensionChecker->checkGdAvailable()); |
| 177 | 177 | |
| 178 | - $mimeTypesAvailable = array_map(function ($value) { |
|
| 178 | + $mimeTypesAvailable = array_map(function($value) { |
|
| 179 | 179 | return $value['type']; |
| 180 | 180 | }, $this->dic->get(MimeTypes::class)->getMimeTypes()); |
| 181 | 181 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | $this->session, |
| 80 | 80 | $this->request, |
| 81 | 81 | $this->configData, |
| 82 | - function ($redirect) { |
|
| 82 | + function($redirect) { |
|
| 83 | 83 | $this->router->response() |
| 84 | 84 | ->redirect($redirect) |
| 85 | 85 | ->send(true); |