Statically used methods should be defined statically as well

This commit is contained in:
Michael
2017-08-25 15:56:08 +00:00
parent 959d6ae15e
commit b0c26921ad
6 changed files with 49 additions and 49 deletions

View File

@@ -42,7 +42,7 @@ class Cache {
*
* @return integer The cache duration in seconds
*/
private function duration($level) {
private static function duration($level) {
switch($level) {
case CACHE_MONTH;
$seconds = 2592000;