Skip to content

Commit

Permalink
[Code Style] administrator/components/com_postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavenport committed Oct 12, 2014
1 parent e98d26f commit e9f2215
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
11 changes: 8 additions & 3 deletions administrator/components/com_postinstall/controllers/message.php
Expand Up @@ -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
*
Expand All @@ -30,15 +35,15 @@ public function reset()
}

/**
* Executes the action associated with an item
* Executes the action associated with an item.
*
* @return void
*
* @since 3.2
*/
public function action()
{
// CSRF prevention
// CSRF prevention.
if ($this->csrfProtection)
{
$this->_csrfProtection();
Expand Down
6 changes: 3 additions & 3 deletions administrator/components/com_postinstall/models/messages.php
Expand Up @@ -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
*
Expand All @@ -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');
Expand All @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions administrator/components/com_postinstall/postinstall.php
Expand Up @@ -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();
// Dispatch the component.
FOFDispatcher::getTmpInstance('com_postinstall')->dispatch();

0 comments on commit e9f2215

Please sign in to comment.