1 | <?php |
||||
2 | |||||
3 | namespace App\Http\Controllers; |
||||
4 | |||||
5 | use Illuminate\Http\Request; |
||||
0 ignored issues
–
show
|
|||||
6 | use HopekellDev\Confirmident\Facades\Confirmident; |
||||
7 | |||||
8 | /** |
||||
9 | * Confirmident's Identity Verification laravel package |
||||
10 | * @author Hope Ezenwa- Hopekell <[email protected]> |
||||
11 | * @version 1 |
||||
12 | **/ |
||||
13 | class ConfirmidentController extends Controller |
||||
0 ignored issues
–
show
The type
App\Http\Controllers\Controller was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
14 | { |
||||
15 | /** |
||||
16 | * Verify NIN |
||||
17 | */ |
||||
18 | public function verifyNin(Request $request) |
||||
19 | { |
||||
20 | $nin = $request->input('nin'); |
||||
21 | |||||
22 | $result = Confirmident::nin()->searchByNIN($nin); |
||||
23 | |||||
24 | return response()->json($result); |
||||
0 ignored issues
–
show
The function
response was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
25 | |||||
26 | /** |
||||
27 | * Expected Response |
||||
28 | * ------------------------- |
||||
29 | * { |
||||
30 | * "success": true, |
||||
31 | * "message": "Verification Successfull", |
||||
32 | * "data": { |
||||
33 | * "firs_tname": "John", |
||||
34 | * "middlename": "Peter", |
||||
35 | * "NIN": "12345678901", |
||||
36 | * "State": "Katsina", |
||||
37 | * "last_name": "Doe", |
||||
38 | * "phone_number": "07060772240", |
||||
39 | * "photo": "/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a\\nHBwgJC4...", |
||||
40 | * "birthcountry": "Nigeria", |
||||
41 | * "birthdate": "01-01-2000", |
||||
42 | * "birthlga": "Kankia", |
||||
43 | * "birthstate": "Katsina", |
||||
44 | * "gender": "m", |
||||
45 | * "height": "170", |
||||
46 | * "maritalstatus": "Married", |
||||
47 | * "educationlevel": "tertiary", |
||||
48 | * "email": "[email protected]", |
||||
49 | * "centralID": "8928395", |
||||
50 | * "nok_address1": "GRA", |
||||
51 | * "nok_firstname": "Peter", |
||||
52 | * "nok_lga": "Kankia", |
||||
53 | * "nok_middlename": "", |
||||
54 | * "nok_state": "Katsina", |
||||
55 | * "nok_surname": "Doe", |
||||
56 | * "nspokenlang": "HAUSA", |
||||
57 | * "ospkenlang": "", |
||||
58 | * "othername": "", |
||||
59 | * "profession": "STUDENT", |
||||
60 | * "religion": "christianity", |
||||
61 | * "residence_AdressLine1": "11 TUNAKIA STREET BARUWA", |
||||
62 | * "residence_Town": "Kankia", |
||||
63 | * "residence_lga": "Kankia", |
||||
64 | * "residence_state": "Katsina", |
||||
65 | * "residencestatus": "birth", |
||||
66 | * "self_origin_lga": "Kankia", |
||||
67 | * "self_origin_place": "Kankia", |
||||
68 | * "self_origin_state": "Katsina" |
||||
69 | * } |
||||
70 | * } |
||||
71 | */ |
||||
72 | |||||
73 | } |
||||
74 | |||||
75 | /** |
||||
76 | * Search NIN by Phone Number |
||||
77 | */ |
||||
78 | public function searchNinByPhone(Request $request) |
||||
79 | { |
||||
80 | $phone = $request->input('phone'); |
||||
81 | |||||
82 | $result = Confirmident::nin()->searchByPhoneNumber($phone); |
||||
83 | |||||
84 | return response()->json($result); |
||||
0 ignored issues
–
show
The function
response was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
85 | |||||
86 | /** |
||||
87 | * Expected Response |
||||
88 | * ------------------------- |
||||
89 | * { |
||||
90 | * "success": true, |
||||
91 | * "message": "Verification Successfull", |
||||
92 | * "data": { |
||||
93 | * "firs_tname": "John", |
||||
94 | * "middlename": "Peter", |
||||
95 | * "NIN": "12345678901", |
||||
96 | * "State": "Katsina", |
||||
97 | * "last_name": "Doe", |
||||
98 | * "phone_number": "07060772240", |
||||
99 | * "photo": "/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a\\nHBwgJC4...", |
||||
100 | * "birthcountry": "Nigeria", |
||||
101 | * "birthdate": "01-01-2000", |
||||
102 | * "birthlga": "Kankia", |
||||
103 | * "birthstate": "Katsina", |
||||
104 | * "gender": "m", |
||||
105 | * "height": "170", |
||||
106 | * "maritalstatus": "Married", |
||||
107 | * "educationlevel": "tertiary", |
||||
108 | * "email": "[email protected]", |
||||
109 | * "centralID": "8928395", |
||||
110 | * "nok_address1": "GRA", |
||||
111 | * "nok_firstname": "Peter", |
||||
112 | * "nok_lga": "Kankia", |
||||
113 | * "nok_middlename": "", |
||||
114 | * "nok_state": "Katsina", |
||||
115 | * "nok_surname": "Doe", |
||||
116 | * "nspokenlang": "HAUSA", |
||||
117 | * "ospkenlang": "", |
||||
118 | * "othername": "", |
||||
119 | * "profession": "STUDENT", |
||||
120 | * "religion": "christianity", |
||||
121 | * "residence_AdressLine1": "11 TUNAKIA STREET BARUWA", |
||||
122 | * "residence_Town": "Kankia", |
||||
123 | * "residence_lga": "Kankia", |
||||
124 | * "residence_state": "Katsina", |
||||
125 | * "residencestatus": "birth", |
||||
126 | * "self_origin_lga": "Kankia", |
||||
127 | * "self_origin_place": "Kankia", |
||||
128 | * "self_origin_state": "Katsina" |
||||
129 | * } |
||||
130 | * } |
||||
131 | */ |
||||
132 | |||||
133 | } |
||||
134 | |||||
135 | /** |
||||
136 | * Search NIN by Demographic Info |
||||
137 | */ |
||||
138 | public function searchNinByDemographic(Request $request) |
||||
139 | { |
||||
140 | $payload = $request->only(['firstname', 'lastname', 'dob', 'gender']); |
||||
141 | |||||
142 | $result = Confirmident::nin()->searchByDemographicInfo($payload); |
||||
143 | |||||
144 | return response()->json($result); |
||||
0 ignored issues
–
show
The function
response was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
145 | |||||
146 | /** |
||||
147 | * Expected Response |
||||
148 | * ------------------------- |
||||
149 | * { |
||||
150 | * "success": true, |
||||
151 | * "message": "Verification Successfull", |
||||
152 | * "data": { |
||||
153 | * "firs_tname": "John", |
||||
154 | * "middlename": "Peter", |
||||
155 | * "NIN": "12345678901", |
||||
156 | * "State": "Katsina", |
||||
157 | * "last_name": "Doe", |
||||
158 | * "phone_number": "07060772240", |
||||
159 | * "photo": "/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a\\nHBwgJC4...", |
||||
160 | * "birthcountry": "Nigeria", |
||||
161 | * "birthdate": "01-01-2000", |
||||
162 | * "birthlga": "Kankia", |
||||
163 | * "birthstate": "Katsina", |
||||
164 | * "gender": "m", |
||||
165 | * "height": "170", |
||||
166 | * "maritalstatus": "Married", |
||||
167 | * "educationlevel": "tertiary", |
||||
168 | * "email": "[email protected]", |
||||
169 | * "centralID": "8928395", |
||||
170 | * "nok_address1": "GRA", |
||||
171 | * "nok_firstname": "Peter", |
||||
172 | * "nok_lga": "Kankia", |
||||
173 | * "nok_middlename": "", |
||||
174 | * "nok_state": "Katsina", |
||||
175 | * "nok_surname": "Doe", |
||||
176 | * "nspokenlang": "HAUSA", |
||||
177 | * "ospkenlang": "", |
||||
178 | * "othername": "", |
||||
179 | * "profession": "STUDENT", |
||||
180 | * "religion": "christianity", |
||||
181 | * "residence_AdressLine1": "11 TUNAKIA STREET BARUWA", |
||||
182 | * "residence_Town": "Kankia", |
||||
183 | * "residence_lga": "Kankia", |
||||
184 | * "residence_state": "Katsina", |
||||
185 | * "residencestatus": "birth", |
||||
186 | * "self_origin_lga": "Kankia", |
||||
187 | * "self_origin_place": "Kankia", |
||||
188 | * "self_origin_state": "Katsina" |
||||
189 | * } |
||||
190 | * } |
||||
191 | */ |
||||
192 | |||||
193 | } |
||||
194 | |||||
195 | /** |
||||
196 | * Verify BVN |
||||
197 | */ |
||||
198 | public function verifyBvn(Request $request) |
||||
199 | { |
||||
200 | $bvn = $request->input('bvn'); |
||||
201 | |||||
202 | $result = Confirmident::bvn()->verification($bvn); |
||||
203 | |||||
204 | return response()->json($result); |
||||
0 ignored issues
–
show
The function
response was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
205 | |||||
206 | /** |
||||
207 | * Expected Response |
||||
208 | * ------------------------- |
||||
209 | * { |
||||
210 | * "success": true, |
||||
211 | * "message": Verification Successfull, |
||||
212 | * "data": { |
||||
213 | * "firs_tname": "John", |
||||
214 | * "last_name": "Doe", |
||||
215 | * "image": "/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a\nHBwgJC4...", |
||||
216 | * "middlename": "Peter", |
||||
217 | * "email": "[email protected]", |
||||
218 | * "gender": "Male", |
||||
219 | * "State": "Katsina State", |
||||
220 | * "alt_number": "", |
||||
221 | * "phone_number": "07060772240", |
||||
222 | * "date_of_birth": "01-01-2000", |
||||
223 | * "bvn": "2221756393", |
||||
224 | * "nin": "12345678901", |
||||
225 | * "user_id": "null", |
||||
226 | * } |
||||
227 | *} |
||||
228 | */ |
||||
229 | } |
||||
230 | } |
||||
231 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths