Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 26, 2023
1 parent 5481f31 commit ae28ad1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/realtime-compiler/src/Http/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,13 @@ protected function abort(int $code, string $message): never
protected function findGeneralOpenBinary(): string
{
return match (PHP_OS_FAMILY) {
'Windows' => 'powershell Start-Process', // Using PowerShell allows us to open the file in the background
// Using PowerShell allows us to open the file in the background
'Windows' => 'powershell Start-Process',
'Darwin' => 'open',
'Linux' => 'xdg-open',
default => throw new HttpException(500, sprintf("Unable to find a matching binary for OS family '%s'", PHP_OS_FAMILY))
default => throw new HttpException(500,
sprintf("Unable to find a matching binary for OS family '%s'", PHP_OS_FAMILY)
)
};
}
}

0 comments on commit ae28ad1

Please sign in to comment.