@@ -6,9 +6,9 @@ discard block |
||
| 6 | 6 | { |
| 7 | 7 | /** |
| 8 | 8 | * check if is cache dir |
| 9 | - * |
|
| 10 | - * @return bool |
|
| 11 | - */ |
|
| 9 | + * |
|
| 10 | + * @return bool |
|
| 11 | + */ |
|
| 12 | 12 | public static function isCacheDir() |
| 13 | 13 | { |
| 14 | 14 | if(!is_dir(__DIR__ .'/cache/')) mkdir(__DIR__ ."/cache/", 0700); |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * check if cache file exists |
| 21 | - * |
|
| 22 | - * @return bool |
|
| 23 | - */ |
|
| 21 | + * |
|
| 22 | + * @return bool |
|
| 23 | + */ |
|
| 24 | 24 | public static function isFile() |
| 25 | 25 | { |
| 26 | 26 | $files = glob(__DIR__ .'/cache/*.txt'); |
@@ -36,9 +36,9 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * get name of cache file |
| 39 | - * |
|
| 40 | - * @return string |
|
| 41 | - */ |
|
| 39 | + * |
|
| 40 | + * @return string |
|
| 41 | + */ |
|
| 42 | 42 | public static function getFileName() |
| 43 | 43 | { |
| 44 | 44 | $files = glob(__DIR__ .'/cache/*.txt'); |
@@ -51,9 +51,9 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * check if cache file is needed to update |
| 54 | - * |
|
| 55 | - * @return bool |
|
| 56 | - */ |
|
| 54 | + * |
|
| 55 | + * @return bool |
|
| 56 | + */ |
|
| 57 | 57 | public static function isCurrent($file) |
| 58 | 58 | { |
| 59 | 59 | $getSourceName = explode(".", $file); |
@@ -71,12 +71,12 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * create new cache file |
| 74 | - * |
|
| 74 | + * |
|
| 75 | 75 | * @param string $file |
| 76 | 76 | * @param array|string $data |
| 77 | 77 | * @param int $time |
| 78 | - * @return bool |
|
| 79 | - */ |
|
| 78 | + * @return bool |
|
| 79 | + */ |
|
| 80 | 80 | public static function setNewCacheFile($file, $data, $time) |
| 81 | 81 | { |
| 82 | 82 | if($file) unlink(__DIR__ .'/cache/'.$file); |
@@ -92,9 +92,9 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * get cache data |
| 95 | - * |
|
| 96 | - * @return array |
|
| 97 | - */ |
|
| 95 | + * |
|
| 96 | + * @return array |
|
| 97 | + */ |
|
| 98 | 98 | public static function getCache($file) |
| 99 | 99 | { |
| 100 | 100 | $data = file_get_contents(__DIR__ .'/cache/'.$file); |