From eb14442699ae6470b29ffd89238a9ccfb9f20788 Mon Sep 17 00:00:00 2001 From: Spomky <Spomky@users.noreply.github.com> Date: Thu, 13 Sep 2018 21:25:26 +0200 Subject: [PATCH] Apply fixes from StyleCI (#112) [ci skip] [skip ci] --- src/Factory.php | 2 +- src/HOTP.php | 4 ++-- src/HOTPInterface.php | 2 +- src/OTP.php | 2 +- src/OTPInterface.php | 2 +- src/ParameterTrait.php | 2 +- src/TOTP.php | 4 ++-- src/TOTPInterface.php | 2 +- tests/FactoryTest.php | 2 +- tests/HOTPTest.php | 2 +- tests/TOTPTest.php | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Factory.php b/src/Factory.php index 7daa096..5e33396 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 da6650c..02b089d 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 cae55a7..87bb22a 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 aa9cbd8..3841d6f 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 55f8de7..2d90b17 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 9b3685b..f6913b3 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 26bf2b2..ac61f3a 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 f094b3b..2dd6efb 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 f33a226..af7fd5e 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 4c0e78f..8925168 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 101ce03..f2dc539 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. -- GitLab