We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7ac507 commit 549a51aCopy full SHA for 549a51a
src/Faker/Provider/tr_TR/Person.php
@@ -104,7 +104,8 @@ public static function titleFemale()
104
*/
105
public function tcNo()
106
{
107
- $randomDigits = static::numerify('#########');
+ $firstDigit = static::randomDigitNotNull();
108
+ $randomDigits = $firstDigit . static::numerify('########');
109
$checksum = self::tcNoChecksum($randomDigits);
110
111
return $randomDigits . $checksum;
@@ -139,7 +140,7 @@ public static function tcNoChecksum($identityPrefix)
139
140
}
141
142
- $tenthDigit = (7 * $evenSum - $oddSum) % 10;
143
+ $tenthDigit = ((7 * $evenSum - $oddSum) % 10 + 10) % 10;
144
$eleventhDigit = ($evenSum + $oddSum + $tenthDigit) % 10;
145
146
return $tenthDigit . $eleventhDigit;
0 commit comments