1
0
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:
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 WordPressValetDriver extends BasicValetDriver
{
/**
* 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,6 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
/**
* 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
{
@@ -36,11 +26,6 @@ public function beforeLoading(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
{
@@ -51,11 +36,8 @@ public function frontControllerPath(string $sitePath, string $siteName, string $
/**
* Redirect to uri with trailing slash.
*
* @param string $uri
* @return string
*/
private function forceTrailingSlash($uri)
private function forceTrailingSlash($uri): ?string
{
if (substr($uri, -1 * strlen('/wp-admin')) == '/wp-admin') {
header('Location: '.$uri.'/');