Skip to content

Commit

Permalink
Merge pull request #339 from OpenMage/php-lint-test
Browse files Browse the repository at this point in the history
Fix errors found via PHP lint.
  • Loading branch information
colinmollenhour authored Aug 31, 2017
2 parents 7aedb6e + 92ce727 commit 5dde5ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ matrix:
allow_failures:
- php: 7.2

before_script:
- '! find . -not \( -path ./lib/PEAR -prune \) -not \( -path ./lib/phpseclib -prune \) -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'
script:
- '! find . -not \( -path ./lib/PEAR -prune \) -not \( -path ./lib/phpseclib -prune \) -not \( -path ./lib/Zend -prune \) -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'
- '! find app/design -type f -name "*.phtml" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'

script: exit 0
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 5dde5ee

Please sign in to comment.