AerScript is strict type hinting language, thus OP_TEQ & OP_TNE are not needed here.
All checks were successful
The build was successful.

This commit is contained in:
2019-04-11 06:25:20 +02:00
parent 9c426b20cc
commit 4eaf6a7117
4 changed files with 1 additions and 79 deletions

View File

@@ -19,7 +19,7 @@ class Luhn {
for(int $i = 0; $i < $len; $i++) {
$sum += $i & 1 ? $revNumber[$i] * 2 : $revNumber[$i];
}
return array_sum(str_split($sum)) % 10 === 0;
return array_sum(str_split($sum)) % 10 == 0;
}
}