mirror of
https://github.com/laravel/valet.git
synced 2026-02-08 09:10:10 +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:
@@ -8,11 +8,6 @@ class CraftValetDriver extends ValetDriver
|
||||
{
|
||||
/**
|
||||
* Determine if the driver serves the request.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return bool
|
||||
*/
|
||||
public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
{
|
||||
@@ -21,11 +16,8 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
|
||||
/**
|
||||
* Determine the name of the directory where the front controller lives.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @return string
|
||||
*/
|
||||
public function frontControllerDirectory($sitePath)
|
||||
public function frontControllerDirectory($sitePath): string
|
||||
{
|
||||
$dirs = ['web', 'public'];
|
||||
|
||||
@@ -41,13 +33,8 @@ public function frontControllerDirectory($sitePath)
|
||||
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return string|false
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
{
|
||||
$frontControllerDirectory = $this->frontControllerDirectory($sitePath);
|
||||
|
||||
@@ -60,11 +47,6 @@ public function isStaticFile(string $sitePath, string $siteName, string $uri)
|
||||
|
||||
/**
|
||||
* Get the fully resolved path to the application's front controller.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return string|null
|
||||
*/
|
||||
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user