Skip to content

Commit

Permalink
Merge pull request #38 from phil-davis/minor-typos
Browse files Browse the repository at this point in the history
Fix minor typos
  • Loading branch information
ChristianRiesen committed Dec 29, 2020
2 parents 9f26b56 + 6a0551e commit eb46a92
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Implements hotp according to [RFC4226](https://tools.ietf.org/html/rfc4226) and
Class GoogleAuthenticator
-------------------------

Static function class to generate a correct url for the QR code, so you can easy scan it with your device. Google Authenticator is avaiaible as application for iPhone and Android. This removes the burden to create such an app from the developers of websites by using this set of classes.
Static function class to generate a correct url for the QR code, so you can easily scan it with your device. Google Authenticator is available as an application for iPhone and Android. This removes the burden to create such an app from the developers of websites by using this set of classes.

There are also older open source versions of the Google Authenticator app for both [iPhone](https://github.com/google/google-authenticator) and [Android](https://github.com/google/google-authenticator-android).

Expand All @@ -97,5 +97,5 @@ Acknowledgements

The classes have been inspired by many different places that were talking about otp and Google Authenticator. Thank you all for your help.

Project setup ideas blantently taken from https://github.com/Seldaek/monolog
Project setup ideas blatantly taken from https://github.com/Seldaek/monolog

2 changes: 1 addition & 1 deletion example/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<?php

if (isset($_POST['otpkey'])) {
// Sanatizing, this should take care of it
// Sanitizing, this should take care of it
$key = preg_replace('/[^0-9]/', '', $_POST['otpkey']);

// Standard is 6 for keys, but can be changed with setDigits on $otp
Expand Down
2 changes: 1 addition & 1 deletion src/GoogleAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function getKeyUri($type, $label, $secret, $counter = null, $optio
$otpauth .= '&issuer=' . rawurlencode($options['issuer']);
}

// image (to accepts images for freeotp)
// image (to accept images for freeotp)
if (array_key_exists('image', $options)) {
$otpauth .= '&image=' . $options['image'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Otp.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function getAlgorithm()
}

/**
* Setting period lenght for totp
* Setting period length for totp
*
* @param integer $period
* @throws \InvalidArgumentException
Expand Down
2 changes: 1 addition & 1 deletion src/OtpInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function checkHotp($secret, $counter, $key);
function checkHotpResync($secret, $counter, $key, $counterwindow = 2);

/**
* Checks Totp agains a key
* Checks Totp against a key
*
* @param string $secret Base32 Secret String
* @param string $key User supplied key
Expand Down
2 changes: 1 addition & 1 deletion tests/GoogleAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testGetQrCodeUrl()
GoogleAuthenticator::getQrCodeUrl('hotp', 'user@host.com', $secret, 1234)
);

// totp, this time with a parameter for chaning the size of the QR
// totp, this time with a parameter for changing the size of the QR
$this->assertEquals(
'https://chart.googleapis.com/chart?chs=300x300&cht=qr&chld=M|0&chl=otpauth%3A%2F%2Ftotp%2Fuser%2540host.com%3Fsecret%3DMEP3EYVA6XNFNVNM',
GoogleAuthenticator::getQrCodeUrl('totp', 'user@host.com', $secret, null, array('height' => 300, 'width' => 300))
Expand Down

0 comments on commit eb46a92

Please sign in to comment.