1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

StyleCI Patch

This commit is contained in:
NasirNobin
2022-03-23 04:11:58 +06:00
parent 605118d3e4
commit 6f085bc70e
3 changed files with 53 additions and 57 deletions

View File

@@ -562,13 +562,13 @@
})->descriptions('List all sites using isolated versions of PHP.');
/**
* Get the PHP executable path for a site
* Get the PHP executable path for a site.
*/
$app->command('which-php [site] [--skip-cache]', function ($site, $skipCache) {
$host = Site::host($site ?: getcwd()).'.'.Configuration::read()['tld'];
$phpVersion = Site::customPhpVersion($host);
if(! $phpVersion){
if (! $phpVersion) {
$path = getcwd().'/.valetphprc';
if (file_exists($path)) {
$phpVersion = trim(file_get_contents($path));
@@ -584,16 +584,16 @@
]);
/**
* Proxy PHP commands with isolated site's PHP executable
* Proxy PHP commands with isolated site's PHP executable.
*/
$app->command('php [command]', function ($command) {
warning('It looks like you are running `cli/valet.php` directly; please use the `valet` script in the project root instead.');
})->descriptions("Proxy PHP commands with isolated site's PHP executable", [
})->descriptions("Proxy PHP commands with isolated site's PHP executable", [
'command' => "Command to run with isolated site's PHP executable",
]);
/**
* Proxy Composer commands with isolated site's PHP executable
* Proxy Composer commands with isolated site's PHP executable.
*/
$app->command('composer [command]', function ($command) {
warning('It looks like you are running `cli/valet.php` directly; please use the `valet` script in the project root instead.');