mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 13:38:41 +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
|
final class Stripe extends PaymentAbstract
|
||||||
{
|
{
|
||||||
private \Stripe\StripeClient $con;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
|
|
@ -35,7 +33,6 @@ final class Stripe extends PaymentAbstract
|
||||||
*/
|
*/
|
||||||
public function __construct(string $apiKey)
|
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
|
public function getInstalledModules(bool $useCache = true) : array
|
||||||
{
|
{
|
||||||
if (empty($this->installed) || !$useCache) {
|
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')
|
$sth = $query->select('module.module_path')
|
||||||
->from('module')
|
->from('module')
|
||||||
->where('module_status', '!=', ModuleStatus::AVAILABLE)
|
->where('module_status', '!=', ModuleStatus::AVAILABLE)
|
||||||
|
|
@ -348,7 +348,7 @@ final class ModuleManager
|
||||||
*/
|
*/
|
||||||
public function loadInfo(string $module) : ?ModuleInfo
|
public function loadInfo(string $module) : ?ModuleInfo
|
||||||
{
|
{
|
||||||
$path = \realpath($oldPath = $this->modulePath . $module . '/info.json');
|
$path = \realpath($this->modulePath . $module . '/info.json');
|
||||||
if ($path === false) {
|
if ($path === false) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user