@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('payments')) { |
|
3 | +if (!function_exists('payments')) { |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Return Payments interface. |
@@ -130,7 +130,7 @@ |
||
130 | 130 | */ |
131 | 131 | public function __invoke(string $state = null) |
132 | 132 | { |
133 | - if (! is_null($state)) { |
|
133 | + if (!is_null($state)) { |
|
134 | 134 | $this->state = $state; |
135 | 135 | } |
136 | 136 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $this->signature = $this->sign($this->custom->all()); |
100 | 100 | |
101 | 101 | foreach ($this->required as $field) { |
102 | - if (! $this->custom->has($this->getAlias($field))) { |
|
102 | + if (!$this->custom->has($this->getAlias($field))) { |
|
103 | 103 | throw new RuntimeException("Required field [{$field}] is not presented."); |
104 | 104 | } |
105 | 105 | } |
@@ -16,7 +16,7 @@ |
||
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 | } |
@@ -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("larapay.gateways.{$implementation}")) { |
|
103 | + if (!$this->config->has("larapay.gateways.{$implementation}")) { |
|
104 | 104 | throw new RuntimeException("No config found for {$implementation}."); |
105 | 105 | } |
106 | 106 |
@@ -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->increments('id'); |
32 | 32 | |
33 | 33 | $table->decimal('amount', 10, 2); |