File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/Hal/Metric/System/Packages/Composer Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments