mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix method name
This commit is contained in:
parent
e6a84ab387
commit
4712a826d1
@ -77,14 +77,15 @@ class UpgradeFireflyInstructions extends Command
|
|||||||
$text = '';
|
$text = '';
|
||||||
foreach (array_keys($config) as $compare) {
|
foreach (array_keys($config) as $compare) {
|
||||||
// if string starts with:
|
// if string starts with:
|
||||||
if (str_starts_with($version, $compare)) {
|
if (\str_starts_with($version, $compare)) {
|
||||||
$text = $config[$compare];
|
$text = $config[$compare];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->showLine();
|
$this->showLine();
|
||||||
$this->boxed('');
|
$this->boxed('');
|
||||||
if (null === $text) {
|
if (null === $text || '' === $text) {
|
||||||
$this->boxed(sprintf('Thank you for updating to Firefly III, v%s', $version));
|
$this->boxed(sprintf('Thank you for updating to Firefly III, v%s', $version));
|
||||||
$this->boxedInfo('There are no extra upgrade instructions.');
|
$this->boxedInfo('There are no extra upgrade instructions.');
|
||||||
$this->boxed('Firefly III should be ready for use.');
|
$this->boxed('Firefly III should be ready for use.');
|
||||||
@ -148,13 +149,13 @@ class UpgradeFireflyInstructions extends Command
|
|||||||
$text = '';
|
$text = '';
|
||||||
foreach (array_keys($config) as $compare) {
|
foreach (array_keys($config) as $compare) {
|
||||||
// if string starts with:
|
// if string starts with:
|
||||||
if (str_starts_with($version, $compare)) {
|
if (\str_starts_with($version, $compare)) {
|
||||||
$text = $config[$compare];
|
$text = $config[$compare];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->showLine();
|
$this->showLine();
|
||||||
$this->boxed('');
|
$this->boxed('');
|
||||||
if (null === $text) {
|
if (null === $text || '' === $text) {
|
||||||
$this->boxed(sprintf('Thank you for installing Firefly III, v%s!', $version));
|
$this->boxed(sprintf('Thank you for installing Firefly III, v%s!', $version));
|
||||||
$this->boxedInfo('There are no extra installation instructions.');
|
$this->boxedInfo('There are no extra installation instructions.');
|
||||||
$this->boxed('Firefly III should be ready for use.');
|
$this->boxed('Firefly III should be ready for use.');
|
||||||
|
Loading…
Reference in New Issue
Block a user