Skip to content

Commit 63050cd

Browse files
committed
Fixed coding style
1 parent f7d0131 commit 63050cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Omnipay/Common/AbstractGateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function getParameter($key)
139139
*/
140140
public function setParameter($key, $value)
141141
{
142-
if($value !== null && !is_scalar($value)) {
142+
if ($value !== null && !is_scalar($value)) {
143143
throw new RuntimeException('Only scalar values are allowed for parameters');
144144
}
145145

src/Omnipay/Common/Message/AbstractRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected function setParameter($key, $value)
170170
throw new RuntimeException('Request cannot be modified after it has been sent!');
171171
}
172172

173-
if($value !== null && !is_scalar($value)) {
173+
if (null !== $value && !is_scalar($value)) {
174174
throw new RuntimeException('Only scalar values are allowed for parameters');
175175
}
176176

0 commit comments

Comments
 (0)