mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
NOISSUE code rearrange
This commit is contained in:
parent
b146e48ff5
commit
bc47f19615
22 changed files with 130 additions and 159 deletions
|
|
@ -254,7 +254,7 @@ class DB
|
|||
{
|
||||
if($value->enable)
|
||||
{
|
||||
array_push($enableList, $value);
|
||||
$enableList[] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -281,7 +281,7 @@ class DB
|
|||
{
|
||||
if(!$value->enable)
|
||||
{
|
||||
array_push($disableList, $value);
|
||||
$disableList[] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -712,10 +712,7 @@ class DB
|
|||
}
|
||||
|
||||
$cache_path = sprintf('%s/%s%s', $this->count_cache_path, $this->prefix, $tables_str);
|
||||
if(!is_dir($cache_path))
|
||||
{
|
||||
FileHandler::makeDir($cache_path);
|
||||
}
|
||||
FileHandler::makeDir($cache_path);
|
||||
|
||||
$cache_filename = sprintf('%s/%s.%s', $cache_path, $tables_str, $condition);
|
||||
if(!file_exists($cache_filename))
|
||||
|
|
@ -773,10 +770,7 @@ class DB
|
|||
}
|
||||
|
||||
$cache_path = sprintf('%s/%s%s', $this->count_cache_path, $this->prefix, $tables_str);
|
||||
if(!is_dir($cache_path))
|
||||
{
|
||||
FileHandler::makeDir($cache_path);
|
||||
}
|
||||
FileHandler::makeDir($cache_path);
|
||||
|
||||
$cache_filename = sprintf('%s/%s.%s', $cache_path, $tables_str, $condition);
|
||||
|
||||
|
|
@ -795,10 +789,7 @@ class DB
|
|||
{
|
||||
return FALSE;
|
||||
}
|
||||
if(!is_dir($this->count_cache_path))
|
||||
{
|
||||
return FileHandler::makeDir($this->count_cache_path);
|
||||
}
|
||||
return FileHandler::makeDir($this->count_cache_path);
|
||||
|
||||
if(!is_array($tables))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue