Skip to content

Commit

Permalink
Merge pull request #5 from roger-sei/develop
Browse files Browse the repository at this point in the history
Autoload path fixed
  • Loading branch information
roger-sei committed Sep 17, 2019
2 parents ccca5a9 + fc3dcca commit 1b2152e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bin/super-giggle
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
#!/usr/bin/env php
<?php
/**
* SupperGiggler for coding standards validation against a given commit
* SuperGiggler for coding standards validation against a given commit
*
* @author Roger Sei <roger.sei@icloud.com>
* @license //github.com/roger-sei/SuperGiggle/blob/master/LICENSE BSD Licence
*/

require_once __DIR__.'/../vendor/autoload.php';
if (file_exists(__DIR__ . '/../vendor/autoload.php') === true) {
require __DIR__ . '/../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../../autoload.php') === true) {
require __DIR__ . '/../../../autoload.php';
} else {
echo 'Warning: Dependencies from composer not found. The required files...';
require __DIR__ . '/src/Main.php';
require __DIR__ . '/src/Util.php';
}

use SupperGiggle\Main;
use SupperGiggle\Util;
Expand All @@ -19,3 +27,4 @@ if (isset($opts['help'])) {

$phpcs = new Main();
$phpcs->run($opts);

0 comments on commit 1b2152e

Please sign in to comment.