Skip to content

Commit 4beb52d

Browse files
MAGETWO-64226: Add paths validation
1 parent 2e79f7c commit 4beb52d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Config/Model/Config/PathValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ public function __construct(Structure $structure)
2828
}
2929

3030
/**
31-
* Validates the config path by config structure schema.
31+
* Checks whether the config path present in configuration structure.
3232
*
3333
* @param string $path The config path
34-
* @return bool The result of validation
34+
* @return true The result of validation
3535
* @throws ValidatorException If provided path is not valid
3636
*/
3737
public function validate($path)

app/code/Magento/Config/Model/Config/Structure.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ protected function _getGroupFieldPathsByAttribute(array $fields, $parentPath, $a
252252
}
253253

254254
/**
255-
* Collects config field paths recursively from config schema.
256-
* Returns an array map of fields specification.
255+
* Collects config paths and their structure paths from configuration files.
256+
* Returns the map of config paths and their structure paths.
257257
*
258258
* ```php
259259
* [
@@ -272,7 +272,7 @@ public function getFieldPaths()
272272
}
273273

274274
/**
275-
* Iteration that collects config field paths recursively from config schema.
275+
* Iteration that collects config field paths recursively from config files.
276276
*
277277
* @param array $elements The elements to be parsed
278278
* @return array An array of config path to config structure path map

0 commit comments

Comments
 (0)