Skip to content
Snippets Groups Projects
Commit 079a3269 authored by Yuxing Zheng's avatar Yuxing Zheng
Browse files

MAGETWO-35302: Cover app/code/Magento/Email/Model(others)

 - Added 'use' statement to replace usages of fully qualified name for \Magento\Store\Model\ScopeInterface
parent d808c0e3
Branches
No related merge requests found
......@@ -8,6 +8,7 @@ namespace Magento\Email\Model;
use Magento\Email\Model\Template\Filter;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Filter\Template as FilterTemplate;
use Magento\Store\Model\ScopeInterface;
use Magento\Store\Model\StoreManagerInterface;
/**
......@@ -213,7 +214,7 @@ class Template extends \Magento\Email\Model\AbstractTemplate implements \Magento
$store = $this->_storeManager->getStore($store);
$fileName = $this->_scopeConfig->getValue(
self::XML_PATH_DESIGN_EMAIL_LOGO,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
ScopeInterface::SCOPE_STORE,
$store
);
if ($fileName) {
......@@ -252,7 +253,7 @@ class Template extends \Magento\Email\Model\AbstractTemplate implements \Magento
$store = $this->_storeManager->getStore($store);
$alt = $this->_scopeConfig->getValue(
self::XML_PATH_DESIGN_EMAIL_LOGO_ALT,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
ScopeInterface::SCOPE_STORE,
$store
);
if ($alt) {
......@@ -385,7 +386,7 @@ class Template extends \Magento\Email\Model\AbstractTemplate implements \Magento
{
return !$this->_scopeConfig->isSetFlag(
'system/smtp/disable',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
ScopeInterface::SCOPE_STORE
) && $this->getSenderName() && $this->getSenderEmail() && $this->getTemplateSubject();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment