Test Setup Failed
Push — master ( 6cb774...3c3b23 )
by Alex
02:05
created
files/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('payments')) {
3
+if (!function_exists('payments')) {
4 4
 
5 5
     /**
6 6
      * Return Payments interface.
Please login to merge, or discard this patch.
src/LarapayServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         $this->mergeConfigFrom($this->getConfigPath(), 'larapay');
18 18
 
19
-        $this->app->singleton(Payments::class, function ($app) {
19
+        $this->app->singleton(Payments::class, function($app) {
20 20
             return new GatewayManager($app['config']);
21 21
         });
22 22
     }
Please login to merge, or discard this patch.
files/database/migrations/2014_10_12_300000_create_transactions_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function up()
29 29
     {
30
-        $this->builder->create('transactions', function (Blueprint $table) {
30
+        $this->builder->create('transactions', function(Blueprint $table) {
31 31
             $table->bigIncrements('id');
32 32
 
33 33
             $table->decimal('amount');
Please login to merge, or discard this patch.
src/Abstracts/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         }
119 119
 
120 120
         foreach ($this->required as $field) {
121
-            if (! $this->has($field)) {
121
+            if (!$this->has($field)) {
122 122
                 throw new \RuntimeException("Required field [{$field}] is not presented.");
123 123
             }
124 124
         }
Please login to merge, or discard this patch.
src/Abstracts/Gateway.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             foreach ($key as $k => $v) {
64 64
                 $this->config($k, $v);
65 65
             }
66
-        } elseif (! is_null($value)) {
66
+        } elseif (!is_null($value)) {
67 67
             return $this->config->set($key, $value);
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Requests/CallbackRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         parent::__construct($gateway, $data);
24 24
 
25
-        if (! $this->validate()) {
25
+        if (!$this->validate()) {
26 26
             throw new SignatureValidateException;
27 27
         }
28 28
     }
Please login to merge, or discard this patch.
src/GatewayManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $gateway = mb_strtolower($gateway);
59 59
 
60
-        if (! isset($this->created[$gateway])) {
60
+        if (!isset($this->created[$gateway])) {
61 61
             $this->created[$gateway] = $this->createGateway($gateway);
62 62
         }
63 63
 
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
      */
91 91
     protected function createGateway(string $gateway): Gateway
92 92
     {
93
-        if (! isset($this->gateways[$gateway])) {
93
+        if (!isset($this->gateways[$gateway])) {
94 94
             throw new InvalidArgumentException("Gateway [{$gateway}] was not found.");
95 95
         }
96 96
 
97 97
         $implementation = $this->gateways[$gateway];
98 98
 
99
-        if (! class_exists($implementation)) {
99
+        if (!class_exists($implementation)) {
100 100
             throw new RuntimeException("Class [{$implementation}] was not found.");
101 101
         }
102 102
 
Please login to merge, or discard this patch.
src/Models/Transaction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
             return $this;
136 136
         }
137 137
 
138
-        if (! is_null($state)) {
138
+        if (!is_null($state)) {
139 139
             $this->state = $state;
140 140
         }
141 141
 
Please login to merge, or discard this patch.