File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public function execute($request)
72
72
}
73
73
74
74
foreach ($ payment ->links as $ link ) {
75
- if ($ link ->rel == ' approval_url ' ) {
75
+ if (' approval_url ' == $ link ->rel ) {
76
76
throw new HttpRedirect ($ link ->href );
77
77
}
78
78
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function supports($request)
41
41
{
42
42
return $ request instanceof Convert &&
43
43
$ request ->getSource () instanceof PaymentInterface &&
44
- $ request ->getTo () == ' array '
44
+ ' array ' == $ request ->getTo ()
45
45
;
46
46
}
47
47
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ protected function populateConfig(ArrayObject $config)
43
43
$ config ['payum.api ' ] = function (ArrayObject $ config ) {
44
44
$ config ->validateNotEmpty ($ config ['payum.required_options ' ]);
45
45
46
- if (isset ($ config ['config_path ' ]) && $ config [ ' config_path ' ] !== '' ) {
46
+ if (isset ($ config ['config_path ' ]) && '' !== $ config [ ' config_path ' ] ) {
47
47
if (false == defined ('PP_CONFIG_PATH ' )) {
48
48
define ('PP_CONFIG_PATH ' , $ config ['config_path ' ]);
49
49
} elseif (PP_CONFIG_PATH !== $ config ['config_path ' ]) {
You can’t perform that action at this time.
0 commit comments