Skip to content

Commit 449d1e3

Browse files
committed
MC-38348: Make SVC and Infra changes
- Style fixes
1 parent e17c5f1 commit 449d1e3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Analyzer/SystemXml/Analyzer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ public function analyze($registryBefore, $registryAfter)
8888
$moduleNodesAfter = $nodesAfter[$moduleName];
8989
$addedNodes = array_diff_key($moduleNodesAfter, $moduleNodesBefore);
9090
$removedNodes = array_diff_key($moduleNodesBefore, $moduleNodesAfter);
91-
if (isset($registryBefore->mapping[XmlRegistry::NODES_KEY][$moduleName])) {
91+
if ($removedNodes) {
9292
$beforeFile = $registryBefore->mapping[XmlRegistry::NODES_KEY][$moduleName];
9393
$this->reportRemovedNodes($beforeFile, $removedNodes);
9494
}
95-
if (isset($registryAfter->mapping[XmlRegistry::NODES_KEY][$moduleName])) {
95+
if ($addedNodes) {
9696
$afterFile = $registryAfter->mapping[XmlRegistry::NODES_KEY][$moduleName];
9797
$this->reportAddedNodes($afterFile, $addedNodes);
9898
}

src/Operation/InvalidWhitelist.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ class InvalidWhitelist extends Operation
4343
*
4444
* @var string
4545
*/
46-
protected $fileBefore;
46+
protected $location;
4747

4848
/**
49-
* @param string $fileAfter
49+
* @param string $location
5050
* @param string $target
5151
*/
52-
public function __construct($fileAfter, $target)
52+
public function __construct($location, $target)
5353
{
54-
$this->fileBefore = $fileAfter;
54+
$this->location = $location;
5555
$this->target = $target;
5656
}
5757

@@ -62,7 +62,7 @@ public function __construct($fileAfter, $target)
6262
*/
6363
public function getLocation()
6464
{
65-
return $this->fileBefore;
65+
return $this->location;
6666
}
6767

6868
public function getReason()

0 commit comments

Comments
 (0)