mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
Drop unnecessary doc blocks (#1339)
* Drop unnecessary doc blocks * Apply fixes from StyleCI Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -11,21 +11,11 @@ abstract class ValetDriver
|
||||
{
|
||||
/**
|
||||
* Determine if the driver serves the request.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return bool
|
||||
*/
|
||||
abstract public function serves(string $sitePath, string $siteName, string $uri): bool;
|
||||
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return string|false
|
||||
*/
|
||||
// While we support PHP 7.4 for individual site isolation...
|
||||
abstract public function isStaticFile(string $sitePath, string $siteName, string $uri);
|
||||
@@ -33,21 +23,11 @@ abstract public function isStaticFile(string $sitePath, string $siteName, string
|
||||
|
||||
/**
|
||||
* Get the fully resolved path to the application's front controller.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return string|null
|
||||
*/
|
||||
abstract public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string;
|
||||
|
||||
/**
|
||||
* Find a driver that can serve the incoming request.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return ValetDriver|null
|
||||
*/
|
||||
public static function assign(string $sitePath, string $siteName, string $uri): ?ValetDriver
|
||||
{
|
||||
@@ -79,9 +59,6 @@ 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
|
||||
*/
|
||||
public static function customSiteDriver(string $sitePath): ?string
|
||||
{
|
||||
@@ -96,9 +73,6 @@ public static function customSiteDriver(string $sitePath): ?string
|
||||
|
||||
/**
|
||||
* Get all of the driver classes in a given path.
|
||||
*
|
||||
* @param string $path
|
||||
* @return array
|
||||
*/
|
||||
public static function driversIn(string $path): array
|
||||
{
|
||||
@@ -123,8 +97,6 @@ public static function driversIn(string $path): array
|
||||
|
||||
/**
|
||||
* Get all of the specific drivers shipped with Valet.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function specificDrivers(): array
|
||||
{
|
||||
@@ -135,8 +107,6 @@ public static function specificDrivers(): array
|
||||
|
||||
/**
|
||||
* Get all of the custom drivers defined by the user locally.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function customDrivers(): array
|
||||
{
|
||||
@@ -147,11 +117,6 @@ public static function customDrivers(): array
|
||||
|
||||
/**
|
||||
* Take any steps necessary before loading the front controller for this driver.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function beforeLoading(string $sitePath, string $siteName, string $uri): void
|
||||
{
|
||||
@@ -160,9 +125,6 @@ public function beforeLoading(string $sitePath, string $siteName, string $uri):
|
||||
|
||||
/**
|
||||
* Mutate the incoming URI.
|
||||
*
|
||||
* @param string $uri
|
||||
* @return string
|
||||
*/
|
||||
public function mutateUri(string $uri): string
|
||||
{
|
||||
@@ -171,12 +133,6 @@ public function mutateUri(string $uri): string
|
||||
|
||||
/**
|
||||
* Serve the static file at the given path.
|
||||
*
|
||||
* @param string $staticFilePath
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function serveStaticFile(string $staticFilePath, string $sitePath, string $siteName, string $uri): void
|
||||
{
|
||||
@@ -203,9 +159,6 @@ public function serveStaticFile(string $staticFilePath, string $sitePath, string
|
||||
|
||||
/**
|
||||
* Determine if the path is a file and not a directory.
|
||||
*
|
||||
* @param string $path
|
||||
* @return bool
|
||||
*/
|
||||
protected function isActualFile(string $path): bool
|
||||
{
|
||||
@@ -215,10 +168,6 @@ protected function isActualFile(string $path): bool
|
||||
/**
|
||||
* Load server environment variables if available.
|
||||
* Processes any '*' entries first, and then adds site-specific entries.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @return void
|
||||
*/
|
||||
public function loadServerEnvironmentVariables(string $sitePath, string $siteName): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user