Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Applied fixes from FlintCI
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh authored and jordisala1991 committed Oct 10, 2020
1 parent 39128d0 commit 5d792e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Mailer/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function sendCommentNotification(CommentInterface $comment)
protected function sendEmailMessage($renderedTemplate, $fromEmail, $toEmail)
{
// Render the email, use the first line as the subject, and the rest as the body
list($subject, $body) = explode("\n", trim($renderedTemplate), 2);
[$subject, $body] = explode("\n", trim($renderedTemplate), 2);

$message = $this->mailer->createMessage()
->setSubject($subject)
Expand Down
2 changes: 1 addition & 1 deletion src/Permalink/CollectionPermalink.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getParameters($permalink)
$collection = null;
$slug = $permalink;
} else {
list($collection, $slug) = $parameters;
[$collection, $slug] = $parameters;
}

return [
Expand Down
2 changes: 1 addition & 1 deletion src/Permalink/DatePermalink.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getParameters($permalink)
throw new \InvalidArgumentException('wrong permalink format');
}

list($year, $month, $day, $slug) = $parameters;
[$year, $month, $day, $slug] = $parameters;

return [
'year' => (int) $year,
Expand Down

0 comments on commit 5d792e8

Please sign in to comment.