| @@ -19,7 +19,7 @@ | ||
| 19 | 19 |      { | 
| 20 | 20 |          try { | 
| 21 | 21 |              if (!Schema::hasTable('paypal')) { | 
| 22 | -                Schema::create('paypal', function ($table) { | |
| 22 | +                Schema::create('paypal', function($table) { | |
| 23 | 23 |                      $table->increments('id'); | 
| 24 | 24 |                      $table->string('business'); | 
| 25 | 25 |                      $table->string('cmd'); | 
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -\Event::listen('App\Events\PaymentGateway', function ($event) { | |
| 3 | +\Event::listen('App\Events\PaymentGateway', function($event) { | |
| 4 | 4 | $controller = new App\Plugins\Paypal\Controllers\ProcessController(); | 
| 5 | 5 | echo $controller->PassToPayment($event->para); | 
| 6 | 6 | }); | 
| @@ -50,7 +50,7 @@ | ||
| 50 | 50 | */ | 
| 51 | 51 | public function startsWith($letter) | 
| 52 | 52 |      { | 
| 53 | -        return array_filter($this->items, function ($item) use ($letter) { | |
| 53 | +        return array_filter($this->items, function($item) use ($letter) { | |
| 54 | 54 | return stripos($item, $letter) === 0; | 
| 55 | 55 | }); | 
| 56 | 56 | } | 
| @@ -52,8 +52,8 @@ discard block | ||
| 52 | 52 | protected function mapWebRoutes() | 
| 53 | 53 |      { | 
| 54 | 54 |          Route::middleware('web') | 
| 55 | - ->namespace($this->namespace) | |
| 56 | -             ->group(base_path('routes/web.php')); | |
| 55 | + ->namespace($this->namespace) | |
| 56 | +                ->group(base_path('routes/web.php')); | |
| 57 | 57 | } | 
| 58 | 58 | |
| 59 | 59 | /** | 
| @@ -66,8 +66,8 @@ discard block | ||
| 66 | 66 | protected function mapApiRoutes() | 
| 67 | 67 |      { | 
| 68 | 68 |          Route::prefix('api') | 
| 69 | -             ->middleware('api') | |
| 70 | - ->namespace($this->namespace) | |
| 71 | -             ->group(base_path('routes/api.php')); | |
| 69 | +                ->middleware('api') | |
| 70 | + ->namespace($this->namespace) | |
| 71 | +                ->group(base_path('routes/api.php')); | |
| 72 | 72 | } | 
| 73 | 73 | } | 
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | return ''; | 
| 32 | 32 | |
| 33 | 33 |          // return "Product  has been {$eventName}"; | 
| 34 | - // \Auth::user()->activity; | |
| 34 | + // \Auth::user()->activity; | |
| 35 | 35 | } | 
| 36 | 36 | |
| 37 | 37 | public function planPrice() | 
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 | return ''; | 
| 38 | 38 | |
| 39 | 39 |          // return "Product  has been {$eventName}"; | 
| 40 | - // \Auth::user()->activity; | |
| 40 | + // \Auth::user()->activity; | |
| 41 | 41 | } | 
| 42 | 42 | |
| 43 | 43 | public function invoiceItem() | 
| @@ -54,7 +54,8 @@ | ||
| 54 | 54 | $api = new Api($rzp_key, $rzp_secret); | 
| 55 | 55 | $payment = $api->payment->fetch($input['razorpay_payment_id']); | 
| 56 | 56 | |
| 57 | -        if (count($input) && !empty($input['razorpay_payment_id'])) { //Verify Razorpay Payment Id and Signature | |
| 57 | +        if (count($input) && !empty($input['razorpay_payment_id'])) { | |
| 58 | +//Verify Razorpay Payment Id and Signature | |
| 58 | 59 | |
| 59 | 60 | //Fetch payment information by razorpay_payment_id | 
| 60 | 61 |              try { | 
| @@ -128,7 +128,7 @@ | ||
| 128 | 128 | \Cart::clear(); | 
| 129 | 129 | $status = 'success'; | 
| 130 | 130 |          $message = view('themes.default1.front.postPaymentTemplate', compact('invoice','date','orders', | 
| 131 | - 'invoiceItems', 'state', 'currency'))->render(); | |
| 131 | + 'invoiceItems', 'state', 'currency'))->render(); | |
| 132 | 132 | |
| 133 | 133 | return ['status'=>$status, 'message'=>$message]; | 
| 134 | 134 | } | 
| @@ -127,7 +127,7 @@ discard block | ||
| 127 | 127 | |
| 128 | 128 | \Cart::clear(); | 
| 129 | 129 | $status = 'success'; | 
| 130 | -        $message = view('themes.default1.front.postPaymentTemplate', compact('invoice','date','orders', | |
| 130 | +        $message = view('themes.default1.front.postPaymentTemplate', compact('invoice', 'date', 'orders', | |
| 131 | 131 | 'invoiceItems', 'state', 'currency'))->render(); | 
| 132 | 132 | |
| 133 | 133 | return ['status'=>$status, 'message'=>$message]; | 
| @@ -147,7 +147,7 @@ discard block | ||
| 147 | 147 | \Cart::clear(); | 
| 148 | 148 | $status = 'success'; | 
| 149 | 149 | |
| 150 | -        $message = view('themes.default1.front.postRenewTemplate', compact('invoice','date','order', | |
| 150 | +        $message = view('themes.default1.front.postRenewTemplate', compact('invoice', 'date', 'order', | |
| 151 | 151 | 'product', 'invoiceItem', 'state', 'currency'))->render(); | 
| 152 | 152 | |
| 153 | 153 | return ['status'=>$status, 'message'=>$message]; | 
| @@ -33,6 +33,6 @@ | ||
| 33 | 33 | return ''; | 
| 34 | 34 | |
| 35 | 35 |          // return "Product  has been {$eventName}"; | 
| 36 | - // \Auth::user()->activity; | |
| 36 | + // \Auth::user()->activity; | |
| 37 | 37 | } | 
| 38 | 38 | } | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | protected $fillable = ['tax_enable', 'inclusive', 'shop_inclusive', 'cart_inclusive', 'rounding', 'Gst_no']; | 
| 13 | 13 | protected static $logName = 'Tax Class'; | 
| 14 | 14 | protected static $logAttributes = ['tax_enable', 'inclusive', | 
| 15 | - 'shop_inclusive', 'cart_inclusive', 'rounding', 'Gst_no', ]; | |
| 15 | + 'shop_inclusive', 'cart_inclusive', 'rounding', 'Gst_no', ]; | |
| 16 | 16 | protected static $logOnlyDirty = true; | 
| 17 | 17 | |
| 18 | 18 | public function getDescriptionForEvent(string $eventName): string |