정적 분석기 결과 반영. 주로 배열 초기화. 변수 이름 실수 수정.
This commit is contained in:
@@ -32,8 +32,10 @@ class AppConf
|
||||
public static function requireRootDB()
|
||||
{
|
||||
if (!class_exists('\\sammo\\RootDB')) {
|
||||
trigger_error('RootDB.php가 설정되지 않았습니다.', E_USER_ERROR);
|
||||
die();
|
||||
if(!trigger_error('RootDB.php가 설정되지 않았습니다.', E_USER_ERROR)){
|
||||
die();
|
||||
}
|
||||
|
||||
}
|
||||
return RootDB::db();
|
||||
}
|
||||
@@ -46,8 +48,10 @@ class AppConf
|
||||
public static function requireDB()
|
||||
{
|
||||
if (!class_exists('\\sammo\\DB')) {
|
||||
trigger_error('DB.php가 설정되지 않았습니다.', E_USER_ERROR);
|
||||
die();
|
||||
if(!trigger_error('DB.php가 설정되지 않았습니다.', E_USER_ERROR)){
|
||||
die();
|
||||
}
|
||||
|
||||
}
|
||||
return DB::db();
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class FileUtil
|
||||
|
||||
$filepath = sprintf('%s/%s', $dir, $FolderOrFile);
|
||||
if (is_dir($filepath)) {
|
||||
delExpiredInDir($filepath, $t);
|
||||
static::delExpiredInDir($filepath, $t);
|
||||
} // recursive
|
||||
else {
|
||||
$mt = filemtime($filepath);
|
||||
@@ -51,7 +51,6 @@ class FileUtil
|
||||
}
|
||||
closedir($handle);
|
||||
}
|
||||
|
||||
return $success;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user