정적 분석기 결과 반영

This commit is contained in:
Hide_D committed 2018-04-08 23:39:02 +09:00
1 parent eeaae898ae
commit 27d313c594
23 files changed
+100 -123

No files matched your search

+2 -28
View File
@@ -13,20 +13,7 @@ class ServConfig
public static function getSharedIconPath() : string
{
static $path = '';
if($path){
$path;
}
if (Util::starts_with('http', self::$sharedIconPath)
|| Util::starts_with('//', self::$sharedIconPath))
{
$path = self::$sharedIconPath;
}
else{
$path = self::$serverWebPath.'/'.self::$sharedIconPath;
}
return $path;
return static::$sharedIconPath;
}
public static function getUserIconPath() : string
@@ -36,20 +23,7 @@ class ServConfig
public static function getGameImagePath() : string
{
static $path = '';
if($path){
$path;
}
if (Util::starts_with('http', self::$gameImagePath)
|| Util::starts_with('//', self::$gameImagePath))
{
$path = self::$gameImagePath;
}
else{
$path = self::$serverWebPath.'/'.self::$gameImagePath;
}
return $path;
return static::$gameImagePath;
}