1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

PSR - fix

This commit is contained in:
Awilum
2013-01-17 22:39:21 +02:00
parent fa5824e03c
commit 58c0e1207d
4 changed files with 15 additions and 15 deletions

View File

@@ -287,17 +287,17 @@ class Monstra
}
}
/**
* Clean Monstra TMP folder.
*/
public static function cleanTmp()
{
public static function cleanTmp()
{
// Cleanup minify
if (count($files = File::scan(MINIFY, array('css', 'js', 'php'))) > 0) foreach ($files as $file) File::delete(MINIFY . DS . $file);
// Cleanup cache
if (count($namespaces = Dir::scan(CACHE)) > 0) foreach ($namespaces as $namespace) Dir::delete(CACHE . DS . $namespace);
if (count($namespaces = Dir::scan(CACHE)) > 0) foreach ($namespaces as $namespace) Dir::delete(CACHE . DS . $namespace);
}
/**