Completed
Pull Request — master (#154)
by
unknown
47s
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
Indentation   +22 added lines, -23 removed lines patch added patch discarded remove patch
@@ -102,12 +102,11 @@  discard block
 block discarded – undo
102 102
 
103 103
 
104 104
      /**
105
-
106
-     * Initiate a payment request to Paystack
107
-     * Included the option to pass the payload to this method for situations
108
-     * when the payload is built on the fly (not passed to the controller from a view)
109
-     * @return Paystack
110
-     */
105
+      * Initiate a payment request to Paystack
106
+      * Included the option to pass the payload to this method for situations
107
+      * when the payload is built on the fly (not passed to the controller from a view)
108
+      * @return Paystack
109
+      */
111 110
 
112 111
     public function makePaymentRequest($data = null)
113 112
     {
@@ -215,11 +214,11 @@  discard block
 block discarded – undo
215 214
     }
216 215
 
217 216
      /**
218
-     * Get the authorization callback response
219
-     * In situations where Laravel serves as an backend for a detached UI, the api cannot redirect
220
-     * and might need to take different actions based on the success or not of the transaction
221
-     * @return array
222
-     */
217
+      * Get the authorization callback response
218
+      * In situations where Laravel serves as an backend for a detached UI, the api cannot redirect
219
+      * and might need to take different actions based on the success or not of the transaction
220
+      * @return array
221
+      */
223 222
     public function getAuthorizationResponse($data)
224 223
     {
225 224
         $this->makePaymentRequest($data);
@@ -623,10 +622,10 @@  discard block
 block discarded – undo
623 622
     }
624 623
 
625 624
      /**
626
-     * Creates a subaccount to be used for split payments . Required    params are business_name , settlement_bank , account_number ,   percentage_charge
627
-     *
628
-     * @return array
629
-     */
625
+      * Creates a subaccount to be used for split payments . Required    params are business_name , settlement_bank , account_number ,   percentage_charge
626
+      *
627
+      * @return array
628
+      */
630 629
 
631 630
     public function createSubAccount(){
632 631
         $data = [
@@ -647,10 +646,10 @@  discard block
 block discarded – undo
647 646
     }
648 647
 
649 648
      /**
650
-     * Fetches details of a subaccount
651
-     * @param subaccount code
652
-     * @return array
653
-     */
649
+      * Fetches details of a subaccount
650
+      * @param subaccount code
651
+      * @return array
652
+      */
654 653
     public function fetchSubAccount($subaccount_code){
655 654
 
656 655
         $this->setRequestOptions();
@@ -659,10 +658,10 @@  discard block
 block discarded – undo
659 658
     }
660 659
 
661 660
      /**
662
-     * Lists all the subaccounts associated with the account
663
-     * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve
664
-     * @return array
665
-     */
661
+      * Lists all the subaccounts associated with the account
662
+      * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve
663
+      * @return array
664
+      */
666 665
     public function listSubAccounts($per_page,$page){
667 666
 
668 667
         $this->setRequestOptions();
Please login to merge, or discard this patch.