Skip to content

Commit ae58f56

Browse files
committed
Fix automated checks
1 parent d938e7b commit ae58f56

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Theme/Plugin/LoadDesignPlugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class LoadDesignPlugin
2121
/**
2222
* @var DesignLoader
2323
*/
24-
protected $_designLoader;
24+
private $designLoader;
2525

2626
/**
2727
* @var MessageManagerInterface
2828
*/
29-
protected $messageManager;
29+
private $messageManager;
3030

3131
/**
3232
* @param DesignLoader $designLoader
@@ -36,7 +36,7 @@ public function __construct(
3636
DesignLoader $designLoader,
3737
MessageManagerInterface $messageManager
3838
) {
39-
$this->_designLoader = $designLoader;
39+
$this->designLoader = $designLoader;
4040
$this->messageManager = $messageManager;
4141
}
4242

@@ -50,7 +50,7 @@ public function __construct(
5050
public function beforeExecute(ActionInterface $subject)
5151
{
5252
try {
53-
$this->_designLoader->load();
53+
$this->designLoader->load();
5454
} catch (LocalizedException $e) {
5555
if ($e->getPrevious() instanceof ValidationException) {
5656
/** @var MessageInterface $message */
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
namespace Magento\Framework\App\Test\Unit\Action\Plugin;
77

88
use Magento\Framework\App\Action\Action;
9-
use Magento\Framework\App\Action\Plugin\LoadDesignPlugin;
109
use Magento\Framework\App\ActionInterface;
1110
use Magento\Framework\Message\ManagerInterface;
1211
use Magento\Framework\View\DesignLoader;
12+
use Magento\Theme\Plugin\LoadDesignPlugin;
1313
use PHPUnit\Framework\MockObject\MockObject;
1414
use PHPUnit\Framework\TestCase;
1515

0 commit comments

Comments
 (0)