File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 15
15
final class ComposerHelper
16
16
{
17
17
18
- public static function getComposerJsonPath (string $ root ): string
19
- {
20
- $ envComposer = getenv ('COMPOSER ' );
21
- $ fileName = is_string ($ envComposer ) ? $ envComposer : 'composer.json ' ;
22
- $ fileName = basename (trim ($ fileName ));
23
-
24
- return $ root . '/ ' . $ fileName ;
25
- }
26
-
27
18
/** @return array<string, mixed> */
28
19
public static function getComposerConfig (string $ root ): ?array
29
20
{
@@ -42,6 +33,15 @@ public static function getComposerConfig(string $root): ?array
42
33
}
43
34
}
44
35
36
+ private static function getComposerJsonPath (string $ root ): string
37
+ {
38
+ $ envComposer = getenv ('COMPOSER ' );
39
+ $ fileName = is_string ($ envComposer ) ? $ envComposer : 'composer.json ' ;
40
+ $ fileName = basename (trim ($ fileName ));
41
+
42
+ return $ root . '/ ' . $ fileName ;
43
+ }
44
+
45
45
/**
46
46
* @param array<string, mixed> $composerConfig
47
47
*/
You can’t perform that action at this time.
0 commit comments