This commit is contained in:
Dennis Eichhorn 2023-09-23 00:35:43 +00:00
parent c224fe74d5
commit ac3c43e17d
2 changed files with 2 additions and 5 deletions

View File

@ -24,8 +24,6 @@ namespace phpOMS\Api\Payment;
*/
final class Stripe extends PaymentAbstract
{
private \Stripe\StripeClient $con;
/**
* Constructor.
*
@ -35,7 +33,6 @@ final class Stripe extends PaymentAbstract
*/
public function __construct(string $apiKey)
{
$this->con = new \Stripe\StripeClient($apiKey);
}
/**

View File

@ -312,7 +312,7 @@ final class ModuleManager
public function getInstalledModules(bool $useCache = true) : array
{
if (empty($this->installed) || !$useCache) {
$query = new Builder($this->app->dbPool->get('select'));
$query = new Builder($this->app->dbPool->get());
$sth = $query->select('module.module_path')
->from('module')
->where('module_status', '!=', ModuleStatus::AVAILABLE)
@ -348,7 +348,7 @@ final class ModuleManager
*/
public function loadInfo(string $module) : ?ModuleInfo
{
$path = \realpath($oldPath = $this->modulePath . $module . '/info.json');
$path = \realpath($this->modulePath . $module . '/info.json');
if ($path === false) {
return null;
}