Unverified Commit eb144426 authored by Spomky's avatar Spomky Committed by GitHub
Browse files

Apply fixes from StyleCI (#112)

[ci skip] [skip ci]
No related merge requests found
Showing with 13 additions and 13 deletions
+13 -13
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
...@@ -111,7 +111,7 @@ final class HOTP extends OTP implements HOTPInterface ...@@ -111,7 +111,7 @@ final class HOTP extends OTP implements HOTPInterface
{ {
$window = $this->getWindow($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)) { if ($this->compareOTP($this->at($i), $otp)) {
$this->updateCounter($i + 1); $this->updateCounter($i + 1);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
...@@ -99,7 +99,7 @@ final class TOTP extends OTP implements TOTPInterface ...@@ -99,7 +99,7 @@ final class TOTP extends OTP implements TOTPInterface
{ {
$window = abs($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)) { if ($this->compareOTP($this->at($i * $this->getPeriod() + $timestamp), $otp)) {
return true; return true;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
* The MIT License (MIT) * 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 * This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment