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,19 +63,20 @@ class UpgradeFireflyInstructions extends Command
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (is_null($text)) {
|
if (is_null($text)) {
|
||||||
$this->line(sprintf('Thank you for installing Firefly III, v%s', $version));
|
$this->line(sprintf('Thank you for installing Firefly III, v%s', $version));
|
||||||
$this->info('There are no extra upgrade instructions.');
|
$this->info('There are no extra upgrade instructions.');
|
||||||
$this->line('Firefly III should be ready for use.');
|
$this->line('Firefly III should be ready for use.');
|
||||||
} else {
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->line('+------------------------------------------------------------------------------+');
|
$this->line('+------------------------------------------------------------------------------+');
|
||||||
$this->line('');
|
$this->line('');
|
||||||
$this->line(sprintf('Thank you for installing Firefly III, v%s', $version));
|
$this->line(sprintf('Thank you for installing Firefly III, v%s', $version));
|
||||||
$this->info(wordwrap($text));
|
$this->info(wordwrap($text));
|
||||||
$this->line('');
|
$this->line('');
|
||||||
$this->line('+------------------------------------------------------------------------------+');
|
$this->line('+------------------------------------------------------------------------------+');
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -174,10 +174,8 @@ class VerifyDatabase extends Command
|
|||||||
$configuration = [
|
$configuration = [
|
||||||
// a withdrawal can not have revenue account:
|
// a withdrawal can not have revenue account:
|
||||||
TransactionType::WITHDRAWAL => [AccountType::REVENUE],
|
TransactionType::WITHDRAWAL => [AccountType::REVENUE],
|
||||||
|
|
||||||
// deposit cannot have an expense account:
|
// deposit cannot have an expense account:
|
||||||
TransactionType::DEPOSIT => [AccountType::EXPENSE],
|
TransactionType::DEPOSIT => [AccountType::EXPENSE],
|
||||||
|
|
||||||
// transfer cannot have either:
|
// transfer cannot have either:
|
||||||
TransactionType::TRANSFER => [AccountType::EXPENSE, AccountType::REVENUE],
|
TransactionType::TRANSFER => [AccountType::EXPENSE, AccountType::REVENUE],
|
||||||
];
|
];
|
||||||
|
@ -16,7 +16,7 @@ namespace FireflyIII\Events;
|
|||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class LockedOutUser
|
* Class BlockedBadLogin
|
||||||
*
|
*
|
||||||
* @package FireflyIII\Events
|
* @package FireflyIII\Events
|
||||||
*/
|
*/
|
||||||
@ -28,7 +28,7 @@ class BlockedBadLogin extends Event
|
|||||||
public $ipAddress;
|
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 $email
|
||||||
* @param string $ipAddress
|
* @param string $ipAddress
|
||||||
|
@ -19,6 +19,7 @@ use Illuminate\Queue\SerializesModels;
|
|||||||
/**
|
/**
|
||||||
* Class BlockedUseOfDomain
|
* Class BlockedUseOfDomain
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @package FireflyIII\Events
|
* @package FireflyIII\Events
|
||||||
*/
|
*/
|
||||||
class BlockedUseOfDomain extends Event
|
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).
|
* 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 $email
|
||||||
* @param string $ipAddress
|
* @param string $ipAddress
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user