Skip to content

Commit

Permalink
Fixing the bin to run on the app itself
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer committed Sep 23, 2024
1 parent 34c8fe3 commit 8e0229b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/cognitive-analysis
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env php
<?php

require_once __DIR__ . '/../../../autoload.php';
if (file_exists(__DIR__ . '/../../../autoload.php')) {
require_once __DIR__ . '/../../../autoload.php';
} else {
require_once __DIR__ . '/../vendor/autoload.php';
}

use Phauthentic\CodeQualityMetrics\Command\CognitiveMetricsCommand;
use Phauthentic\CodeQualityMetrics\Command\HalsteadMetricsCommand;
Expand Down

0 comments on commit 8e0229b

Please sign in to comment.