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 SculpinValetDriver 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
|
||||
{
|
||||
@@ -20,19 +15,19 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
$this->isLegacySculpinProject($sitePath);
|
||||
}
|
||||
|
||||
private function isModernSculpinProject($sitePath)
|
||||
private function isModernSculpinProject($sitePath): bool
|
||||
{
|
||||
return is_dir($sitePath.'/source') &&
|
||||
is_dir($sitePath.'/output_dev') &&
|
||||
$this->composerRequiresSculpin($sitePath);
|
||||
}
|
||||
|
||||
private function isLegacySculpinProject($sitePath)
|
||||
private function isLegacySculpinProject($sitePath): bool
|
||||
{
|
||||
return is_dir($sitePath.'/.sculpin');
|
||||
}
|
||||
|
||||
private function composerRequiresSculpin($sitePath)
|
||||
private function composerRequiresSculpin($sitePath): bool
|
||||
{
|
||||
if (! file_exists($sitePath.'/composer.json')) {
|
||||
return false;
|
||||
@@ -50,9 +45,6 @@ private function composerRequiresSculpin($sitePath)
|
||||
|
||||
/**
|
||||
* Mutate the incoming URI.
|
||||
*
|
||||
* @param string $uri
|
||||
* @return string
|
||||
*/
|
||||
public function mutateUri(string $uri): string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user