From 044bdc15a801ebc59ff66cd1298cdc8c615306fc Mon Sep 17 00:00:00 2001 From: driesvints Date: Tue, 14 Feb 2023 16:56:59 +0000 Subject: [PATCH] Fix code styling --- cli/Valet/Brew.php | 8 -------- cli/Valet/Configuration.php | 2 -- cli/Valet/Diagnose.php | 2 -- cli/Valet/Nginx.php | 5 ----- cli/Valet/PhpFpm.php | 6 ------ cli/Valet/Site.php | 9 --------- cli/Valet/Valet.php | 3 --- cli/includes/helpers.php | 3 --- tests/BrewTest.php | 7 ------- 9 files changed, 45 deletions(-) diff --git a/cli/Valet/Brew.php b/cli/Valet/Brew.php index 84f670996..eab55efd6 100644 --- a/cli/Valet/Brew.php +++ b/cli/Valet/Brew.php @@ -34,8 +34,6 @@ class Brew /** * Create a new Brew instance. * - * @param CommandLine $cli - * @param Filesystem $files * @return void */ public function __construct(CommandLine $cli, Filesystem $files) @@ -190,8 +188,6 @@ public function tap($formulas) /** * Restart the given Homebrew services. - * - * @param */ public function restartService($services) { @@ -213,8 +209,6 @@ public function restartService($services) /** * Stop the given Homebrew services. - * - * @param */ public function stopService($services) { @@ -379,7 +373,6 @@ public function removeSudoersEntry() /** * Link passed formula. * - * @param $formula * @param bool $force * @return string */ @@ -398,7 +391,6 @@ function ($exitCode, $errorOutput) use ($formula) { /** * Unlink passed formula. * - * @param $formula * @return string */ public function unlink($formula) diff --git a/cli/Valet/Configuration.php b/cli/Valet/Configuration.php index c09247f1c..829e20833 100644 --- a/cli/Valet/Configuration.php +++ b/cli/Valet/Configuration.php @@ -8,8 +8,6 @@ class Configuration /** * Create a new Valet configuration class instance. - * - * @param Filesystem $files */ public function __construct(Filesystem $files) { diff --git a/cli/Valet/Diagnose.php b/cli/Valet/Diagnose.php index 8c5024509..a73bc9b9d 100644 --- a/cli/Valet/Diagnose.php +++ b/cli/Valet/Diagnose.php @@ -61,8 +61,6 @@ class Diagnose /** * Create a new Diagnose instance. * - * @param CommandLine $cli - * @param Filesystem $files * @return void */ public function __construct(CommandLine $cli, Filesystem $files) diff --git a/cli/Valet/Nginx.php b/cli/Valet/Nginx.php index a72f5cb9e..55fd09e85 100644 --- a/cli/Valet/Nginx.php +++ b/cli/Valet/Nginx.php @@ -21,11 +21,6 @@ class Nginx /** * Create a new Nginx instance. * - * @param Brew $brew - * @param CommandLine $cli - * @param Filesystem $files - * @param Configuration $configuration - * @param Site $site * @return void */ public function __construct(Brew $brew, CommandLine $cli, Filesystem $files, diff --git a/cli/Valet/PhpFpm.php b/cli/Valet/PhpFpm.php index bca67f826..89f98f4b4 100644 --- a/cli/Valet/PhpFpm.php +++ b/cli/Valet/PhpFpm.php @@ -26,12 +26,6 @@ class PhpFpm /** * Create a new PHP FPM class instance. * - * @param Brew $brew - * @param CommandLine $cli - * @param Filesystem $files - * @param Configuration $config - * @param Site $site - * @param Nginx $nginx * @return void */ public function __construct(Brew $brew, CommandLine $cli, Filesystem $files, Configuration $config, Site $site, Nginx $nginx) diff --git a/cli/Valet/Site.php b/cli/Valet/Site.php index 4c7bc4f62..dca754074 100644 --- a/cli/Valet/Site.php +++ b/cli/Valet/Site.php @@ -17,11 +17,6 @@ class Site /** * Create a new Site instance. - * - * @param Brew $brew - * @param Configuration $config - * @param CommandLine $cli - * @param Filesystem $files */ public function __construct(Brew $brew, Configuration $config, CommandLine $cli, Filesystem $files) { @@ -301,8 +296,6 @@ public function getLinks($path, $certs) * Get list of sites and return them formatted * Will work for symlink and normal site paths. * - * @param $path - * @param $certs * @return \Illuminate\Support\Collection */ public function getSites($path, $certs) @@ -391,8 +384,6 @@ public function getPhpVersion($url) * And those must be submitted in pairs else unexpected results may occur. * eg: both $old and $new should contain the same indexes. * - * @param array $old - * @param array $new * @return void */ public function resecureForNewConfiguration(array $old, array $new) diff --git a/cli/Valet/Valet.php b/cli/Valet/Valet.php index 24b5e4768..344108355 100644 --- a/cli/Valet/Valet.php +++ b/cli/Valet/Valet.php @@ -14,9 +14,6 @@ class Valet /** * Create a new Valet instance. - * - * @param CommandLine $cli - * @param Filesystem $files */ public function __construct(CommandLine $cli, Filesystem $files) { diff --git a/cli/includes/helpers.php b/cli/includes/helpers.php index 8de7daf48..af20c8d4c 100644 --- a/cli/includes/helpers.php +++ b/cli/includes/helpers.php @@ -77,8 +77,6 @@ function warning($output) /** * Output a table to the console. * - * @param array $headers - * @param array $rows * @return void */ function table(array $headers = [], array $rows = []) @@ -178,7 +176,6 @@ function should_be_sudo() * Tap the given value. * * @param mixed $value - * @param callable $callback * @return mixed */ function tap($value, callable $callback) diff --git a/tests/BrewTest.php b/tests/BrewTest.php index b7f08d465..24e66d0ea 100644 --- a/tests/BrewTest.php +++ b/tests/BrewTest.php @@ -365,9 +365,6 @@ public function test_getAllRunningServices_will_return_unique_services() /** * @dataProvider supportedPhpLinkPathProvider - * - * @param $path - * @param $matches */ public function test_get_parsed_linked_php_will_return_matches_for_linked_php($path, $matches) { @@ -385,10 +382,6 @@ public function test_get_parsed_linked_php_will_return_matches_for_linked_php($p /** * @dataProvider supportedPhpLinkPathProvider - * - * @param $path - * @param $matches - * @param $expectedLinkFormula */ public function test_get_linked_php_formula_will_return_linked_php_directory($path, $matches, $expectedLinkFormula) {