@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } |
37 | 37 | $descriptor = $this->getParameter('descriptor'); |
38 | 38 | if (is_string($descriptor)) { |
39 | - if(Helper::validateDescriptor($descriptor)){ |
|
39 | + if (Helper::validateDescriptor($descriptor)) { |
|
40 | 40 | throw new \Omnipay\Common\Exception\InvalidRequestException("The descriptor does not conform to requirements."); |
41 | 41 | } |
42 | 42 | $parameters['descriptor'] = $descriptor; |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } catch (\Paylike\Exception\InvalidRequest $e) { |
62 | 62 | // Bad (invalid) request - see $e->getJsonBody() for the error |
63 | 63 | $data['exception_class'] = "\Paylike\Exception\InvalidRequest"; |
64 | - $data['message'] = "Bad (invalid) request - ".substr(json_encode($e->getJsonBody()), 0, 250 ); |
|
64 | + $data['message'] = "Bad (invalid) request - ".substr(json_encode($e->getJsonBody()), 0, 250); |
|
65 | 65 | |
66 | 66 | } catch (\Paylike\Exception\Forbidden $e) { |
67 | 67 | // You are correctly authenticated but do not have access. |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | } catch (\Paylike\Exception\ApiException $e) { |
87 | 87 | $data['exception_class'] = "\Paylike\Exception\ApiException"; |
88 | - $data['message'] = "Api Error:" . $e->getMessage(); |
|
88 | + $data['message'] = "Api Error:".$e->getMessage(); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | return $data; |