Added check for deprecated setting

Avoids adding the method as deprecated if the value of the deprecated setting is false
This commit is contained in:
Ismael Ambrosi 2013-05-08 11:00:44 -03:00
parent 80b5162c83
commit 0c2cad6f0a

View File

@ -20,7 +20,7 @@ class MarkdownFormatter extends AbstractFormatter
{
$markdown = sprintf("### `%s` %s ###\n", $data['method'], $data['uri']);
if(isset($data['deprecated'])) {
if(isset($data['deprecated']) && false !== $data['deprecated']) {
$markdown .= "### This method is deprecated ###";
$markdown .= "\n\n";
}