1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 05:43:10 +02:00

chore(core): add comments for Entries read method #212 #186

This commit is contained in:
Awilum
2019-08-20 12:52:28 +03:00
parent ff974e109b
commit f3568ecfa4

View File

@@ -486,13 +486,14 @@ class Entries
* Read entry
*
* @param string $id Entry ID
* @param bool $raw Return raw or decoded content
*
* @return bool|array Array of file path, decoded file data and file parser,
* false on failure.
*
* @access public
*/
public function read(string $id, $raw = false)
public function read(string $id, bool $raw = false)
{
foreach (Parser::$parsers as $parser) {
if (Filesystem::has(PATH['entries'] . '/' . $id . '/' . 'entry' . '.' . $parser['ext'])) {