Passed
Pull Request — master (#7)
by John
05:36
created
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/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.
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
             'body' => json_encode($request->toArray(), 320)
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
 }
Please login to merge, or discard this patch.