Completed
Push — master ( f56db8...ae9e7e )
by Kazi Mainuddin
01:32
created
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->unsignedInteger('payable_id')->default(0);
19 19
             $table->string('payable_type')->nullable();
Please login to merge, or discard this patch.
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/Controllers/PaymentController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     protected function validateRequest(Request $request)
111 111
     {
112
-        $validation = collect(array_flip($this->config->getRequiredFields()))->map(function () {
112
+        $validation = collect(array_flip($this->config->getRequiredFields()))->map(function() {
113 113
             return 'required';
114 114
         })->all();
115 115
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         $validation = $this->validateRequest($request);
201 201
         $hash = $this->getHashChecksum($request);
202 202
 
203
-        $redirect = collect($this->config->getRedirect())->map(function ($value) use ($request, $status_url) {
203
+        $redirect = collect($this->config->getRedirect())->map(function($value) use ($request, $status_url) {
204 204
             $separator = str_contains($value, '?') ? '&' : '?';
205 205
             return url($value.$separator.'_token='.csrf_token().'&'.'callback='.$status_url);
206 206
         })->all();
Please login to merge, or discard this patch.