Passed
Branch master (b4cddd)
by Alex
05:29
created
Category
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
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function up()
28 28
     {
29
-        $this->builder->create('transactions', function (Blueprint $table) {
29
+        $this->builder->create('transactions', function(Blueprint $table) {
30 30
             $table->increments('id');
31 31
 
32 32
             $table->integer('amount');
Please login to merge, or discard this patch.
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/Models/Transaction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/GatewayManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function gateway(string $gateway): Gateway
57 57
     {
58
-        if (! isset($this->created[$gateway])) {
58
+        if (!isset($this->created[$gateway])) {
59 59
             $this->created[$gateway] = $this->createGateway($gateway);
60 60
         }
61 61
 
@@ -88,17 +88,17 @@  discard block
 block discarded – undo
88 88
      */
89 89
     protected function createGateway(string $gateway): Gateway
90 90
     {
91
-        if (! isset($this->gateways[$gateway])) {
91
+        if (!isset($this->gateways[$gateway])) {
92 92
             throw new InvalidArgumentException("Gateway [{$gateway}] was not found.");
93 93
         }
94 94
 
95 95
         $implementation = $this->gateways[$gateway];
96 96
 
97
-        if (! class_exists($implementation)) {
97
+        if (!class_exists($implementation)) {
98 98
             throw new RuntimeException("Class [{$implementation}] was not found.");
99 99
         }
100 100
 
101
-        if (! $this->config->has("larapay.gateways.{$implementation}")) {
101
+        if (!$this->config->has("larapay.gateways.{$implementation}")) {
102 102
             throw new RuntimeException("No config found for {$implementation}.");
103 103
         }
104 104
 
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
@@ -99,7 +99,7 @@
 block discarded – undo
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
         }
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.
src/Traits/Transactions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     {
52 52
         $field = self::KEEP;
53 53
 
54
-        if (! $field) {
54
+        if (!$field) {
55 55
             return true;
56 56
         }
57 57
 
Please login to merge, or discard this patch.