Passed
Branch master (17f43a)
by John
03:03
created
Category
src/DotpayApi/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/DotpayApi/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/DotpayApi/StatusMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/DotpayServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.