Skip to content

Commit 336ce35

Browse files
authored
Merge pull request #528 from ShotaroMuraoka/fix/scanning-invalid-directories
2 parents b5f737e + 1a4cbaa commit 336ce35

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Hal/Metric/System/Packages/Composer/Composer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ protected function getComposerJsonRequirements()
8282
$finder = new Finder(['json'], $exclude);
8383

8484
// include root dir by default
85-
$files = $this->config->has('files') ? $this->config->get('files') : [];
86-
$files = array_merge($files, ['./']);
85+
$files = $this->config->has('files') ? $this->config->get('files') : ['./'];
8786
$files = $finder->fetch($files);
8887

8988
foreach ($files as $filename) {
@@ -116,8 +115,7 @@ protected function getComposerLockInstalled($rootPackageRequirements)
116115
$finder = new Finder(['lock'], $exclude);
117116

118117
// include root dir by default
119-
$files = $this->config->has('files') ? $this->config->get('files') : [];
120-
$files = array_merge($files, ['./']);
118+
$files = $this->config->has('files') ? $this->config->get('files') : ['./'];
121119
$files = $finder->fetch($files);
122120

123121
// List all composer.lock found in the project.

0 commit comments

Comments
 (0)