Skip to content

Commit

Permalink
Update laravel valet driver
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Jul 6, 2022
1 parent 5addfc5 commit c0b7850
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,23 +434,13 @@ declare(strict_types=1);

final class LocalValetDriver extends BasicValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
* @return bool
*/
public function serves($sitePath, $siteName, $uri)
public function serves(string $sitePath, string $siteName, string $uri): bool
{
return is_dir($sitePath.'/public/wordpress/wp-admin');
return is_dir($sitePath.'/public/wordpress');
}

/**
* @return false|string
*/
public function isStaticFile(string $sitePath, string $siteName, string $uri)
/** @return false|string */
public function isStaticFile(string $sitePath, string $siteName, string $uri):
{
$staticFilePath = $sitePath . '/public' . $uri;

Expand Down

0 comments on commit c0b7850

Please sign in to comment.