Skip to content

Commit

Permalink
Apply fixes from StyleCI (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
deligoez authored Apr 29, 2024
1 parent 7fac5bc commit 13fac95
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/TCKimlikNo.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public static function validate(
try {
$response = Http::post('https://tckimlik.nvi.gov.tr/tcKimlikNoDogrula/search', [
'TCKimlikNo' => (int) $tcKimlikNo,
'Ad' => trim($name),
'Soyad' => trim($surname),
'DogumYil' => (int) $birthYear,
'DogumAy' => (int) $birthMonth,
'DogumGun' => (int) $birthDay,
'Ad' => trim($name),
'Soyad' => trim($surname),
'DogumYil' => (int) $birthYear,
'DogumAy' => (int) $birthMonth,
'DogumGun' => (int) $birthDay,
]);

return (bool) $response['success'];
Expand All @@ -71,9 +71,9 @@ public static function validate(
$response = Soap::to('https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL')
->TCKimlikNoDogrula([
'TCKimlikNo' => (int) $tcKimlikNo,
'Ad' => trim($name),
'Soyad' => trim($surname),
'DogumYili' => (int) $birthYear,
'Ad' => trim($name),
'Soyad' => trim($surname),
'DogumYili' => (int) $birthYear,
]);

return (bool) $response->TCKimlikNoDogrulaResult;
Expand Down

0 comments on commit 13fac95

Please sign in to comment.