Skip to content

Commit 079a326

Browse files
committed
MAGETWO-35302: Cover app/code/Magento/Email/Model(others)
- Added 'use' statement to replace usages of fully qualified name for \Magento\Store\Model\ScopeInterface
1 parent d808c0e commit 079a326

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/Email/Model/Template.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\Email\Model\Template\Filter;
99
use Magento\Framework\App\Filesystem\DirectoryList;
1010
use Magento\Framework\Filter\Template as FilterTemplate;
11+
use Magento\Store\Model\ScopeInterface;
1112
use Magento\Store\Model\StoreManagerInterface;
1213

1314
/**
@@ -213,7 +214,7 @@ protected function _getLogoUrl($store)
213214
$store = $this->_storeManager->getStore($store);
214215
$fileName = $this->_scopeConfig->getValue(
215216
self::XML_PATH_DESIGN_EMAIL_LOGO,
216-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
217+
ScopeInterface::SCOPE_STORE,
217218
$store
218219
);
219220
if ($fileName) {
@@ -252,7 +253,7 @@ protected function _getLogoAlt($store)
252253
$store = $this->_storeManager->getStore($store);
253254
$alt = $this->_scopeConfig->getValue(
254255
self::XML_PATH_DESIGN_EMAIL_LOGO_ALT,
255-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
256+
ScopeInterface::SCOPE_STORE,
256257
$store
257258
);
258259
if ($alt) {
@@ -385,7 +386,7 @@ public function isValidForSend()
385386
{
386387
return !$this->_scopeConfig->isSetFlag(
387388
'system/smtp/disable',
388-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
389+
ScopeInterface::SCOPE_STORE
389390
) && $this->getSenderName() && $this->getSenderEmail() && $this->getTemplateSubject();
390391
}
391392

0 commit comments

Comments
 (0)