mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-16 23:15:55 +00:00
Merge pull request #41 from beyondcode/analysis-KZpkkj
Apply fixes from StyleCI
This commit is contained in:
@@ -20,7 +20,7 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
|
|||||||
|
|
||||||
protected function detectTld(): string
|
protected function detectTld(): string
|
||||||
{
|
{
|
||||||
$valetConfigFile = ($_SERVER['HOME'] ?? $_SERVER['USERPROFILE']) .DIRECTORY_SEPARATOR.'.config'.DIRECTORY_SEPARATOR.'valet'.DIRECTORY_SEPARATOR.'config.json';
|
$valetConfigFile = ($_SERVER['HOME'] ?? $_SERVER['USERPROFILE']).DIRECTORY_SEPARATOR.'.config'.DIRECTORY_SEPARATOR.'valet'.DIRECTORY_SEPARATOR.'config.json';
|
||||||
|
|
||||||
if (file_exists($valetConfigFile)) {
|
if (file_exists($valetConfigFile)) {
|
||||||
$valetConfig = json_decode(file_get_contents($valetConfigFile));
|
$valetConfig = json_decode(file_get_contents($valetConfigFile));
|
||||||
|
|||||||
Reference in New Issue
Block a user