Skip to content

Commit a5dab87

Browse files
author
oleksandrkravchuk
committed
Make changes according to the code review.
1 parent b5d6627 commit a5dab87

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dev/tests/static/framework/Magento/TestFramework/Dependency/PhpRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class PhpRule implements RuleInterface
7979
* @var array
8080
*/
8181
private $whitelists;
82+
8283
/**
8384
* @var ClassScanner
8485
*/
@@ -102,7 +103,6 @@ public function __construct(
102103
) {
103104
$this->_mapRouters = $mapRouters;
104105
$this->_mapLayoutBlocks = $mapLayoutBlocks;
105-
$this->_namespaces = implode('|', \Magento\Framework\App\Utility\Files::init()->getNamespaces());
106106
$this->pluginMap = $pluginMap ?: null;
107107
$this->routeMapper = new RouteMapper();
108108
$this->whitelists = $whitelists;

dev/tests/static/framework/Magento/TestFramework/Dependency/Reader/ClassScanner.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
namespace Magento\TestFramework\Dependency\Reader;
99

10+
use Magento\Setup\Module\Di\Code\Reader\FileClassScanner;
11+
1012
/**
1113
* Search classes in file by path.
1214
*/
@@ -42,7 +44,7 @@ public function getClassName(string $filePath): string
4244
*/
4345
private function loadClassName(string $filePath): string
4446
{
45-
$scanner = new \Magento\Setup\Module\Di\Code\Reader\FileClassScanner($filePath);
47+
$scanner = new FileClassScanner($filePath);
4648
return $scanner->getClassName();
4749
}
4850
}

0 commit comments

Comments
 (0)