Skip to content

Commit

Permalink
fixed #33
Browse files Browse the repository at this point in the history
  • Loading branch information
simialbi committed Dec 11, 2020
1 parent a447ad2 commit 5d951ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace nickcv\mandrill;

use Yii;
use yii\helpers\ArrayHelper;
use yii\helpers\FileHelper;
use yii\helpers\HtmlPurifier;
Expand Down Expand Up @@ -1082,7 +1083,7 @@ public function getMergeVars()
public function setGlobalMergeVars(array $mergeVars)
{
foreach ($mergeVars as $name => $content) {
if ($name{0} === '_') {
if ($name[0] === '_') {
continue;
}

Expand Down Expand Up @@ -1425,7 +1426,7 @@ private function getFromName()
return $this->_fromName ? $this->_fromName : null;
}

return $this->_fromName ? $this->_fromName : \Yii::$app->name;
return $this->_fromName ? $this->_fromName : Yii::$app->name;
}

/**
Expand All @@ -1439,7 +1440,7 @@ private function getFromAddress()
return $this->_fromAddress ? $this->_fromAddress : null;
}

return $this->_fromAddress ? $this->_fromAddress : \Yii::$app->params['adminEmail'];
return $this->_fromAddress ? $this->_fromAddress : Yii::$app->params['adminEmail'];
}

/**
Expand Down

0 comments on commit 5d951ea

Please sign in to comment.