Skip to content

Commit 779c9ae

Browse files
committed
Add comments on tests and output files
1 parent 08061d9 commit 779c9ae

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

app/code/Magento/Developer/Model/XmlCatalog/Format/VsCode.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,15 @@ public function generateCatalog(array $dictionary, $configFile): void
117117
*/
118118
private function initEmptyFile(\DOMDocument $dom): \DOMElement
119119
{
120-
$catalogNode = $dom->createElement('catalog');
120+
$copyrigthComment = $dom->createComment('
121+
/**
122+
* Copyright © Magento, Inc. All rights reserved.
123+
* See COPYING.txt for license details.
124+
*/
125+
');
126+
$dom->appendChild($copyrigthComment);
121127

128+
$catalogNode = $dom->createElement('catalog');
122129
$catalogNode->setAttribute('xmlns', self::XMLNS);
123130
$dom->appendChild($catalogNode);
124131

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
28
<root />

app/code/Magento/Developer/Test/Unit/Model/XmlCatalog/Format/_files/valid_catalog.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
28
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
39
<system systemId="urn:magento:framework:Acl/etc/acl.xsd" uri="../vendor/magento/framework/Acl/etc/acl.xsd"/>
410
<system systemId="urn:magento:module:Magento_Store:etc/config.xsd" uri="../vendor/magento/module-store/etc/config.xsd"/>

0 commit comments

Comments
 (0)