Completed
Push — master ( c985f8...7064aa )
by Kazi Mainuddin
03:41
created
src/Provider/PayuServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         /**
22 22
          * Register singleton.
23 23
          */
24
-        $this->app->singleton('tzsk-payu', function ($app) {
24
+        $this->app->singleton('tzsk-payu', function($app) {
25 25
             return new PayuGateway();
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
src/Config/tzsk-payu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     | These are the fields that are optional for making a payment.
55 55
     |
56 56
     */
57
-    'optional_fields' => array_map(function ($i) {
57
+    'optional_fields' => array_map(function($i) {
58 58
         return "udf{$i}";
59 59
     }, range(1, 10)),
60 60
 
Please login to merge, or discard this patch.
src/Routes/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * Routes for payment.
4 4
  */
5 5
 
6
-Route::group(['namespace' => 'Tzsk\Payu\Controllers', 'middleware' => ['web']], function () {
6
+Route::group(['namespace' => 'Tzsk\Payu\Controllers', 'middleware' => ['web']], function() {
7 7
 
8 8
     /**
9 9
      * Make the payment request.
Please login to merge, or discard this patch.
src/PayuGateway.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Tzsk\Payu;
3 3
 
4
-use Illuminate\Support\Facades\Session;
5 4
 use Tzsk\Payu\Helpers\Config;
6 5
 use Tzsk\Payu\Helpers\Redirector;
7 6
 use Tzsk\Payu\Helpers\Storage;
Please login to merge, or discard this patch.
src/Helpers/Storage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function boot()
54 54
     {
55
-        if (! $this->account) {
55
+        if (!$this->account) {
56 56
             $this->account = config('payu.default');
57 57
         }
58 58
     }
Please login to merge, or discard this patch.
src/Helpers/FormBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $this->request->replace($this->storage->getData());
51 51
 
52
-        $redirect = collect($this->config->getRedirect())->map(function ($value) {
52
+        $redirect = collect($this->config->getRedirect())->map(function($value) {
53 53
             $separator = str_contains($value, '?') ? '&' : '?';
54
-            return url($value . $separator . '_token=' . csrf_token() . '&' . 'callback=' . $this->getStatusUrl());
54
+            return url($value.$separator.'_token='.csrf_token().'&'.'callback='.$this->getStatusUrl());
55 55
         })->all();
56 56
 
57 57
         return array_merge(
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     protected function validateRequest()
101 101
     {
102
-        $validation = collect(array_flip($this->config->getRequiredFields()))->map(function () {
102
+        $validation = collect(array_flip($this->config->getRequiredFields()))->map(function() {
103 103
             return 'required';
104 104
         })->all();
105 105
 
Please login to merge, or discard this patch.
src/Helpers/Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         $attributes['account'] = $this->storage->getAccount();
94 94
         
95 95
         $modelArray = $this->storage->getModel();
96
-        if (! empty($modelArray)) {
96
+        if (!empty($modelArray)) {
97 97
             $attributes['payable_id'] = $modelArray['id'];
98 98
             $attributes['payable_type'] = $modelArray['class'];
99 99
         }
Please login to merge, or discard this patch.
src/Helpers/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
      */
231 231
     public function getPaymentUrl()
232 232
     {
233
-        return 'https://' . $this->prefix() . "." . $this->endpoint;
233
+        return 'https://'.$this->prefix().".".$this->endpoint;
234 234
     }
235 235
 
236 236
     /**
Please login to merge, or discard this patch.
src/Migration/2016_12_03_000000_create_payu_payments_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('payu_payments', function (Blueprint $table) {
16
+        Schema::create('payu_payments', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('account');
19 19
             $table->unsignedInteger('payable_id')->nullable();
Please login to merge, or discard this patch.