From 9705d9ef0ea6bb50cc274e9d5c62a3e8c7e83c01 Mon Sep 17 00:00:00 2001 From: zero-24 Date: Tue, 25 Aug 2015 14:46:38 +0200 Subject: [PATCH 1/2] Add function desc and mirror CS fixes --- plugins/system/cache/cache.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/system/cache/cache.php b/plugins/system/cache/cache.php index f80ad16362614..185b76b7cdbc0 100644 --- a/plugins/system/cache/cache.php +++ b/plugins/system/cache/cache.php @@ -120,7 +120,15 @@ public function onAfterRender() } } - protected function isExcluded() { + /** + * Check if the page is excluded from the cache or not. + * + * @return boolean True if the page is excluded else false + * + * @since 3.5 + */ + protected function isExcluded() + { // Check if menu items have been excluded if ($exclusions = $this->params->get('exclude_menu_items', array())) { @@ -153,7 +161,7 @@ protected function isExcluded() { // Make sure the exclusion has some content if (strlen($exclusion)) { - if (preg_match('/'.$exclusion.'/is', $path, $match)) + if (preg_match('/' . $exclusion . '/is', $path, $match)) { return true; } From 75bc61cfc2439f917d97756a709039687022b3cc Mon Sep 17 00:00:00 2001 From: zero-24 Date: Tue, 25 Aug 2015 14:47:34 +0200 Subject: [PATCH 2/2] one space to much --- plugins/system/cache/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/system/cache/cache.php b/plugins/system/cache/cache.php index 185b76b7cdbc0..9883cb63e8815 100644 --- a/plugins/system/cache/cache.php +++ b/plugins/system/cache/cache.php @@ -123,7 +123,7 @@ public function onAfterRender() /** * Check if the page is excluded from the cache or not. * - * @return boolean True if the page is excluded else false + * @return boolean True if the page is excluded else false * * @since 3.5 */