Skip to content

Commit

Permalink
Fix some php-cs-fixer detections
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jan 19, 2024
1 parent 1c2c65c commit 0c7d312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/moodle-plugin-ci
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ define('MOODLE_PLUGIN_CI_BOXED', '@is_boxed@');

// If we are running moodle-plugin-ci within a PHAR, we need to set the
// path to the dotenv file differently.
if (\Phar::running() !== '') {
if (Phar::running() !== '') {
// The .env file is in the same directory than the phar.
define('ENV_FILE', dirname(\Phar::running(false)) . '/.env');
define('ENV_FILE', dirname(Phar::running(false)) . '/.env');
} else {
// The .env file is in the root directory of the moodle-plugin-ci project.
define('ENV_FILE', dirname(__DIR__) . '/.env');
Expand All @@ -72,7 +72,7 @@ if (file_exists(ENV_FILE)) {
$env->load(ENV_FILE);
}

$version = (new \SebastianBergmann\Version(MOODLE_PLUGIN_CI_VERSION, dirname(__DIR__)))->getVersion();
$version = (new SebastianBergmann\Version(MOODLE_PLUGIN_CI_VERSION, dirname(__DIR__)))->getVersion();
// Let's make Box to find the better version for the phar from git.
if (MOODLE_PLUGIN_CI_BOXED === 'BOXED') {
$version = '@package_version@';
Expand Down

0 comments on commit 0c7d312

Please sign in to comment.