Skip to content

Commit 1c05b79

Browse files
committed
#21674 static-test-fix
1 parent 057c13d commit 1c05b79

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
use Magento\MediaStorage\Helper\File\Storage\Database;
1818

1919
/**
20-
* Template model class
20+
* Template model class.
2121
*
22+
* phpcs:disable Magento2.Classes.AbstractApi
2223
* @author Magento Core Team <core@magentocommerce.com>
2324
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2425
* @SuppressWarnings(PHPMD.TooManyFields)
@@ -505,7 +506,6 @@ protected function addEmailVariables($variables, $storeId)
505506

506507
/**
507508
* Apply design config so that emails are processed within the context of the appropriate area/store/theme.
508-
* Can be called multiple times without issue.
509509
*
510510
* @return bool
511511
*/
@@ -679,8 +679,7 @@ public function getTemplateFilter()
679679
}
680680

681681
/**
682-
* Save current design config and replace with design config from specified store
683-
* Event is not dispatched.
682+
* Save current design config and replace with design config from specified store. Event is not dispatched.
684683
*
685684
* @param null|bool|int|string $storeId
686685
* @param string $area

app/code/Magento/Email/Test/Unit/Model/BackendTemplateTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use Magento\Email\Model\BackendTemplate;
1313
use Magento\Framework\ObjectManagerInterface;
1414

15+
/**
16+
* Tests for adminhtml email template model.
17+
*/
1518
class BackendTemplateTest extends \PHPUnit\Framework\TestCase
1619
{
1720
/**
@@ -72,13 +75,13 @@ protected function setUp()
7275
->method('get')
7376
->willReturnCallback(
7477
function ($value) {
75-
switch($value) {
78+
switch ($value) {
7679
case \Magento\MediaStorage\Helper\File\Storage\Database::class:
7780
return ($this->databaseHelperMock);
7881
case \Magento\Email\Model\ResourceModel\Template::class:
7982
return ($this->resourceModelMock);
8083
default:
81-
return(NULL);
84+
return(null);
8285
}
8386
}
8487
);

0 commit comments

Comments
 (0)