Small code cleanup.

This commit is contained in:
James Cole 2016-12-27 19:34:05 +01:00
parent 3bacbe8536
commit 6c5499e848
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
4 changed files with 13 additions and 12 deletions

View File

@ -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('+------------------------------------------------------------------------------+');
}
} }

View File

@ -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],
]; ];

View File

@ -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

View File

@ -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
*/ */