From 079a3269dd23e1a787981670758949fbf7824f0e Mon Sep 17 00:00:00 2001 From: Yuxing Zheng <yuxzheng@ebay.com> Date: Tue, 31 Mar 2015 13:52:28 -0500 Subject: [PATCH] MAGETWO-35302: Cover app/code/Magento/Email/Model(others) - Added 'use' statement to replace usages of fully qualified name for \Magento\Store\Model\ScopeInterface --- app/code/Magento/Email/Model/Template.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/Email/Model/Template.php b/app/code/Magento/Email/Model/Template.php index edc82a81b8f..8287fa82aca 100644 --- a/app/code/Magento/Email/Model/Template.php +++ b/app/code/Magento/Email/Model/Template.php @@ -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(); } -- GitLab