mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[CS][DX] Refactor
This commit is contained in:
parent
a71f3659b5
commit
9efe28e35a
4 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ final class PayumGatewayConfigTypeExtension extends AbstractTypeExtension
|
|||
// Check if a Payum factory exists
|
||||
$supportPayum = isset($this->payum->getGatewayFactories()[$factoryName]);
|
||||
|
||||
if(!$supportPayum) {
|
||||
if (!$supportPayum) {
|
||||
$gatewayConfig->setUsePayum(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ class GatewayConfig extends BaseGatewayConfig implements GatewayConfigInterface
|
|||
{
|
||||
/** @var array<string, mixed> */
|
||||
protected array $decryptedConfig;
|
||||
|
||||
protected bool $usePayum = true;
|
||||
|
||||
public function __construct()
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class DoctrineStorage extends BaseDoctrineStorage
|
|||
/** @var object[]|GatewayConfigInterface[] $resources */
|
||||
$resources = parent::findBy($criteria);
|
||||
|
||||
return array_filter($resources, static function($resource) {
|
||||
return array_filter($resources, static function ($resource) {
|
||||
if (!$resource instanceof GatewayConfigInterface) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ use PhpSpec\ObjectBehavior;
|
|||
use Prophecy\Argument;
|
||||
use Sylius\Component\Payment\Encryption\EncrypterInterface;
|
||||
use Sylius\Component\Payment\Encryption\EntityEncrypterInterface;
|
||||
use Sylius\Component\Payment\Encryption\PaymentRequestEncrypterInterface;
|
||||
use Sylius\Component\Payment\Model\PaymentRequestInterface;
|
||||
|
||||
final class PaymentRequestEncrypterSpec extends ObjectBehavior
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue