File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 2
2
/**
3
3
* MultiSafepay Rest Api Purchase Response.
4
4
*/
5
+
5
6
namespace Omnipay \MultiSafepay \Message ;
6
7
7
8
use Omnipay \Common \Message \RedirectResponseInterface ;
87
88
* </code>
88
89
*/
89
90
class RestPurchaseResponse extends RestAbstractResponse implements RedirectResponseInterface
90
- {
91
+ {
91
92
/**
92
93
* Is the response successful?
93
94
*
94
- * @return boolean
95
+ * @return bool
95
96
*/
96
97
public function isSuccessful ()
97
98
{
98
99
if ($ this ->isRedirect ()) {
99
100
return false ;
100
101
}
101
-
102
+
102
103
return parent ::isSuccessful ();
103
104
}
104
-
105
+
105
106
/**
106
107
* {@inheritdoc}
107
108
*/
@@ -115,8 +116,8 @@ public function isRedirect()
115
116
*/
116
117
public function getRedirectUrl ()
117
118
{
118
- if (! $ this ->isRedirect ()) {
119
- return null ;
119
+ if (!$ this ->isRedirect ()) {
120
+ return ;
120
121
}
121
122
122
123
return $ this ->data ['data ' ]['payment_url ' ];
@@ -135,6 +136,6 @@ public function getRedirectMethod()
135
136
*/
136
137
public function getRedirectData ()
137
138
{
138
- return null ;
139
+ return ;
139
140
}
140
141
}
You can’t perform that action at this time.
0 commit comments