Skip to content

Commit 49d0fec

Browse files
author
Joan He
committed
MAGETWO-32624: Investigate and Annotate @api to classes and/or methods
- fixed static test failures
1 parent 1ae920b commit 49d0fec

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Email\Model;
7+
78
use Magento\Framework\App\Config\ScopeConfigInterface;
89

910
/**

app/code/Magento/Store/Model/Config/Reader/DefaultReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ public function __construct(
4545
* Read configuration data
4646
*
4747
* @param null|string $scope
48-
* @throws \Magento\Framework\Exception Exception is thrown when scope other than default is given
48+
* @throws \Magento\Framework\Exception\LocalizedException Exception is thrown when scope other than default is given
4949
* @return array
5050
*/
5151
public function read($scope = null)
5252
{
5353
$scope = $scope === null ? ScopeConfigInterface::SCOPE_TYPE_DEFAULT : $scope;
5454
if ($scope !== ScopeConfigInterface::SCOPE_TYPE_DEFAULT) {
55-
throw new \Magento\Framework\Exception("Only default scope allowed");
55+
throw new \Magento\Framework\Exception\LocalizedException(__("Only default scope allowed"));
5656
}
5757

5858
$config = $this->_initialConfig->getData($scope);

app/code/Magento/Theme/Model/View/Design.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
namespace Magento\Theme\Model\View;
8+
89
use Magento\Framework\App\Config\ScopeConfigInterface;
910

1011
/**

dev/tests/integration/testsuite/Magento/Payment/Model/ObserverTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Payment\Model;
7+
78
use Magento\Framework\App\Config\ScopeConfigInterface;
89

910
/**

lib/internal/Magento/Framework/App/Config/Value.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Framework\App\Config;
7-
use Magento\Framework\App\Config\ScopeConfigInterface;
87

98
/**
109
* Config data model

0 commit comments

Comments
 (0)