diff --git a/src/Factory.php b/src/Factory.php index 7daa096d44fdc5eeea24431ad2fafeb015d1f271..5e33396e1650aec83fa6386b9f9e1bd99e9ae261 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -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. diff --git a/src/HOTP.php b/src/HOTP.php index da6650c27ffef025a1ef6eb688a954c03a23cf62..02b089db4e9115e5ab17abac029432a29d5d71b1 100644 --- a/src/HOTP.php +++ b/src/HOTP.php @@ -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. @@ -111,7 +111,7 @@ final class HOTP extends OTP implements HOTPInterface { $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); diff --git a/src/HOTPInterface.php b/src/HOTPInterface.php index cae55a72360a675e010b163199b9248800409e96..87bb22a0cd2ba768ba72fe75fcf3b66c9d53ca9a 100644 --- a/src/HOTPInterface.php +++ b/src/HOTPInterface.php @@ -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. diff --git a/src/OTP.php b/src/OTP.php index aa9cbd85988a2901b541c34ed7aa942ca46304b5..3841d6f946a892bd348b2f4c9e406e2898ed808d 100644 --- a/src/OTP.php +++ b/src/OTP.php @@ -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. diff --git a/src/OTPInterface.php b/src/OTPInterface.php index 55f8de72ba8f8b7513655faf6733afb1f5208823..2d90b17ad0751c170e06560648126cf64ca10684 100644 --- a/src/OTPInterface.php +++ b/src/OTPInterface.php @@ -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. diff --git a/src/ParameterTrait.php b/src/ParameterTrait.php index 9b3685b968a6b366770ab57e9530e76e60d94793..f6913b337d54a62726f62c657b8249fab4cb52fe 100644 --- a/src/ParameterTrait.php +++ b/src/ParameterTrait.php @@ -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. diff --git a/src/TOTP.php b/src/TOTP.php index 26bf2b21524cc27177456141d19693b8068033bb..ac61f3a2fefb83ca92bffacc69e9bae37cd49abe 100644 --- a/src/TOTP.php +++ b/src/TOTP.php @@ -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. @@ -99,7 +99,7 @@ final class TOTP extends OTP implements TOTPInterface { $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; } diff --git a/src/TOTPInterface.php b/src/TOTPInterface.php index f094b3b9becd1afa2d4023c86192448886a01965..2dd6efb109aed47ea1c9bc5cb25f66c9fa9ceac5 100644 --- a/src/TOTPInterface.php +++ b/src/TOTPInterface.php @@ -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. diff --git a/tests/FactoryTest.php b/tests/FactoryTest.php index f33a2261b0531c9f57c32684104735c25877e15f..af7fd5eca4f2deb232c6d1aeff3b99433edca2c9 100644 --- a/tests/FactoryTest.php +++ b/tests/FactoryTest.php @@ -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. diff --git a/tests/HOTPTest.php b/tests/HOTPTest.php index 4c0e78f5a2d475a25fdddde9bfbe5d630302eb7f..89251681742c9ec82f02ea32854fa71495268b9d 100644 --- a/tests/HOTPTest.php +++ b/tests/HOTPTest.php @@ -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. diff --git a/tests/TOTPTest.php b/tests/TOTPTest.php index 101ce03d34a31d6c4fd48aeff733881fc3918e09..f2dc539b86489787400301f6bec8bf8846aa6ae1 100644 --- a/tests/TOTPTest.php +++ b/tests/TOTPTest.php @@ -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.