Skip to content

Commit

Permalink
fix: add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
fox-john committed Nov 28, 2023
1 parent 1224b5c commit 74a3b91
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Helper/ModuleHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,28 @@ public function getUpdateLink(string $moduleName)
]);
}

/**
* Check if Ps_Mbo is installed
*
* @return bool
*/
private function checkIfPsMBOIsInstalled()
{
$mboStatus = (new MBOPresenter())->present();

return $mboStatus['isInstalled'] == false && $mboStatus['isEnabled'];
}

/**
* Install Ps_Mbo
*
* @return bool
*/
private function installPsMBO()
{
try {
$mboInstaller = new MBOInstaller(_PS_VERSION_);
$mboInstaller->installModule();
return $mboInstaller->installModule();
} catch (\Exception $e) {
throw new \Exception('Error while installing MBO module');
}
Expand Down

0 comments on commit 74a3b91

Please sign in to comment.