for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HopekellDev\Payvessel;
use HopekellDev\Payvessel\Helpers\VirtualAccount;
class Payvessel
{
protected string $baseUrl;
protected string $apiKey;
protected string $apiSecret;
protected string $businessId;
public function __construct()
$this->baseUrl = rtrim(config('payvessel.base_url'), '/');
config
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->baseUrl = rtrim(/** @scrutinizer ignore-call */ config('payvessel.base_url'), '/');
$this->apiKey = config('payvessel.api_key');
$this->apiSecret = config('payvessel.api_secret');
$this->businessId = config('payvessel.business_id');
}
public function virtualAccounts(): VirtualAccount
return new VirtualAccount($this->apiKey,$this->apiSecret, $this->baseUrl, $this->businessId);