Skip to content

Commit

Permalink
Fixing bin file
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer committed Sep 21, 2024
1 parent 2dd4b0c commit ed47e72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/cognitive-analysis
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env php
<?php

if (is_file(__DIR__.'/../autoload.php') === true) {
include_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;
Expand Down

0 comments on commit ed47e72

Please sign in to comment.