From c4c650d5671b20ebf98241b7757839b0f967f841 Mon Sep 17 00:00:00 2001 From: crynobone <172966+crynobone@users.noreply.github.com> Date: Wed, 12 Feb 2025 01:38:26 +0000 Subject: [PATCH] Fix code styling --- cli/Valet/Drivers/BasicValetDriver.php | 2 +- cli/Valet/Drivers/BasicWithPublicValetDriver.php | 2 +- cli/Valet/Drivers/LaravelValetDriver.php | 2 +- cli/Valet/Drivers/Specific/CakeValetDriver.php | 2 +- cli/Valet/Drivers/Specific/Concrete5ValetDriver.php | 2 +- cli/Valet/Drivers/Specific/ContaoValetDriver.php | 2 +- cli/Valet/Drivers/Specific/CraftValetDriver.php | 2 +- cli/Valet/Drivers/Specific/DrupalValetDriver.php | 2 +- cli/Valet/Drivers/Specific/KirbyValetDriver.php | 2 +- cli/Valet/Drivers/Specific/Magento2ValetDriver.php | 2 +- cli/Valet/Drivers/Specific/NeosValetDriver.php | 2 +- cli/Valet/Drivers/Specific/NetteValetDriver.php | 2 +- cli/Valet/Drivers/Specific/RadicleValetDriver.php | 2 +- cli/Valet/Drivers/Specific/StatamicV1ValetDriver.php | 2 +- cli/Valet/Drivers/Specific/StatamicV2ValetDriver.php | 2 +- cli/Valet/Drivers/Specific/SymfonyValetDriver.php | 2 +- cli/Valet/Drivers/Specific/Typo3ValetDriver.php | 2 +- cli/Valet/Drivers/ValetDriver.php | 2 +- cli/stubs/SampleValetDriver.php | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/cli/Valet/Drivers/BasicValetDriver.php b/cli/Valet/Drivers/BasicValetDriver.php index f18f33b..5848751 100644 --- a/cli/Valet/Drivers/BasicValetDriver.php +++ b/cli/Valet/Drivers/BasicValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/BasicWithPublicValetDriver.php b/cli/Valet/Drivers/BasicWithPublicValetDriver.php index 3de22dd..3a91b64 100644 --- a/cli/Valet/Drivers/BasicWithPublicValetDriver.php +++ b/cli/Valet/Drivers/BasicWithPublicValetDriver.php @@ -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, '/'); diff --git a/cli/Valet/Drivers/LaravelValetDriver.php b/cli/Valet/Drivers/LaravelValetDriver.php index 22b576c..b8205d1 100644 --- a/cli/Valet/Drivers/LaravelValetDriver.php +++ b/cli/Valet/Drivers/LaravelValetDriver.php @@ -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)) { diff --git a/cli/Valet/Drivers/Specific/CakeValetDriver.php b/cli/Valet/Drivers/Specific/CakeValetDriver.php index 258c502..a4da4fa 100644 --- a/cli/Valet/Drivers/Specific/CakeValetDriver.php +++ b/cli/Valet/Drivers/Specific/CakeValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/Specific/Concrete5ValetDriver.php b/cli/Valet/Drivers/Specific/Concrete5ValetDriver.php index 3dc518a..8af9c12 100644 --- a/cli/Valet/Drivers/Specific/Concrete5ValetDriver.php +++ b/cli/Valet/Drivers/Specific/Concrete5ValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/Specific/ContaoValetDriver.php b/cli/Valet/Drivers/Specific/ContaoValetDriver.php index 6649b1b..1829bb2 100644 --- a/cli/Valet/Drivers/Specific/ContaoValetDriver.php +++ b/cli/Valet/Drivers/Specific/ContaoValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/Specific/CraftValetDriver.php b/cli/Valet/Drivers/Specific/CraftValetDriver.php index 0940de7..cd7d84f 100644 --- a/cli/Valet/Drivers/Specific/CraftValetDriver.php +++ b/cli/Valet/Drivers/Specific/CraftValetDriver.php @@ -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); diff --git a/cli/Valet/Drivers/Specific/DrupalValetDriver.php b/cli/Valet/Drivers/Specific/DrupalValetDriver.php index 1adcf1f..cb80d3d 100644 --- a/cli/Valet/Drivers/Specific/DrupalValetDriver.php +++ b/cli/Valet/Drivers/Specific/DrupalValetDriver.php @@ -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); diff --git a/cli/Valet/Drivers/Specific/KirbyValetDriver.php b/cli/Valet/Drivers/Specific/KirbyValetDriver.php index 5e8206c..1da1092 100644 --- a/cli/Valet/Drivers/Specific/KirbyValetDriver.php +++ b/cli/Valet/Drivers/Specific/KirbyValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/Specific/Magento2ValetDriver.php b/cli/Valet/Drivers/Specific/Magento2ValetDriver.php index c6c7d43..d950fcc 100644 --- a/cli/Valet/Drivers/Specific/Magento2ValetDriver.php +++ b/cli/Valet/Drivers/Specific/Magento2ValetDriver.php @@ -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); diff --git a/cli/Valet/Drivers/Specific/NeosValetDriver.php b/cli/Valet/Drivers/Specific/NeosValetDriver.php index 92c25ca..05dbced 100644 --- a/cli/Valet/Drivers/Specific/NeosValetDriver.php +++ b/cli/Valet/Drivers/Specific/NeosValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/Specific/NetteValetDriver.php b/cli/Valet/Drivers/Specific/NetteValetDriver.php index 1207d16..b87b591 100644 --- a/cli/Valet/Drivers/Specific/NetteValetDriver.php +++ b/cli/Valet/Drivers/Specific/NetteValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/Specific/RadicleValetDriver.php b/cli/Valet/Drivers/Specific/RadicleValetDriver.php index c7b85d5..41b485e 100644 --- a/cli/Valet/Drivers/Specific/RadicleValetDriver.php +++ b/cli/Valet/Drivers/Specific/RadicleValetDriver.php @@ -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)) { diff --git a/cli/Valet/Drivers/Specific/StatamicV1ValetDriver.php b/cli/Valet/Drivers/Specific/StatamicV1ValetDriver.php index 2718194..4f5f1a3 100644 --- a/cli/Valet/Drivers/Specific/StatamicV1ValetDriver.php +++ b/cli/Valet/Drivers/Specific/StatamicV1ValetDriver.php @@ -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 || diff --git a/cli/Valet/Drivers/Specific/StatamicV2ValetDriver.php b/cli/Valet/Drivers/Specific/StatamicV2ValetDriver.php index 4eee35c..fc005f5 100644 --- a/cli/Valet/Drivers/Specific/StatamicV2ValetDriver.php +++ b/cli/Valet/Drivers/Specific/StatamicV2ValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/Specific/SymfonyValetDriver.php b/cli/Valet/Drivers/Specific/SymfonyValetDriver.php index 8860c25..15b486f 100644 --- a/cli/Valet/Drivers/Specific/SymfonyValetDriver.php +++ b/cli/Valet/Drivers/Specific/SymfonyValetDriver.php @@ -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; diff --git a/cli/Valet/Drivers/Specific/Typo3ValetDriver.php b/cli/Valet/Drivers/Specific/Typo3ValetDriver.php index 3548c49..e2ef7ef 100644 --- a/cli/Valet/Drivers/Specific/Typo3ValetDriver.php +++ b/cli/Valet/Drivers/Specific/Typo3ValetDriver.php @@ -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 diff --git a/cli/Valet/Drivers/ValetDriver.php b/cli/Valet/Drivers/ValetDriver.php index 9d6fff1..c27ffa0 100644 --- a/cli/Valet/Drivers/ValetDriver.php +++ b/cli/Valet/Drivers/ValetDriver.php @@ -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. diff --git a/cli/stubs/SampleValetDriver.php b/cli/stubs/SampleValetDriver.php index 739666c..812b361 100644 --- a/cli/stubs/SampleValetDriver.php +++ b/cli/stubs/SampleValetDriver.php @@ -21,7 +21,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 (file_exists($staticFilePath = $sitePath.'/public/'.$uri)) { return $staticFilePath;