1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

Fix code styling

This commit is contained in:
driesvints
2023-09-28 14:24:39 +00:00
committed by github-actions[bot]
parent 108bbf75b0
commit 0fef72b64b

View File

@@ -7,7 +7,7 @@
class Magento2ValetDriver extends ValetDriver class Magento2ValetDriver extends ValetDriver
{ {
/** /**
* @inheritdoc * {@inheritdoc}
*/ */
public function serves(string $sitePath, string $siteName, string $uri): bool public function serves(string $sitePath, string $siteName, string $uri): bool
{ {
@@ -15,7 +15,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
} }
/** /**
* @inheritdoc * {@inheritdoc}
*/ */
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */ public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
{ {
@@ -27,12 +27,12 @@ public function isStaticFile(string $sitePath, string $siteName, string $uri)/*:
if (strpos($uri, '/static/') === 0) { if (strpos($uri, '/static/') === 0) {
$_GET['resource'] = preg_replace('#static/#', '', $uri, 1); $_GET['resource'] = preg_replace('#static/#', '', $uri, 1);
include($sitePath . '/pub/static.php'); include $sitePath.'/pub/static.php';
exit; exit;
} }
if (strpos($uri, '/media/') === 0) { if (strpos($uri, '/media/') === 0) {
include($sitePath . '/pub/get.php'); include $sitePath.'/pub/get.php';
exit; exit;
} }
@@ -40,7 +40,7 @@ public function isStaticFile(string $sitePath, string $siteName, string $uri)/*:
} }
/** /**
* @inheritdoc * {@inheritdoc}
*/ */
public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string
{ {