Completed
Pull Request — master (#70)
by
unknown
11:34
created
src/PaystackServiceProvider.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     protected $defer = false;
25 25
 
26 26
     /**
27
-    * Publishes all the config file this package needs to function
28
-    */
27
+     * Publishes all the config file this package needs to function
28
+     */
29 29
     public function boot()
30 30
     {
31 31
         $config = realpath(__DIR__.'/../resources/config/paystack.php');
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-    * Register the application services.
40
-    */
39
+     * Register the application services.
40
+     */
41 41
     public function register()
42 42
     {
43 43
         $this->app->bind('laravel-paystack', function () {
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-    * Get the services provided by the provider
52
-    * @return array
53
-    */
51
+     * Get the services provided by the provider
52
+     * @return array
53
+     */
54 54
     public function provides()
55 55
     {
56 56
         return ['laravel-paystack'];
Please login to merge, or discard this patch.
src/Paystack.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
             }
245 245
 
246 246
             return $validate;
247
-        }catch (RequestException $exception){
247
+        } catch (RequestException $exception){
248 248
             return false;
249 249
         }
250 250
     }
@@ -262,7 +262,9 @@  discard block
 block discarded – undo
262 262
         //for a parameter of 'trxref'
263 263
         $transactionRef = $trxref ?: request()->query('trxref');
264 264
 
265
-        if(!$transactionRef) throw new PaymentVerificationFailedException("Payment reference not provided");
265
+        if(!$transactionRef) {
266
+         throw new PaymentVerificationFailedException("Payment reference not provided");
267
+        }
266 268
 
267 269
         $relativeUrl = "/transaction/verify/{$transactionRef}";
268 270
 
Please login to merge, or discard this patch.