mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
Add doc blocks
This commit is contained in:
@@ -79,12 +79,12 @@ public static function assign(string $sitePath, string $siteName, string $uri):
|
||||
* Get the custom driver class from the site path, if one exists.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @return string|null|void
|
||||
* @return string|null
|
||||
*/
|
||||
public static function customSiteDriver(string $sitePath)
|
||||
public static function customSiteDriver(string $sitePath): ?string
|
||||
{
|
||||
if (! file_exists($sitePath.'/LocalValetDriver.php')) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
require_once $sitePath.'/LocalValetDriver.php';
|
||||
@@ -119,6 +119,11 @@ public static function driversIn(string $path): array
|
||||
return $drivers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all of the specific drivers shipped with Valet.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function specificDrivers(): array
|
||||
{
|
||||
return array_map(function ($item) {
|
||||
@@ -126,6 +131,11 @@ public static function specificDrivers(): array
|
||||
}, static::driversIn(__DIR__.'/Specific'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all of the custom drivers defined by the user locally.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function customDrivers(): array
|
||||
{
|
||||
return array_map(function ($item) {
|
||||
|
||||
Reference in New Issue
Block a user