@@ -24,7 +24,6 @@ discard block |
||
| 24 | 24 | * @param string $method The call method get|post|put|delete|patch |
| 25 | 25 | * @param string $url The url to call |
| 26 | 26 | * @param array $payload |
| 27 | - |
|
| 28 | 27 | * @return \Bytesfield\SimpleKyc\HttpProcessor |
| 29 | 28 | */ |
| 30 | 29 | private function process($method, $url, $payload): HttpProcessor |
@@ -121,7 +120,6 @@ discard block |
||
| 121 | 120 | * Get ID information via images |
| 122 | 121 | * |
| 123 | 122 | * @param \Bytesfield\SimpleKyc\Classes\IdFilter |
| 124 | - |
|
| 125 | 123 | * @return array |
| 126 | 124 | */ |
| 127 | 125 | private function getWithImage(IdFilter $IdFilter): array |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | return $this->getWithImage($IdFilter); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - $idNumber = $IdFilter->getIDNumber(); |
|
| 57 | - $firstName = $IdFilter->getFirstName(); |
|
| 58 | - $lastName = $IdFilter->getLastName(); |
|
| 59 | - $phone = $IdFilter->getPhoneNumber(); |
|
| 56 | + $idNumber = $IdFilter->getIDNumber(); |
|
| 57 | + $firstName = $IdFilter->getFirstName(); |
|
| 58 | + $lastName = $IdFilter->getLastName(); |
|
| 59 | + $phone = $IdFilter->getPhoneNumber(); |
|
| 60 | 60 | |
| 61 | 61 | if ($IdFilter->getIDType() === IdFilter::IDVALUES['TYPE_BVN']) { |
| 62 | 62 | $url = '/CredBvn/api/v1/Bvn/GetCustomerBvn'; |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | private function postData(IdFilter $IdFilter, $body, $url) |
| 151 | 151 | { |
| 152 | 152 | try { |
| 153 | - $result = $this->process('POST', $url, array_filter($body)); |
|
| 153 | + $result = $this->process('POST', $url, array_filter($body)); |
|
| 154 | 154 | |
| 155 | 155 | $response = (object) $result->getResponse(); |
| 156 | 156 | |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | * @param string $method The call method get|post|put|delete|patch |
| 25 | 25 | * @param string $url The url to call |
| 26 | 26 | * @param array $payload |
| 27 | - |
|
| 28 | 27 | * @return \Bytesfield\SimpleKyc\HttpProcessor |
| 29 | 28 | */ |
| 30 | 29 | private function process($method, $url, $payload): HttpProcessor |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | if (!$IdFilter->isSuccessful()) { |
| 49 | 49 | |
| 50 | - $idType = strtoupper($IdFilter->getIDType()); |
|
| 50 | + $idType = strtoupper($IdFilter->getIDType()); |
|
| 51 | 51 | $country = strtolower($IdFilter->getCountry()); |
| 52 | 52 | $type = $this->getType($idType); |
| 53 | 53 | $url = '/v1/verifications/' . $country . '/' . $type; |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | private function getType(string $type): string |
| 105 | 105 | { |
| 106 | - if ($type === IdFilter::IDVALUES['TYPE_NATIONAL_ID'] || $type === IdFilter::IDVALUES['TYPE_NIN']) { |
|
| 106 | + if ($type === IdFilter::IDVALUES['TYPE_NATIONAL_ID'] || $type === IdFilter::IDVALUES['TYPE_NIN']) { |
|
| 107 | 107 | return 'national_id'; |
| 108 | 108 | } |
| 109 | 109 | if ($type === IdFilter::IDVALUES['TYPE_DRIVERS_LICENSE']) { |
@@ -60,11 +60,11 @@ |
||
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | 62 | $response = null; |
| 63 | - $pipes = [Smile::class, Appruve::class, Credequity::class,]; |
|
| 63 | + $pipes = [Smile::class, Appruve::class, Credequity::class, ]; |
|
| 64 | 64 | |
| 65 | 65 | $response = (new Pipeline)->send($IdFilter) |
| 66 | 66 | ->through($pipes) |
| 67 | - ->then(function ($result) { |
|
| 67 | + ->then(function($result) { |
|
| 68 | 68 | return $result; |
| 69 | 69 | }); |
| 70 | 70 | |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * @throws IsNullException |
| 87 | 87 | */ |
| 88 | - public function process($method, $relativeUrl, $body = []) |
|
| 88 | + public function process($method, $relativeUrl, $body = []) |
|
| 89 | 89 | { |
| 90 | 90 | $this->setRequestOption(); |
| 91 | 91 | |