mirror of
https://github.com/laravel/valet.git
synced 2026-02-08 09:10:10 +01:00
Fix code styling
This commit is contained in:
committed by
github-actions[bot]
parent
06d0070837
commit
c4c650d567
@@ -25,7 +25,7 @@ public function beforeLoading(string $sitePath, string $siteName, string $uri):
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if (file_exists($staticFilePath = $sitePath.rtrim($uri, '/').'/index.html')) {
|
||||
return $staticFilePath;
|
||||
|
||||
@@ -15,7 +15,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
$publicPath = $sitePath.'/public/'.trim($uri, '/');
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ public function beforeLoading(string $sitePath, string $siteName, string $uri):
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if (file_exists($staticFilePath = $sitePath.'/public'.$uri)
|
||||
&& is_file($staticFilePath)) {
|
||||
|
||||
@@ -17,7 +17,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if ($this->isActualFile($staticFilePath = $sitePath.'/webroot/'.$uri)) {
|
||||
return $staticFilePath;
|
||||
|
||||
@@ -17,7 +17,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if (stripos($uri, '/application/files') === 0) {
|
||||
return $sitePath.$uri;
|
||||
|
||||
@@ -17,7 +17,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if ($this->isActualFile($staticFilePath = $sitePath.'/web'.$uri)) {
|
||||
return $staticFilePath;
|
||||
|
||||
@@ -34,7 +34,7 @@ public function frontControllerDirectory($sitePath): string
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
$frontControllerDirectory = $this->frontControllerDirectory($sitePath);
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
$sitePath = $this->addSubdirectory($sitePath);
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if ($this->isActualFile($staticFilePath = $sitePath.$uri)) {
|
||||
return $staticFilePath;
|
||||
|
||||
@@ -17,7 +17,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
$uri = preg_replace('/^\/static(\/version[\d]+)/', '/static', $uri);
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ public function beforeLoading(string $sitePath, string $siteName, string $uri):
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if ($this->isActualFile($staticFilePath = $sitePath.'/Web'.$uri)) {
|
||||
return $staticFilePath;
|
||||
|
||||
@@ -20,7 +20,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if ($this->isActualFile($staticFilePath = $sitePath.'/www/'.$uri)) {
|
||||
return $staticFilePath;
|
||||
|
||||
@@ -21,7 +21,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
*
|
||||
* @return string|false
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
$staticFilePath = $sitePath.'/public'.$uri;
|
||||
if ($this->isActualFile($staticFilePath)) {
|
||||
|
||||
@@ -17,7 +17,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if (strpos($uri, '/_add-ons') === 0 || strpos($uri, '/_app') === 0 || strpos($uri, '/_content') === 0 ||
|
||||
strpos($uri, '/_cache') === 0 || strpos($uri, '/_config') === 0 || strpos($uri, '/_logs') === 0 ||
|
||||
|
||||
@@ -17,7 +17,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if (strpos($uri, '/site') === 0 && strpos($uri, '/site/themes') !== 0) {
|
||||
return false;
|
||||
|
||||
@@ -19,7 +19,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
if ($this->isActualFile($staticFilePath = $sitePath.'/web/'.$uri)) {
|
||||
return $staticFilePath;
|
||||
|
||||
@@ -71,7 +71,7 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
* no PHP script file and the URI points to a valid file (no folder) on
|
||||
* the disk. Access to those static files will be authorized.
|
||||
*/
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/*: string|false */
|
||||
public function isStaticFile(string $sitePath, string $siteName, string $uri)/* : string|false */
|
||||
{
|
||||
// May the file contains a cache busting version string like filename.12345678.css
|
||||
// If that is the case, the file cannot be found on disk, so remove the version
|
||||
|
||||
@@ -19,7 +19,7 @@ abstract public function serves(string $sitePath, string $siteName, string $uri)
|
||||
*/
|
||||
// While we support PHP 7.4 for individual site isolation...
|
||||
abstract public function isStaticFile(string $sitePath, string $siteName, string $uri);
|
||||
//abstract public function isStaticFile(string $sitePath, string $siteName, string $uri): string|false;
|
||||
// abstract public function isStaticFile(string $sitePath, string $siteName, string $uri): string|false;
|
||||
|
||||
/**
|
||||
* Get the fully resolved path to the application's front controller.
|
||||
|
||||
Reference in New Issue
Block a user