코드 포맷. PSR-12

This commit is contained in:
kkigomi
2023-01-25 16:44:04 +09:00
parent 85b97f4b29
commit b557483e1d

View File

@ -298,14 +298,12 @@ function seo_title_update($db_table, $pk_id, $type='bbs'){
} }
} }
function get_nginx_conf_rules($return_string=false){ function get_nginx_conf_rules($return_string = false)
{
$get_path_url = parse_url(G5_URL); $get_path_url = parse_url(G5_URL);
$base_path = isset($get_path_url['path']) ? $get_path_url['path'] . '/' : '/'; $base_path = isset($get_path_url['path']) ? $get_path_url['path'] . '/' : '/';
$rules = array(); $rules = array();
$rules[] = '#### ' . G5_VERSION . ' nginx rules BEGIN #####'; $rules[] = '#### ' . G5_VERSION . ' nginx rules BEGIN #####';
$rules[] = 'if (!-e $request_filename) {'; $rules[] = 'if (!-e $request_filename) {';
@ -326,14 +324,12 @@ function get_nginx_conf_rules($return_string=false){
return $return_string ? implode("\n", $rules) : $rules; return $return_string ? implode("\n", $rules) : $rules;
} }
function get_mod_rewrite_rules($return_string=false){ function get_mod_rewrite_rules($return_string = false)
{
$get_path_url = parse_url(G5_URL); $get_path_url = parse_url(G5_URL);
$base_path = isset($get_path_url['path']) ? $get_path_url['path'] . '/' : '/'; $base_path = isset($get_path_url['path']) ? $get_path_url['path'] . '/' : '/';
$rules = array(); $rules = array();
$rules[] = '#### ' . G5_VERSION . ' rewrite BEGIN #####'; $rules[] = '#### ' . G5_VERSION . ' rewrite BEGIN #####';
$rules[] = '<IfModule mod_rewrite.c>'; $rules[] = '<IfModule mod_rewrite.c>';
$rules[] = 'RewriteEngine On'; $rules[] = 'RewriteEngine On';