Various code cleanup.

This commit is contained in:
James Cole
2023-10-29 06:22:57 +01:00
parent aa1a521cf0
commit 59d96f2893
10 changed files with 13 additions and 15 deletions

View File

@@ -26,8 +26,6 @@ namespace FireflyIII\Console\Commands\System;
use FireflyIII\Support\System\GeneratesInstallationId;
use Illuminate\Console\Command;
use function FireflyIII\Console\Commands\str_starts_with;
/**
* Class UpgradeFireflyInstructions.
*
@@ -77,7 +75,7 @@ class UpgradeFireflyInstructions extends Command
$text = '';
foreach (array_keys($config) as $compare) {
// if string starts with:
if (\str_starts_with($version, $compare)) {
if (str_starts_with($version, $compare)) {
$text = $config[$compare];
}
}
@@ -190,7 +188,7 @@ class UpgradeFireflyInstructions extends Command
$text = '';
foreach (array_keys($config) as $compare) {
// if string starts with:
if (\str_starts_with($version, $compare)) {
if (str_starts_with($version, $compare)) {
$text = $config[$compare];
}
}

View File

@@ -65,7 +65,7 @@ class VerifySecurityAlerts extends Command
$version = config('firefly.version');
$disk = Storage::disk('resources');
// Next line is ignored because it's a Laravel Facade.
if (!$disk->has('alerts.json')) { // @phpstan-ignore-line
if (!$disk->has('alerts.json')) {
Log::debug('No alerts.json file present.');
return 0;