One-time use variables.

This commit is contained in:
Yuriy Pikhtarev 2017-05-05 00:53:16 +03:00
parent bcf57cd68a
commit 95575e1096
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
3 changed files with 4 additions and 12 deletions

View file

@ -196,9 +196,7 @@ function unlink_attach($filename, $mode = false)
$filename = $upload_dir . '/' . $filename;
}
$deleted = @unlink($filename);
return $deleted;
return @unlink($filename);
}
/**

View file

@ -49,9 +49,7 @@ function read_word($fp)
{
$data = fread($fp, 2);
$value = ord($data[1]) * 256 + ord($data[0]);
return $value;
return ord($data[1]) * 256 + ord($data[0]);
}
/**
@ -61,9 +59,7 @@ function read_byte($fp)
{
$data = fread($fp, 1);
$value = ord($data);
return $value;
return ord($data);
}
/**

View file

@ -1442,9 +1442,7 @@ function setup_style()
require TEMPLATES_DIR . '/' . $tpl_dir_name . '/tpl_config.php';
$theme = array('template_name' => $tpl_dir_name);
return $theme;
return array('template_name' => $tpl_dir_name);
}
// Create date / time with format and friendly date