Skip to content

Commit

Permalink
composer-dependency-analyser fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Sep 26, 2024
1 parent 480a66b commit f4896b2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@
$line = '';
}

// PHP & Pattern?
if (pathinfo($line, PATHINFO_EXTENSION) !== 'php') {
$line = '';
}
// File?
$line = match (pathinfo($line, PATHINFO_EXTENSION)) {
'' => "{$line}/*.php",
'php' => $line,
default => '',
};

if (!str_contains($line, '*')) {
$line = '';
Expand Down Expand Up @@ -94,6 +96,8 @@
// Add as dev
$dependencies = Finder::create()
->ignoreVCSIgnored(true)
->notName('composer-dependency-analyser.php')
->notName('monorepo-builder.php')
->exclude('node_modules')
->exclude('vendor-bin')
->exclude('vendor')
Expand Down

0 comments on commit f4896b2

Please sign in to comment.