Set the default section to null and added conditional back

This commit is contained in:
drgomesp 2013-02-14 13:52:20 -02:00
parent 301abdc1e7
commit 1f6b7b4788

View File

@ -61,7 +61,7 @@ class ApiDoc
*
* @var string
*/
private $section = 'none';
private $section = null;
/**
* Extended documentation.
@ -330,7 +330,10 @@ class ApiDoc
$data['statusCodes'] = $statusCodes;
}
$data['section'] = $this->section;
if($section = $this->section) {
$data['section'] = $section;
}
$data['https'] = $this->https;
return $data;