Skip to content

Commit b4c2edc

Browse files
committed
MAGETWO-95621: Path Validation in Templates
1 parent e13c4c5 commit b4c2edc

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

lib/internal/Magento/Framework/View/Element/Template/File/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*/
66
namespace Magento\Framework\View\Element\Template\File;
77

8-
use \Magento\Framework\App\Filesystem\DirectoryList;
8+
use Magento\Framework\App\Filesystem\DirectoryList;
99
use Magento\Framework\Component\ComponentRegistrar;
10-
use \Magento\Framework\Filesystem\Driver\File as FileDriver;
10+
use Magento\Framework\Filesystem\Driver\File as FileDriver;
1111

1212
/**
1313
* Class Validator.

lib/internal/Magento/Framework/View/Test/Unit/Element/Template/File/ValidatorTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,7 @@ class ValidatorTest extends \PHPUnit_Framework_TestCase
6262
*/
6363
protected function setUp()
6464
{
65-
$this->fileSystemMock = $this->getMock(
66-
\Magento\Framework\Filesystem::class,
67-
[],
68-
[],
69-
'',
70-
false
71-
);
65+
$this->fileSystemMock = $this->getMock(\Magento\Framework\Filesystem::class, [], [], '', false);
7266
$this->scopeConfigMock = $this->getMock(
7367
\Magento\Framework\App\Config\ScopeConfigInterface::class,
7468
[],

0 commit comments

Comments
 (0)