fix(TwoFactorAuthenticationEnforceFilter.php): use $user variable instead of accessing Yii::$app->user->identity multiple times for better readability and performance

fix(MailService.php): remove unnecessary whitespace before $this->mailer to improve code formatting
This commit is contained in:
Wenceslaus Dsilva
2023-09-24 16:10:44 +05:30
parent 40a76b1eda
commit 4b1536f934
2 changed files with 2 additions and 3 deletions

View File

@ -83,8 +83,7 @@ class MailService implements ServiceInterface
*/
public function run()
{
$result = $this->mailer
$result = $this->mailer
->compose(['html' => $this->view, 'text' => "text/{$this->view}"], $this->params)
->setFrom($this->from)
->setTo($this->to)