Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
mandan2 authored and JevgenijVisockij committed Jan 16, 2024
1 parent 937bfc0 commit 3adf697
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Install/DatabaseTableInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

final class DatabaseTableInstaller implements InstallerInterface
{
public function install()
public function install(): bool
{
$commands = $this->getCommands();

Expand Down
2 changes: 1 addition & 1 deletion src/Install/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function __construct(
$this->orderStateInstaller = $orderStateInstaller;
}

public function install()
public function install(): bool
{
$this->segment->setMessage('Mollie installed');
$this->segment->track();
Expand Down
5 changes: 1 addition & 4 deletions src/Install/InstallerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@

interface InstallerInterface
{
/**
* @return bool
*/
public function install();
public function install(): bool;
}
4 changes: 3 additions & 1 deletion src/Install/PrestaShopDependenciesInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(
/**
* @throws CouldNotInstallPrestaShopDependencies
*/
public function install(): void
public function install(): bool
{
$mboStatus = (new Presenter())->present();

Expand All @@ -40,6 +40,8 @@ public function install(): void
} catch (\Throwable $exception) {
throw CouldNotInstallPrestaShopDependencies::failedToInstallDependencies($exception);
}

return true;
}

/**
Expand Down

0 comments on commit 3adf697

Please sign in to comment.