Content-Length: 265067 | pFad | http://github.com/Payum/PaypalRest/commit/5bf2db18dcde355bad7a6e7b6e9adde08432e382

39 Add Yoda style fixer · Payum/PaypalRest@5bf2db1 · GitHub
Skip to content

Commit

Permalink
Add Yoda style fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Jul 14, 2022
1 parent cc31f0d commit 5bf2db1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Action/CaptureAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function execute($request)
}

foreach ($payment->links as $link) {
if ($link->rel == 'approval_url') {
if ('approval_url' == $link->rel) {
throw new HttpRedirect($link->href);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Action/ConvertAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function supports($request)
{
return $request instanceof Convert &&
$request->getSource() instanceof PaymentInterface &&
$request->getTo() == 'array'
'array' == $request->getTo()
;
}
}
2 changes: 1 addition & 1 deletion PaypalRestGatewayFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function populateConfig(ArrayObject $config)
$config['payum.api'] = function (ArrayObject $config) {
$config->validateNotEmpty($config['payum.required_options']);

if (isset($config['config_path']) && $config['config_path'] !== '') {
if (isset($config['config_path']) && '' !== $config['config_path']) {
if (false == defined('PP_CONFIG_PATH')) {
define('PP_CONFIG_PATH', $config['config_path']);
} elseif (PP_CONFIG_PATH !== $config['config_path']) {
Expand Down

0 comments on commit 5bf2db1

Please sign in to comment.








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/5bf2db18dcde355bad7a6e7b6e9adde08432e382

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy