mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Small code cleanup.
This commit is contained in:
parent
3bacbe8536
commit
6c5499e848
@ -63,20 +63,21 @@ class UpgradeFireflyInstructions extends Command
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (is_null($text)) {
|
||||
$this->line(sprintf('Thank you for installing Firefly III, v%s', $version));
|
||||
$this->info('There are no extra upgrade instructions.');
|
||||
$this->line('Firefly III should be ready for use.');
|
||||
} else {
|
||||
$this->line('+------------------------------------------------------------------------------+');
|
||||
$this->line('');
|
||||
$this->line(sprintf('Thank you for installing Firefly III, v%s', $version));
|
||||
$this->info(wordwrap($text));
|
||||
$this->line('');
|
||||
$this->line('+------------------------------------------------------------------------------+');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->line('+------------------------------------------------------------------------------+');
|
||||
$this->line('');
|
||||
$this->line(sprintf('Thank you for installing Firefly III, v%s', $version));
|
||||
$this->info(wordwrap($text));
|
||||
$this->line('');
|
||||
$this->line('+------------------------------------------------------------------------------+');
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -174,10 +174,8 @@ class VerifyDatabase extends Command
|
||||
$configuration = [
|
||||
// a withdrawal can not have revenue account:
|
||||
TransactionType::WITHDRAWAL => [AccountType::REVENUE],
|
||||
|
||||
// deposit cannot have an expense account:
|
||||
TransactionType::DEPOSIT => [AccountType::EXPENSE],
|
||||
|
||||
// transfer cannot have either:
|
||||
TransactionType::TRANSFER => [AccountType::EXPENSE, AccountType::REVENUE],
|
||||
];
|
||||
|
@ -16,7 +16,7 @@ namespace FireflyIII\Events;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
/**
|
||||
* Class LockedOutUser
|
||||
* Class BlockedBadLogin
|
||||
*
|
||||
* @package FireflyIII\Events
|
||||
*/
|
||||
@ -28,7 +28,7 @@ class BlockedBadLogin extends Event
|
||||
public $ipAddress;
|
||||
|
||||
/**
|
||||
* Create a new event instance. This event is triggered when a user gets themselves locked out.
|
||||
* Create a new event instance. This event is triggered when a bad login is blocked.
|
||||
*
|
||||
* @param string $email
|
||||
* @param string $ipAddress
|
||||
|
@ -19,6 +19,7 @@ use Illuminate\Queue\SerializesModels;
|
||||
/**
|
||||
* Class BlockedUseOfDomain
|
||||
*
|
||||
* @deprecated
|
||||
* @package FireflyIII\Events
|
||||
*/
|
||||
class BlockedUseOfDomain extends Event
|
||||
@ -31,6 +32,7 @@ class BlockedUseOfDomain extends Event
|
||||
/**
|
||||
* Create a new event instance. This event is triggered when a user tries to register with a banned domain (on blocked domain list).
|
||||
*
|
||||
* @deprecated
|
||||
* @param string $email
|
||||
* @param string $ipAddress
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user