Skip to content

Commit

Permalink
Apply fixes from StyleCI (#112)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
Spomky authored Sep 13, 2018
1 parent 125af3b commit eb14442
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down
4 changes: 2 additions & 2 deletions src/HOTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down Expand Up @@ -111,7 +111,7 @@ private function verifyOtpWithWindow($otp, $counter, $window)
{
$window = $this->getWindow($window);

for ($i = $counter; $i <= $counter + $window; ++$i) {
for ($i = $counter; $i <= $counter + $window; $i++) {
if ($this->compareOTP($this->at($i), $otp)) {
$this->updateCounter($i + 1);

Expand Down
2 changes: 1 addition & 1 deletion src/HOTPInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down
2 changes: 1 addition & 1 deletion src/OTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down
2 changes: 1 addition & 1 deletion src/OTPInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down
2 changes: 1 addition & 1 deletion src/ParameterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down
4 changes: 2 additions & 2 deletions src/TOTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down Expand Up @@ -99,7 +99,7 @@ private function verifyOtpWithWindow($otp, $timestamp, $window)
{
$window = abs($window);

for ($i = -$window; $i <= $window; ++$i) {
for ($i = -$window; $i <= $window; $i++) {
if ($this->compareOTP($this->at($i * $this->getPeriod() + $timestamp), $otp)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/TOTPInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down
2 changes: 1 addition & 1 deletion tests/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down
2 changes: 1 addition & 1 deletion tests/HOTPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down
2 changes: 1 addition & 1 deletion tests/TOTPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Spomky-Labs
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
Expand Down

0 comments on commit eb14442

Please sign in to comment.