From e7e514dc77a79ed0100ccc58abb024ead2bb6917 Mon Sep 17 00:00:00 2001 From: Stanislav Yordanov Date: Thu, 14 Nov 2013 16:41:08 +0200 Subject: [PATCH 1/2] Removed unused local variable, tab added, phpdoc tags fixed --- classes/controller/Controller.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/controller/Controller.php b/classes/controller/Controller.php index 7d56d2a02..af4861b19 100644 --- a/classes/controller/Controller.php +++ b/classes/controller/Controller.php @@ -313,12 +313,12 @@ abstract class ControllerCore /** * Add a new javascript file in page header. * - * @param mixed $js_uri + * @param mixed $name + * @param mixed $folder * @return void */ public function addJqueryPlugin($name, $folder = null) { - $plugin_path = array(); if (is_array($name)) { foreach ($name as $plugin) @@ -334,10 +334,10 @@ abstract class ControllerCore { $plugin_path = Media::getJqueryPluginPath($name, $folder); - if(!empty($plugin_path['css'])) - $this->addCSS($plugin_path['css']); - if(!empty($plugin_path['js'])) - $this->addJS($plugin_path['js']); + if(!empty($plugin_path['css'])) + $this->addCSS($plugin_path['css']); + if(!empty($plugin_path['js'])) + $this->addJS($plugin_path['js']); } } From c5b1834870dab289c93e41e5f99998460fcb87cf Mon Sep 17 00:00:00 2001 From: Stanislav Yordanov Date: Thu, 14 Nov 2013 19:22:39 +0200 Subject: [PATCH 2/2] [*] FO : Removed unused local variable, phpdoc return tag added --- classes/Referrer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Referrer.php b/classes/Referrer.php index bf90593eb..8639443c7 100644 --- a/classes/Referrer.php +++ b/classes/Referrer.php @@ -252,6 +252,7 @@ class ReferrerCore extends ObjectModel * * @param array $referrers * @param int $employee + * @return true */ public static function refreshCache($referrers = null, $employee = null) { @@ -265,7 +266,6 @@ class ReferrerCore extends ObjectModel if (!$referrer->isAssociatedToShop($shop_id)) continue; - $shop = new Shop($shop_id); $stats_visits = $referrer->getStatsVisits(null, $employee); $registrations = $referrer->getRegistrations(null, $employee); $stats_sales = $referrer->getStatsSales(null, $employee);