Completed
Push — master ( 5310e1...59491d )
by Ajit
05:02
created
src/models/MojoRefundDetails.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,5 +8,5 @@
 block discarded – undo
8 8
 {
9 9
     protected $table = 'mojo_refund_details';
10 10
 
11
-    protected $fillable = ['user_id','refund_id','payment_id','status','type','body','refund_amount','total_amount',];
11
+    protected $fillable = ['user_id', 'refund_id', 'payment_id', 'status', 'type', 'body', 'refund_amount', 'total_amount', ];
12 12
 }
Please login to merge, or discard this patch.
migrations/0000_00_00_000000_create_mojo_refund_details_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function up()
17 17
     {
18
-        Schema::create('mojo_refund_details', function (Blueprint $table) {
18
+        Schema::create('mojo_refund_details', function(Blueprint $table) {
19 19
             $table->increments('id');
20 20
             $table->integer('user_id')->unsigned();
21 21
             $table->foreign('user_id')->references('id')->on('users');
Please login to merge, or discard this patch.
migrations/0000_00_00_000000_create_mojo_payment_details_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function up()
17 17
     {
18
-        Schema::create('mojo_payment_details', function (Blueprint $table) {
18
+        Schema::create('mojo_payment_details', function(Blueprint $table) {
19 19
             $table->increments('id');
20 20
             $table->integer('user_id')->unsigned();
21 21
             $table->foreign('user_id')->references('id')->on('users');
Please login to merge, or discard this patch.
src/MojoServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 {
9 9
     public function boot()
10 10
     {
11
-        $this->loadMigrationsFrom(__DIR__.'/../migrations');
11
+        $this->loadMigrationsFrom(__DIR__ . '/../migrations');
12 12
 
13 13
         $this->publishes([
14
-            __DIR__.'/config/laravelmojo.php' => config_path('laravelmojo.php'),
14
+            __DIR__ . '/config/laravelmojo.php' => config_path('laravelmojo.php'),
15 15
         ]);
16 16
     }
17 17
     public function register()
Please login to merge, or discard this patch.
src/models/MojoPaymentDetails.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
 {
9 9
     protected $table = 'mojo_payment_details';
10 10
 
11
-    protected $fillable = ['user_id','buyer_email','buyer_name','buyer_phone','currency','amount','fees','longurl','payment_id',
12
-                           'payment_request_id','purpose','shorturl','request_status','payment_status',];
11
+    protected $fillable = ['user_id', 'buyer_email', 'buyer_name', 'buyer_phone', 'currency', 'amount', 'fees', 'longurl', 'payment_id',
12
+                           'payment_request_id', 'purpose', 'shorturl', 'request_status', 'payment_status', ];
13 13
 }
Please login to merge, or discard this patch.
src/Mojo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         $payload = ['payment_id' => $payment_id,
67 67
                     'type' => $type,
68
-                    'body' => $reason ];
68
+                    'body' => $reason];
69 69
 
70 70
         $response = self::closeCurl($curl, $payload);
71 71
         $afterDecoding = json_decode($response);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                     'webhook' => config('laravelmojo.webhook_url'),
143 143
                     'send_sms' => false,
144 144
                     'email' => $user->email,
145
-                    'allow_repeated_payments' => false ];
145
+                    'allow_repeated_payments' => false];
146 146
 
147 147
         return $payload;
148 148
     }
Please login to merge, or discard this patch.