@@ -27,7 +27,7 @@ |
||
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'); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | parent::__construct($gateway, $request); |
25 | 25 | |
26 | - if (! $this->validate()) { |
|
26 | + if (!$this->validate()) { |
|
27 | 27 | throw new SignatureValidateException; |
28 | 28 | } |
29 | 29 | } |
@@ -57,7 +57,7 @@ discard block |
||
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,17 +90,17 @@ discard block |
||
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 | |
103 | - if (! $this->config->has("services.{$gateway}")) { |
|
103 | + if (!$this->config->has("services.{$gateway}")) { |
|
104 | 104 | throw new RuntimeException("No config found for {$implementation}."); |
105 | 105 | } |
106 | 106 |
@@ -118,7 +118,7 @@ |
||
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 | } |
@@ -63,7 +63,7 @@ |
||
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 |