Skip to content

Commit

Permalink
Reorg of pear package validation script
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Jan 17, 2019
1 parent fca9cad commit 6ff6b5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ValidatePEARPackageXML
*/
public function __construct()
{
$this->projectRoot = dirname(__DIR__).'/';
$this->projectRoot = dirname(dirname(__DIR__)).'/';
$this->packageXML = simplexml_load_file($this->projectRoot.'package.xml');

$allFiles = (new FileList($this->projectRoot, $this->projectRoot))->getList();
Expand Down
4 changes: 2 additions & 2 deletions scripts/validate-pear-package.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/

require_once __DIR__.'/FileList.php';
require_once __DIR__.'/ValidatePEARPackageXML.php';
require_once __DIR__.'/ValidatePEAR/FileList.php';
require_once __DIR__.'/ValidatePEAR/ValidatePEARPackageXML.php';

$validate = new ValidatePEARPackageXML();
$validate->validate();

0 comments on commit 6ff6b5e

Please sign in to comment.