1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 17:10:05 +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:
Matt Stauffer
2023-01-11 09:14:39 -05:00
committed by GitHub
parent c4faf27525
commit 4c2c4a1238
39 changed files with 46 additions and 1072 deletions

View File

@@ -8,11 +8,6 @@ class DrupalValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
* @return void
*/
public function serves(string $sitePath, string $siteName, string $uri): bool
{
@@ -32,13 +27,8 @@ 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
*/
public function isStaticFile(string $sitePath, string $siteName, string $uri)
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
{
$sitePath = $this->addSubdirectory($sitePath);
@@ -53,11 +43,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
{
@@ -88,7 +73,7 @@ public function frontControllerPath(string $sitePath, string $siteName, string $
/**
* Add any matching subdirectory to the site path.
*/
public function addSubdirectory($sitePath)
public function addSubdirectory($sitePath): string
{
$paths = array_map(function ($subDir) use ($sitePath) {
return "$sitePath/$subDir";
@@ -109,10 +94,8 @@ public function addSubdirectory($sitePath)
/**
* Return an array of possible subdirectories.
*
* @return array
*/
private function possibleSubdirectories()
private function possibleSubdirectories(): array
{
return ['docroot', 'public', 'web'];
}