@@ -19,7 +19,7 @@ |
||
19 | 19 | public function handle($request, Closure $next) |
20 | 20 | { |
21 | 21 | // validate that callback is coming from Paystack |
22 | - if ((! $request->isMethod('post')) || ! $request->header('HTTP_X_PAYSTACK_SIGNATURE', null)) { |
|
22 | + if (( ! $request->isMethod('post')) || ! $request->header('HTTP_X_PAYSTACK_SIGNATURE', null)) { |
|
23 | 23 | throw new AccessDeniedHttpException("Invalid Request"); |
24 | 24 | } |
25 | 25 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | 'prefix' => config('paystackwebhooks.webhook_path'), |
34 | 34 | 'namespace' => 'Digikraaft\PaystackWebhooks\Http\Controllers', |
35 | 35 | 'as' => 'paystack.', |
36 | - ], function () { |
|
36 | + ], function() { |
|
37 | 37 | $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); |
38 | 38 | }); |
39 | 39 | } |