33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-12-22 10:58:58 +00:00

Remove commented line, formatting

This commit is contained in:
Nikolai Plath 2011-10-13 11:44:25 -05:00
parent d7ccf07a06
commit 3babe57078

View File

@ -15,27 +15,23 @@ defined('_JEXEC') or die;
class PatchtesterModelPull extends JModel
{
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @since 1.6
*/
protected function populateState()
{
// Initialise variables.
// $app = JFactory::getApplication('administrator');
// Load the parameters.
$params = JComponentHelper::getParams('com_patchtester');
$this->setState('params', $params);
$this->setState('github_user', $params->get('org'));
$this->setState('github_repo', $params->get('repo'));
// parent::populateState();
}
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @since 1.6
*/
protected function populateState()
{
// Load the parameters.
$params = JComponentHelper::getParams('com_patchtester');
$this->setState('params', $params);
$this->setState('github_user', $params->get('org'));
$this->setState('github_repo', $params->get('repo'));
parent::populateState();
}
protected function parsePatch($patch)
{
@ -112,7 +108,7 @@ class PatchtesterModelPull extends JModel
$http = new JHttp;
$url = 'https://raw.github.com/' . $pull->head->user->login . '/' . $pull->head->repo->name . '/' .
$pull->head->ref . '/' . $file->new;
$pull->head->ref . '/' . $file->new;
// if the backup file already exists, we can't apply the patch