Code cleanup that (hopefully) matches style CI

This commit is contained in:
James Cole
2020-03-17 16:46:00 +01:00
parent 91c067ac9f
commit 9a25d6a741
42 changed files with 1395 additions and 1262 deletions

View File

@@ -42,12 +42,10 @@ class ReportNewJournalsMail extends Mailable
/** @var string Email address of the user */
public $email;
/** @var string IP address of user (if known) */
public $ipAddress;
/** @var Collection A collection of groups */
public $groups;
/** @var string IP address of user (if known) */
public $ipAddress;
/** @var array All groups, transformed to array. */
public $transformed;
@@ -72,10 +70,11 @@ class ReportNewJournalsMail extends Mailable
*/
public function build(): self
{
$subject = 1 === $this->groups->count()
$subject = 1 === $this->groups->count()
? 'Firefly III has created a new transaction'
: sprintf(
'Firefly III has created new %d transactions', $this->groups->count()
'Firefly III has created new %d transactions',
$this->groups->count()
);
$this->transform();