diff --git a/administrator/components/com_postinstall/controllers/message.php b/administrator/components/com_postinstall/controllers/message.php index c09e2949eefe0..9a2e7f80b5f7b 100644 --- a/administrator/components/com_postinstall/controllers/message.php +++ b/administrator/components/com_postinstall/controllers/message.php @@ -9,10 +9,15 @@ defined('_JEXEC') or die; +/** + * Postinstall message controller. + * + * @since 3.2 + */ class PostinstallControllerMessage extends FOFController { /** - * Resets all post-installation messages of the specified extension + * Resets all post-installation messages of the specified extension. * * @return void * @@ -30,7 +35,7 @@ public function reset() } /** - * Executes the action associated with an item + * Executes the action associated with an item. * * @return void * @@ -38,7 +43,7 @@ public function reset() */ public function action() { - // CSRF prevention + // CSRF prevention. if ($this->csrfProtection) { $this->_csrfProtection(); diff --git a/administrator/components/com_postinstall/models/messages.php b/administrator/components/com_postinstall/models/messages.php index 8eec4eaa73b17..0824b67a5dd83 100644 --- a/administrator/components/com_postinstall/models/messages.php +++ b/administrator/components/com_postinstall/models/messages.php @@ -117,7 +117,7 @@ public function resetMessages($eid) * Do note that this a core method of the RAD Layer which operates directly * on the list it's being fed. A little touch of modern magic. * - * @param array $resultArray A list of items to process + * @param array &$resultArray A list of items to process * * @return void * @@ -130,7 +130,7 @@ protected function onProcessList(&$resultArray) foreach ($resultArray as $key => $item) { - // Filter out messages based on dynamically loaded programmatic conditions + // Filter out messages based on dynamically loaded programmatic conditions. if (!empty($item->condition_file) && !empty($item->condition_method)) { jimport('joomla.filesystem.file'); @@ -150,7 +150,7 @@ protected function onProcessList(&$resultArray) } } - // Load the necessary language files + // Load the necessary language files. if (!empty($item->language_extension)) { $hash = $item->language_client_id . '-' . $item->language_extension; diff --git a/administrator/components/com_postinstall/postinstall.php b/administrator/components/com_postinstall/postinstall.php index e8450c4535942..2d938f8c5d7ec 100644 --- a/administrator/components/com_postinstall/postinstall.php +++ b/administrator/components/com_postinstall/postinstall.php @@ -9,11 +9,11 @@ defined('_JEXEC') or die; -// Load the RAD layer +// Load the RAD layer. if (!defined('FOF_INCLUDED')) { require_once JPATH_LIBRARIES . '/fof/include.php'; } -// Dispatch the component -FOFDispatcher::getTmpInstance('com_postinstall')->dispatch(); \ No newline at end of file +// Dispatch the component. +FOFDispatcher::getTmpInstance('com_postinstall')->dispatch();