@@ -270,10 +270,10 @@ discard block  | 
                                                    ||
| 270 | 270 | ];  | 
                                                        
| 271 | 271 | |
| 272 | 272 | $hash = createHash($this->apiKey, [  | 
                                                        
| 273 | - $body['referenceNumber'],  | 
                                                        |
| 274 | - $body['customerPhoneNumber'],  | 
                                                        |
| 275 | - $body['customerFirstName'],  | 
                                                        |
| 276 | - $body['customerLastName'],  | 
                                                        |
| 273 | + $body[ 'referenceNumber' ],  | 
                                                        |
| 274 | + $body[ 'customerPhoneNumber' ],  | 
                                                        |
| 275 | + $body[ 'customerFirstName' ],  | 
                                                        |
| 276 | + $body[ 'customerLastName' ],  | 
                                                        |
| 277 | 277 | ]);  | 
                                                        
| 278 | 278 | |
| 279 | 279 | $endpoint = 'paga-webservices/business-rest/secured/registerCustomer';  | 
                                                        
@@ -312,9 +312,9 @@ discard block  | 
                                                    ||
| 312 | 312 | ];  | 
                                                        
| 313 | 313 | |
| 314 | 314 | $hash = createHash($this->apiKey, [  | 
                                                        
| 315 | - $body['referenceNumber'],  | 
                                                        |
| 316 | - $body['amount'],  | 
                                                        |
| 317 | - $body['destinationAccount'],  | 
                                                        |
| 315 | + $body[ 'referenceNumber' ],  | 
                                                        |
| 316 | + $body[ 'amount' ],  | 
                                                        |
| 317 | + $body[ 'destinationAccount' ],  | 
                                                        |
| 318 | 318 | ]);  | 
                                                        
| 319 | 319 | |
| 320 | 320 | $endpoint = 'paga-webservices/business-rest/secured/moneyTransfer';  | 
                                                        
@@ -342,10 +342,10 @@ discard block  | 
                                                    ||
| 342 | 342 | ];  | 
                                                        
| 343 | 343 | |
| 344 | 344 | $hash = createHash($this->apiKey, [  | 
                                                        
| 345 | - $body['items'][0]['referenceNumber'],  | 
                                                        |
| 346 | - $body['items'][0]['amount'],  | 
                                                        |
| 347 | - $body['items'][0]['destinationAccount'],  | 
                                                        |
| 348 | - count($body['items']),  | 
                                                        |
| 345 | + $body[ 'items' ][ 0 ][ 'referenceNumber' ],  | 
                                                        |
| 346 | + $body[ 'items' ][ 0 ][ 'amount' ],  | 
                                                        |
| 347 | + $body[ 'items' ][ 0 ][ 'destinationAccount' ],  | 
                                                        |
| 348 | + count($body[ 'items' ]),  | 
                                                        |
| 349 | 349 | ]);  | 
                                                        
| 350 | 350 | |
| 351 | 351 | $endpoint = 'paga-webservices/business-rest/secured/moneyTransferBulk';  | 
                                                        
@@ -429,10 +429,10 @@ discard block  | 
                                                    ||
| 429 | 429 | ];  | 
                                                        
| 430 | 430 | |
| 431 | 431 | $hash = createHash($this->apiKey, [  | 
                                                        
| 432 | - $body['referenceNumber'],  | 
                                                        |
| 433 | - $body['amount'],  | 
                                                        |
| 434 | - $body['destinationBankUUID'],  | 
                                                        |
| 435 | - $body['destinationBankAccountNumber'],  | 
                                                        |
| 432 | + $body[ 'referenceNumber' ],  | 
                                                        |
| 433 | + $body[ 'amount' ],  | 
                                                        |
| 434 | + $body[ 'destinationBankUUID' ],  | 
                                                        |
| 435 | + $body[ 'destinationBankAccountNumber' ],  | 
                                                        |
| 436 | 436 | ]);  | 
                                                        
| 437 | 437 | |
| 438 | 438 | $endpoint = 'paga-webservices/business-rest/secured/depositToBank';  | 
                                                        
@@ -492,10 +492,10 @@ discard block  | 
                                                    ||
| 492 | 492 | ];  | 
                                                        
| 493 | 493 | |
| 494 | 494 | $hash = createHash($this->apiKey, [  | 
                                                        
| 495 | - $body['referenceNumber'],  | 
                                                        |
| 496 | - $body['amount'],  | 
                                                        |
| 497 | - $body['merchantAccount'],  | 
                                                        |
| 498 | - $body['merchantReferenceNumber'],  | 
                                                        |
| 495 | + $body[ 'referenceNumber' ],  | 
                                                        |
| 496 | + $body[ 'amount' ],  | 
                                                        |
| 497 | + $body[ 'merchantAccount' ],  | 
                                                        |
| 498 | + $body[ 'merchantReferenceNumber' ],  | 
                                                        |
| 499 | 499 | ]);  | 
                                                        
| 500 | 500 | |
| 501 | 501 | $endpoint = 'paga-webservices/business-rest/secured/merchantPayment';  | 
                                                        
@@ -577,8 +577,8 @@ discard block  | 
                                                    ||
| 577 | 577 | ];  | 
                                                        
| 578 | 578 | |
| 579 | 579 | $hash = createHash($this->apiKey, [  | 
                                                        
| 580 | - $body['reference'],  | 
                                                        |
| 581 | - $body['merchantExternalId'],  | 
                                                        |
| 580 | + $body[ 'reference' ],  | 
                                                        |
| 581 | + $body[ 'merchantExternalId' ],  | 
                                                        |
| 582 | 582 | ]);  | 
                                                        
| 583 | 583 | |
| 584 | 584 | $endpoint = 'paga-webservices/business-rest/secured/onboardMerchant';  | 
                                                        
@@ -27,7 +27,7 @@  | 
                                                    ||
| 27 | 27 | $this->mergeConfigFrom(__DIR__.'/../config/paga.php', 'paga');  | 
                                                        
| 28 | 28 | |
| 29 | 29 | // Register the main class to use with the facade  | 
                                                        
| 30 | -        $this->app->singleton('paga', function () { | 
                                                        |
| 30 | +        $this->app->singleton('paga', function() { | 
                                                        |
| 31 | 31 | return new Paga();  | 
                                                        
| 32 | 32 | });  | 
                                                        
| 33 | 33 | }  | 
                                                        
@@ -87,7 +87,7 @@  | 
                                                    ||
| 87 | 87 | *  | 
                                                        
| 88 | 88 | * @return \Psr\Http\Message\ResponseInterface  | 
                                                        
| 89 | 89 | */  | 
                                                        
| 90 | - private function doGet($url, $body = [])  | 
                                                        |
| 90 | + private function doGet($url, $body = [ ])  | 
                                                        |
| 91 | 91 |      { | 
                                                        
| 92 | 92 |          return $this->client->request('GET', $url, [ | 
                                                        
| 93 | 93 | 'query' => $body,  | 
                                                        
@@ -59,7 +59,7 @@  | 
                                                    ||
| 59 | 59 | $token = '';  | 
                                                        
| 60 | 60 | $max = strlen(getPool());  | 
                                                        
| 61 | 61 |          for ($i = 0; $i < $length; $i++) { | 
                                                        
| 62 | - $token .= getPool()[secureCrypt(0, $max)];  | 
                                                        |
| 62 | + $token .= getPool()[ secureCrypt(0, $max) ];  | 
                                                        |
| 63 | 63 | }  | 
                                                        
| 64 | 64 | |
| 65 | 65 | return $token;  |