@@ -47,7 +47,7 @@ |
||
47 | 47 | $concatData .= $data[$key]; |
48 | 48 | } |
49 | 49 | } |
50 | - $hash = hash('sha256', $this->pin . $concatData); |
|
50 | + $hash = hash('sha256', $this->pin.$concatData); |
|
51 | 51 | |
52 | 52 | return $data['signature'] === $hash; |
53 | 53 | } |
@@ -29,6 +29,6 @@ |
||
29 | 29 | 'headers' => ['content-type' => 'application/json', 'Accept' => 'application/json'], |
30 | 30 | 'json' => $request->toArray() |
31 | 31 | ]; |
32 | - return json_decode($this->client->request($request->method(),$this->base_url.$request->path(), $options)->getBody()); |
|
32 | + return json_decode($this->client->request($request->method(), $this->base_url.$request->path(), $options)->getBody()); |
|
33 | 33 | } |
34 | 34 | } |
35 | 35 | \ No newline at end of file |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | public function map($status) |
13 | 13 | { |
14 | - if (in_array($status,array_keys($this->statuses))) { |
|
14 | + if (in_array($status, array_keys($this->statuses))) { |
|
15 | 15 | return $this->statuses[$status]; |
16 | 16 | } |
17 | 17 | throw new \InvalidArgumentException('Status not found'); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function register() |
28 | 28 | { |
29 | - $this->app->singleton(DotpayApi::class, function ($app) { |
|
29 | + $this->app->singleton(DotpayApi::class, function($app) { |
|
30 | 30 | return new DotpayApi($app['config']['dotpay']['api']); |
31 | 31 | }); |
32 | 32 |