From 58c0e1207d3ff00e034febe5461b2f1714a1dc15 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 17 Jan 2013 22:39:21 +0200 Subject: [PATCH] PSR - fix --- engine/Monstra.php | 10 +++++----- libraries/Gelato/ClassLoader/ClassLoader.php | 12 ++++++------ libraries/Gelato/Registry/Registry.php | 6 +++--- plugins/box/system/system.admin.php | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/engine/Monstra.php b/engine/Monstra.php index 58f4a96..ec9da8f 100644 --- a/engine/Monstra.php +++ b/engine/Monstra.php @@ -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); } /** diff --git a/libraries/Gelato/ClassLoader/ClassLoader.php b/libraries/Gelato/ClassLoader/ClassLoader.php index 5f018aa..1e336ba 100644 --- a/libraries/Gelato/ClassLoader/ClassLoader.php +++ b/libraries/Gelato/ClassLoader/ClassLoader.php @@ -58,7 +58,7 @@ class ClassLoader /** * Add class to mapping. - * + * * * ClassLoader::mapClass('ClassName', 'path/to/class'); * @@ -74,7 +74,7 @@ class ClassLoader /** * Add multiple classes to mapping. - * + * * * ClassLoader::mapClasses(array('ClassName' => 'path/to/class','ClassName' => 'path/to/class')); * @@ -91,7 +91,7 @@ class ClassLoader /** * Adds a PSR-0 directory path. - * + * * * ClassLoader::directory('path/to/classes'); * @@ -106,7 +106,7 @@ class ClassLoader /** * Registers a namespace. - * + * * * ClassLoader::registerNamespace('Namespace', '/path/to/namespace/'); * @@ -122,7 +122,7 @@ class ClassLoader /** * Set an alias for a class. - * + * * * ClassLoader::registerNamespace('ClassNameAlias', 'ClassName'); * @@ -171,7 +171,7 @@ class ClassLoader /** * Autoloader. - * + * * * ClassLoader::load(); * diff --git a/libraries/Gelato/Registry/Registry.php b/libraries/Gelato/Registry/Registry.php index fa14d9b..16234f4 100644 --- a/libraries/Gelato/Registry/Registry.php +++ b/libraries/Gelato/Registry/Registry.php @@ -27,7 +27,7 @@ class Registry /** * Checks if an object with this name is in the registry. - * + * * * if (Registry::exists('var')) { * // Do something... @@ -44,7 +44,7 @@ class Registry /** * Registers a given value under a given name. - * + * * * Registry::set('var', 'value'); * @@ -69,7 +69,7 @@ class Registry /** * Fetch an item from the registry. - * + * * * $var = Registry::get('var', 'value'); * diff --git a/plugins/box/system/system.admin.php b/plugins/box/system/system.admin.php index bc2d1d6..87839a3 100755 --- a/plugins/box/system/system.admin.php +++ b/plugins/box/system/system.admin.php @@ -90,7 +90,7 @@ class SystemAdmin extends Backend Notification::set('success', __('Temporary files deleted', 'system')); Request::redirect('index.php?id=system'); } - + } else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); } }