Content-Length: 347540 | pFad | http://github.com/Payum/PaypalRest/commit/d0532cdaa1af7afa495e6cf23d98deb8ad51f03c

28 Remove all weak type checks · Payum/PaypalRest@d0532cd · GitHub
Skip to content

Commit d0532cd

Browse files
committed
Remove all weak type checks
1 parent e438719 commit d0532cd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Action/CaptureAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function execute($request): void
6262
}
6363

6464
if (
65-
false == isset($payment->state) &&
65+
! isset($payment->state) &&
6666
isset($payment->payer->payment_method) &&
6767
'paypal' == $payment->payer->payment_method
6868
) {
@@ -80,7 +80,7 @@ public function execute($request): void
8080
}
8181

8282
if (
83-
false == isset($payment->state) &&
83+
! isset($payment->state) &&
8484
isset($payment->payer->payment_method) &&
8585
'credit_card' == $payment->payer->payment_method
8686
) {
@@ -92,7 +92,7 @@ public function execute($request): void
9292
}
9393

9494
if (
95-
true == isset($payment->state) &&
95+
isset($payment->state) &&
9696
isset($payment->payer->payment_method) &&
9797
'paypal' == $payment->payer->payment_method
9898
) {

PaypalRestGatewayFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PaypalRestGatewayFactory extends GatewayFactory
1717
{
1818
protected function populateConfig(ArrayObject $config): void
1919
{
20-
if (false == class_exists(ApiContext::class)) {
20+
if (! class_exists(ApiContext::class)) {
2121
throw new LogicException('You must install "paypal/rest-api-sdk-php" library.');
2222
}
2323

@@ -31,7 +31,7 @@ protected function populateConfig(ArrayObject $config): void
3131
'payum.action.convert_payment' => new ConvertAction(),
3232
]);
3333

34-
if (false == $config['payum.api']) {
34+
if (! $config['payum.api']) {
3535
$config['payum.default_options'] = [
3636
'client_id' => '',
3737
'client_secret' => '',
@@ -45,7 +45,7 @@ protected function populateConfig(ArrayObject $config): void
4545
$config->validateNotEmpty($config['payum.required_options']);
4646

4747
if (isset($config['config_path']) && '' !== $config['config_path']) {
48-
if (false == defined('PP_CONFIG_PATH')) {
48+
if (! defined('PP_CONFIG_PATH')) {
4949
define('PP_CONFIG_PATH', $config['config_path']);
5050
} elseif (PP_CONFIG_PATH !== $config['config_path']) {
5151
throw new InvalidArgumentException(sprintf('Given "config_path" is invalid. Should be equal to the defined "PP_CONFIG_PATH": %s.', PP_CONFIG_PATH));

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Payum/PaypalRest/commit/d0532cdaa1af7afa495e6cf23d98deb8ad51f03c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy