@@ -67,7 +67,7 @@ |
||
| 67 | 67 | */ |
| 68 | 68 | private static function filterParameters(array $parameters) |
| 69 | 69 | { |
| 70 | - return array_filter($parameters, function ($value) { |
|
| 70 | + return array_filter($parameters, function($value) { |
|
| 71 | 71 | return '' !== $value && null !== $value; |
| 72 | 72 | }); |
| 73 | 73 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | { |
| 31 | 31 | parent::__construct($request, $data); |
| 32 | 32 | |
| 33 | - if (!in_array($this->getDataValueOrNull('type'), ['macro','EMA'])) { |
|
| 33 | + if (!in_array($this->getDataValueOrNull('type'), ['macro', 'EMA'])) { |
|
| 34 | 34 | throw new InvalidResponseException('Only macro/EMA payment callbacks are accepted'); |
| 35 | 35 | } |
| 36 | 36 | |