Skip to content

Commit 3babe57

Browse files
committed
Remove commented line, formatting
1 parent d7ccf07 commit 3babe57

1 file changed

Lines changed: 17 additions & 21 deletions

File tree

  • administrator/components/com_patchtester/models

administrator/components/com_patchtester/models/pull.php

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,23 @@
1515
class PatchtesterModelPull extends JModel
1616
{
1717

18-
/**
19-
* Method to auto-populate the model state.
20-
*
21-
* Note. Calling getState in this method will result in recursion.
22-
*
23-
* @since 1.6
24-
*/
25-
protected function populateState()
26-
{
27-
// Initialise variables.
28-
// $app = JFactory::getApplication('administrator');
29-
30-
// Load the parameters.
31-
$params = JComponentHelper::getParams('com_patchtester');
32-
$this->setState('params', $params);
33-
$this->setState('github_user', $params->get('org'));
34-
$this->setState('github_repo', $params->get('repo'));
35-
36-
// parent::populateState();
37-
}
18+
/**
19+
* Method to auto-populate the model state.
20+
*
21+
* Note. Calling getState in this method will result in recursion.
22+
*
23+
* @since 1.6
24+
*/
25+
protected function populateState()
26+
{
27+
// Load the parameters.
28+
$params = JComponentHelper::getParams('com_patchtester');
29+
$this->setState('params', $params);
30+
$this->setState('github_user', $params->get('org'));
31+
$this->setState('github_repo', $params->get('repo'));
3832

33+
parent::populateState();
34+
}
3935

4036
protected function parsePatch($patch)
4137
{
@@ -112,7 +108,7 @@ public function apply($id)
112108
$http = new JHttp;
113109

114110
$url = 'https://raw.github.com/' . $pull->head->user->login . '/' . $pull->head->repo->name . '/' .
115-
$pull->head->ref . '/' . $file->new;
111+
$pull->head->ref . '/' . $file->new;
116112

117113

118114
// if the backup file already exists, we can't apply the patch

0 commit comments

Comments
 (0)