mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
fixes
This commit is contained in:
parent
c224fe74d5
commit
ac3c43e17d
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user