X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHook%2FJoomla.php;h=eb2f7b0c774e956a784ec683627c47f673859429;hb=c7520a56bfa2644701cb566252b3b7dc0264bd14;hp=e80161de2590e54761c4b124c08ea49f485a4a2b;hpb=5afcf74389296764bd92ed3bc3b2f5f209933bfe;p=civicrm-core.git diff --git a/CRM/Utils/Hook/Joomla.php b/CRM/Utils/Hook/Joomla.php index e80161de25..eb2f7b0c77 100644 --- a/CRM/Utils/Hook/Joomla.php +++ b/CRM/Utils/Hook/Joomla.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CiviCRM_Hook - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 */ class CRM_Utils_Hook_Joomla extends CRM_Utils_Hook { /** @@ -53,6 +53,7 @@ class CRM_Utils_Hook_Joomla extends CRM_Utils_Hook { * * @return mixed */ + /** * @param int $numParams * @param mixed $arg1 @@ -112,10 +113,10 @@ class CRM_Utils_Hook_Joomla extends CRM_Utils_Hook { if (!empty($result)) { // collapse result returned from hooks // CRM-9XXX - $finalResult = array(); + $finalResult = []; foreach ($result as $res) { if (!is_array($res)) { - $res = array($res); + $res = [$res]; } $finalResult = array_merge($finalResult, $res); }