Skip to content

Commit

Permalink
[impr-OpenMage#339] Fix PHP lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmollenhour authored and edannenberg committed Dec 6, 2017
1 parent 68561a2 commit 819639d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/code/core/Mage/Adminhtml/Model/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ public function loadLocal($package, $options=array())
$result = $pear->run('info', $options, array($package));
if ($result instanceof PEAR_Error) {
Mage::throwException($result->message);
break;
}

$output = $pear->getOutput();
Expand All @@ -386,7 +385,6 @@ public function loadRemote($package, $options=array())
$result = $pear->run('remote-info', $options, array($package));
if ($result instanceof PEAR_Error) {
Mage::throwException($result->message);
break;
}

$output = $pear->getOutput();
Expand Down
2 changes: 1 addition & 1 deletion lib/3Dsecure/XMLParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class XMLParser{
// Initialize the XML parser.
/////////////////////////////////////////////////////////////////////////////////////////////

function XMLParser() {
function __construct() {
$this->xml_parser = xml_parser_create();
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Varien/Pear/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function _initializeDepDB()
} else {
$file = '.pearrc';
}
$this->_config = &new PEAR_Config($this->statedir . DIRECTORY_SEPARATOR .
$this->_config = new PEAR_Config($this->statedir . DIRECTORY_SEPARATOR .
$file, '-'); // NO SYSTEM INI FILE
$this->_config->setRegistry($this);
$this->_config->set('php_dir', $this->install_dir);
Expand Down

0 comments on commit 819639d

Please sign in to comment.