mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Clean up various code.
This commit is contained in:
@@ -58,7 +58,7 @@ class FakePrerequisites implements PrerequisitesInterface
|
||||
$apiKey = app('preferences')->getForUser($this->user, 'fake_api_key', null)->data;
|
||||
}
|
||||
$oldKey = (string)\request()->old('api_key');
|
||||
if ($oldKey !== '') {
|
||||
if ('' !== $oldKey) {
|
||||
$apiKey = \request()->old('api_key'); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ class FakePrerequisites implements PrerequisitesInterface
|
||||
if (null === $apiKey->data) {
|
||||
return false;
|
||||
}
|
||||
if (\strlen((string)$apiKey->data) === 32) {
|
||||
if (32 === \strlen((string)$apiKey->data)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user