From 1f6b7b47886009e240bd1a150263c90b28924707 Mon Sep 17 00:00:00 2001 From: drgomesp Date: Thu, 14 Feb 2013 13:52:20 -0200 Subject: [PATCH] Set the default section to null and added conditional back --- Annotation/ApiDoc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Annotation/ApiDoc.php b/Annotation/ApiDoc.php index 6ffe308..84c9486 100644 --- a/Annotation/ApiDoc.php +++ b/Annotation/ApiDoc.php @@ -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;