Passed
Push — main ( f27d1d...bd0c9e )
by ABRAHAM
02:20
created
src/pipes/Credequity.php 2 patches
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/pipes/Appruve.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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']) {
Please login to merge, or discard this patch.
src/services/IdVerification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/HttpProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.