Skip to content

Commit 1720fa7

Browse files
committed
Code review.
1 parent 8eef6e1 commit 1720fa7

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ php:
44
- '7.1'
55
- '7.2'
66
before_script: composer install
7-
script: vendor/bin/phpunit
7+
script: vendor/bin/phpunit

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Luhn Algorithm in PHP
1+
# Luhn Algorithm
2+
3+
[![Build Status](https://travis-ci.org/Ekman/Luhn-Algorithm.svg?branch=master)](https://travis-ci.org/Ekman/Luhn-Algorithm)
24

35
This is an implementation of the Luhn Algorithm in PHP. The Luhn Algorithm is
46
used to validate things like credit cards and national identifcation numbers.
@@ -26,5 +28,5 @@ if ($luhn->isValid(123456789)) {
2628

2729
$checkSum = $luhn->calcCheckSum(123456789);
2830

29-
$checkDigit = $luhn->calcCheckDigit();
31+
$checkDigit = $luhn->calcCheckDigit(123456789);
3032
```

src/LuhnAlgorithm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ public function calcChecksum(int $input): int {
9090

9191
return $checkSum;
9292
}
93-
}
93+
}

tests/LuhnAlgorithmTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ public function provideCalcCheckDigit_success() {
8181
[410321920, 2],
8282
];
8383
}
84-
}
84+
}

0 commit comments

Comments
 (0)