Content-Length: 309530 | pFad | http://github.com/Payum/PaypalRest/commit/2159af12528f43d342ec1142614dbf29d5e18407

40 Add Yoda style fixer · Payum/PaypalRest@2159af1 · GitHub
Skip to content

Commit 2159af1

Browse files
committed
Add Yoda style fixer
1 parent 75f9184 commit 2159af1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Action/CaptureAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function execute($request)
7272
}
7373

7474
foreach ($payment->links as $link) {
75-
if ($link->rel == 'approval_url') {
75+
if ('approval_url' == $link->rel) {
7676
throw new HttpRedirect($link->href);
7777
}
7878
}

Action/ConvertAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function supports($request)
4141
{
4242
return $request instanceof Convert &&
4343
$request->getSource() instanceof PaymentInterface &&
44-
$request->getTo() == 'array'
44+
'array' == $request->getTo()
4545
;
4646
}
4747
}

PaypalRestGatewayFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function populateConfig(ArrayObject $config)
4343
$config['payum.api'] = function (ArrayObject $config) {
4444
$config->validateNotEmpty($config['payum.required_options']);
4545

46-
if (isset($config['config_path']) && $config['config_path'] !== '') {
46+
if (isset($config['config_path']) && '' !== $config['config_path']) {
4747
if (false == defined('PP_CONFIG_PATH')) {
4848
define('PP_CONFIG_PATH', $config['config_path']);
4949
} elseif (PP_CONFIG_PATH !== $config['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/2159af12528f43d342ec1142614dbf29d5e18407

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy