File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function execute($request): void
62
62
}
63
63
64
64
if (
65
- false == isset ($ payment ->state ) &&
65
+ ! isset ($ payment ->state ) &&
66
66
isset ($ payment ->payer ->payment_method ) &&
67
67
'paypal ' == $ payment ->payer ->payment_method
68
68
) {
@@ -80,7 +80,7 @@ public function execute($request): void
80
80
}
81
81
82
82
if (
83
- false == isset ($ payment ->state ) &&
83
+ ! isset ($ payment ->state ) &&
84
84
isset ($ payment ->payer ->payment_method ) &&
85
85
'credit_card ' == $ payment ->payer ->payment_method
86
86
) {
@@ -92,7 +92,7 @@ public function execute($request): void
92
92
}
93
93
94
94
if (
95
- true == isset ($ payment ->state ) &&
95
+ isset ($ payment ->state ) &&
96
96
isset ($ payment ->payer ->payment_method ) &&
97
97
'paypal ' == $ payment ->payer ->payment_method
98
98
) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class PaypalRestGatewayFactory extends GatewayFactory
17
17
{
18
18
protected function populateConfig (ArrayObject $ config ): void
19
19
{
20
- if (false == class_exists (ApiContext::class)) {
20
+ if (! class_exists (ApiContext::class)) {
21
21
throw new LogicException ('You must install "paypal/rest-api-sdk-php" library. ' );
22
22
}
23
23
@@ -31,7 +31,7 @@ protected function populateConfig(ArrayObject $config): void
31
31
'payum.action.convert_payment ' => new ConvertAction (),
32
32
]);
33
33
34
- if (false == $ config ['payum.api ' ]) {
34
+ if (! $ config ['payum.api ' ]) {
35
35
$ config ['payum.default_options ' ] = [
36
36
'client_id ' => '' ,
37
37
'client_secret ' => '' ,
@@ -45,7 +45,7 @@ protected function populateConfig(ArrayObject $config): void
45
45
$ config ->validateNotEmpty ($ config ['payum.required_options ' ]);
46
46
47
47
if (isset ($ config ['config_path ' ]) && '' !== $ config ['config_path ' ]) {
48
- if (false == defined ('PP_CONFIG_PATH ' )) {
48
+ if (! defined ('PP_CONFIG_PATH ' )) {
49
49
define ('PP_CONFIG_PATH ' , $ config ['config_path ' ]);
50
50
} elseif (PP_CONFIG_PATH !== $ config ['config_path ' ]) {
51
51
throw new InvalidArgumentException (sprintf ('Given "config_path" is invalid. Should be equal to the defined "PP_CONFIG_PATH": %s. ' , PP_CONFIG_PATH ));
You can’t perform that action at this time.
0 commit comments