File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -12,22 +12,27 @@ class Sail
1212
1313 public static function artisanCommand (): string
1414 {
15- return self ::BINARY_PATH . ' artisan ' ;
15+ return self ::command ( ' artisan ') ;
1616 }
1717
1818 public static function binCommand (): string
1919 {
20- return self ::BINARY_PATH . ' bin ' ;
20+ return self ::command ( ' bin ') ;
2121 }
2222
2323 public static function composerCommand (): string
2424 {
25- return self ::BINARY_PATH . ' composer ' ;
25+ return self ::command ( ' composer ') ;
2626 }
2727
2828 public static function nodePackageManagerCommand (string $ manager ): string
2929 {
30- return self ::BINARY_PATH .' ' .$ manager ;
30+ return self ::command ($ manager );
31+ }
32+
33+ public static function command (string $ command ): string
34+ {
35+ return self ::BINARY_PATH .' ' .$ command ;
3136 }
3237
3338 public function isInstalled (): bool
You can’t perform that action at this time.
0 commit comments