Skip to content

Commit

Permalink
Update return types
Browse files Browse the repository at this point in the history
  • Loading branch information
svpernova09 committed Apr 27, 2024
1 parent 0c650b5 commit 75d6ace
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MakeCommand extends Command
*
* @return void
*/
protected function configure()
protected function configure(): void
{
$this->basePath = getcwd();
$this->projectName = basename($this->basePath);
Expand All @@ -65,7 +65,7 @@ protected function configure()
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
if (! $this->vagrantfileExists()) {
$this->createVagrantfile();
Expand Down
4 changes: 2 additions & 2 deletions src/WslApplyFeatures.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class WslApplyFeatures extends Command
*
* @return void
*/
protected function configure()
protected function configure(): void
{
$this->basePath = getcwd();
$this->projectName = basename($this->basePath);
Expand All @@ -67,7 +67,7 @@ protected function configure()
* @param OutputInterface $output
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
// Grab the current settings or create an example configuration
$format = $input->getOption('json') ? 'json' : 'yaml';
Expand Down
6 changes: 3 additions & 3 deletions src/WslCreateDatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class WslCreateDatabaseCommand extends Command
*
* @return void
*/
protected function configure()
protected function configure(): void
{
$this->basePath = getcwd();
$this->projectName = basename($this->basePath);
Expand All @@ -59,7 +59,7 @@ protected function configure()
* @param OutputInterface $output
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
// Grab the current settings or create an example configuration
$format = $input->getOption('json') ? 'json' : 'yaml';
Expand All @@ -85,7 +85,7 @@ public function execute(InputInterface $input, OutputInterface $output)
* @param array $options
* @return mixed
*/
protected function parseSettingsFromFile(string $format, array $options)
protected function parseSettingsFromFile(string $format, array $options): mixed
{
$SettingsClass = ($format === 'json') ? JsonSettings::class : YamlSettings::class;
$filename = __DIR__."/../Homestead.{$format}";
Expand Down
4 changes: 2 additions & 2 deletions src/WslCreateSiteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class WslCreateSiteCommand extends Command
*
* @return void
*/
protected function configure()
protected function configure(): void
{
$this->basePath = getcwd();
$this->projectName = basename($this->basePath);
Expand All @@ -59,7 +59,7 @@ protected function configure()
* @param OutputInterface $output
* @return int
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
// Remove any existing nginx sites
$shell_output = shell_exec('sudo rm -rf /etc/nginx/sites-available/*');
Expand Down

0 comments on commit 75d6ace

Please sign in to comment.