정적 분석기 결과 반영

This commit is contained in:
2018-04-08 23:39:02 +09:00
parent eeaae898ae
commit 27d313c594
23 changed files with 100 additions and 123 deletions
+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;
}