Skip to content

Commit 7fd26a9

Browse files
committed
Added comments and strict types enabling
1 parent 90bf91d commit 7fd26a9

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

app/code/Magento/MediaGallery/Model/Directory/Config.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\MediaGallery\Model\Directory;
89

910
use Magento\Framework\Config\DataInterface;
1011

1112
/**
12-
* Config of Magento Media Gallery Directory.
13+
* Media gallery directory config
1314
*/
1415
class Config
1516
{

app/code/Magento/MediaGallery/Model/Directory/Config/Converter.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,39 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\MediaGallery\Model\Directory\Config;
79

810
use Magento\Framework\Config\ConverterInterface;
911

1012
/**
11-
* Class Converter
13+
* Media gallery directory config converter
1214
*/
1315
class Converter implements ConverterInterface
1416
{
1517
/**
1618
* Blacklist tag name
1719
*/
18-
private CONST BLACKLIST_TAG_NAME = 'blacklist';
20+
private const BLACKLIST_TAG_NAME = 'blacklist';
1921

2022
/**
2123
* Patterns tag name
2224
*/
23-
private CONST PATTERNS_TAG_NAME = 'patterns';
25+
private const PATTERNS_TAG_NAME = 'patterns';
2426

2527
/**
2628
* Pattern tag name
2729
*/
28-
private CONST PATTERN_TAG_NAME = 'pattern';
30+
private const PATTERN_TAG_NAME = 'pattern';
2931

3032
/**
3133
* Convert dom node to array
3234
*
3335
* @param \DOMDocument $source
3436
* @return array
3537
*/
36-
public function convert($source) : array
38+
public function convert($source): array
3739
{
3840
$result = [];
3941

app/code/Magento/MediaGallery/Model/Directory/Config/Reader.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\MediaGallery\Model\Directory\Config;
79

810
use Magento\Framework\App\Area;
@@ -12,6 +14,9 @@
1214
use Magento\Framework\Config\ValidationStateInterface;
1315
use Magento\Framework\Config\Dom;
1416

17+
/**
18+
* Media gallery directory config reader
19+
*/
1520
class Reader extends Filesystem implements ReaderInterface
1621
{
1722
/**

app/code/Magento/MediaGallery/Model/Directory/Config/SchemaLocator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\MediaGallery\Model\Directory\Config;
79

810
use Magento\Framework\Module\Dir;
911
use Magento\Framework\Module\Dir\Reader;
1012
use Magento\Framework\Config\SchemaLocatorInterface;
1113

14+
/**
15+
* Media gallery directory config schema locator
16+
*/
1217
class SchemaLocator implements SchemaLocatorInterface
1318
{
1419
/**

0 commit comments

Comments
 (0)