Skip to content
Snippets Groups Projects
Commit 49d0fec1 authored by Joan He's avatar Joan He
Browse files

MAGETWO-32624: Investigate and Annotate @api to classes and/or methods

- fixed static test failures
parent 1ae920b6
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* See COPYING.txt for license details. * See COPYING.txt for license details.
*/ */
namespace Magento\Email\Model; namespace Magento\Email\Model;
use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Framework\App\Config\ScopeConfigInterface;
/** /**
......
...@@ -45,14 +45,14 @@ class DefaultReader implements \Magento\Framework\App\Config\Scope\ReaderInterfa ...@@ -45,14 +45,14 @@ class DefaultReader implements \Magento\Framework\App\Config\Scope\ReaderInterfa
* Read configuration data * Read configuration data
* *
* @param null|string $scope * @param null|string $scope
* @throws \Magento\Framework\Exception Exception is thrown when scope other than default is given * @throws \Magento\Framework\Exception\LocalizedException Exception is thrown when scope other than default is given
* @return array * @return array
*/ */
public function read($scope = null) public function read($scope = null)
{ {
$scope = $scope === null ? ScopeConfigInterface::SCOPE_TYPE_DEFAULT : $scope; $scope = $scope === null ? ScopeConfigInterface::SCOPE_TYPE_DEFAULT : $scope;
if ($scope !== ScopeConfigInterface::SCOPE_TYPE_DEFAULT) { if ($scope !== ScopeConfigInterface::SCOPE_TYPE_DEFAULT) {
throw new \Magento\Framework\Exception("Only default scope allowed"); throw new \Magento\Framework\Exception\LocalizedException(__("Only default scope allowed"));
} }
$config = $this->_initialConfig->getData($scope); $config = $this->_initialConfig->getData($scope);
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
namespace Magento\Theme\Model\View; namespace Magento\Theme\Model\View;
use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Framework\App\Config\ScopeConfigInterface;
/** /**
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* See COPYING.txt for license details. * See COPYING.txt for license details.
*/ */
namespace Magento\Payment\Model; namespace Magento\Payment\Model;
use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Framework\App\Config\ScopeConfigInterface;
/** /**
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
* See COPYING.txt for license details. * See COPYING.txt for license details.
*/ */
namespace Magento\Framework\App\Config; namespace Magento\Framework\App\Config;
use Magento\Framework\App\Config\ScopeConfigInterface;
/** /**
* Config data model * Config data model
......
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