1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Fix code styling

This commit is contained in:
driesvints
2023-07-21 03:30:59 +00:00
committed by github-actions[bot]
parent b5103d15bb
commit c1ef300469
9 changed files with 26 additions and 26 deletions

View File

@@ -102,7 +102,7 @@ public function createConfigurationFiles(string $phpVersion): void
/**
* Restart the PHP FPM process (if one specified) or processes (if none specified).
*/
public function restart(?string $phpVersion = null): void
public function restart(string $phpVersion = null): void
{
$this->brew->restartService($phpVersion ?: $this->utilizedPhpVersions());
}
@@ -121,7 +121,7 @@ public function stop(): void
/**
* Get the path to the FPM configuration file for the current PHP version.
*/
public function fpmConfigPath(?string $phpVersion = null): string
public function fpmConfigPath(string $phpVersion = null): string
{
if (! $phpVersion) {
$phpVersion = $this->brew->linkedPhp();
@@ -150,7 +150,7 @@ public function stopRunning(): void
/**
* Stop a given PHP version, if that specific version isn't being used globally or by any sites.
*/
public function stopIfUnused(?string $phpVersion = null): void
public function stopIfUnused(string $phpVersion = null): void
{
if (! $phpVersion) {
return;
@@ -303,7 +303,7 @@ public function validateRequestedVersion(string $version): string
/**
* Get FPM sock file name for a given PHP version.
*/
public static function fpmSockName(?string $phpVersion = null): string
public static function fpmSockName(string $phpVersion = null): string
{
$versionInteger = preg_replace('~[^\d]~', '', $phpVersion);