- minor code/performance improvements

This commit is contained in:
Mark Friedrich
2019-02-09 16:33:31 +01:00
parent e28fea9081
commit 8abd5cba6e
7 changed files with 137 additions and 92 deletions

View File

@@ -162,9 +162,9 @@ class LogController extends \Prefab {
/**
* get Logger instance
* @param string $type
* @return \Log|null
* @return \Log
*/
public static function getLogger($type){
public static function getLogger(string $type) : \Log {
$logFiles = Config::getPathfinderData('logfiles');
$logFileName = empty($logFiles[$type]) ? 'error' : $logFiles[$type];