From b7810861c24318a420d4b1cd0c32f7f4f2cb3d97 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 11 Nov 2019 21:02:36 +0300 Subject: [PATCH] refactor(core): Parser API's refactoring #288 --- flextype/core/Parser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flextype/core/Parser.php b/flextype/core/Parser.php index 53a8d794..ed91e4c9 100644 --- a/flextype/core/Parser.php +++ b/flextype/core/Parser.php @@ -65,7 +65,7 @@ class Parser /** * Dumps a PHP value to a string CONTENT. * - * @param mixed $input Content to parse + * @param mixed $input Content to parse * @param string $parser Parser type [frontmatter, json, yaml] * * @return mixed PHP value converted to a string CONTENT. @@ -74,7 +74,7 @@ class Parser { switch ($parser) { case 'frontmatter': - return Parser::encode($input); + return Frontmatter::encode($input); break; case 'json': @@ -86,7 +86,6 @@ class Parser break; default: - break; } }