From c653382a98a8c0d2131f9793932dc81c821841b2 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sun, 30 Aug 2009 12:05:22 +0200 Subject: [PATCH] phpdoc --- framework/Date/lib/Horde/Date/Span.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/framework/Date/lib/Horde/Date/Span.php b/framework/Date/lib/Horde/Date/Span.php index ad5900c82..364a40806 100644 --- a/framework/Date/lib/Horde/Date/Span.php +++ b/framework/Date/lib/Horde/Date/Span.php @@ -21,22 +21,28 @@ class Horde_Date_Span public $end; /** - * Constructor + * Constructor. * - * @param mixed $begin Horde_Date or other format accepted by the Horde_Date constructor - * @param mixed $end Horde_Date or other format accepted by the Horde_Date constructor + * @param mixed $begin Horde_Date or other format accepted by the + * Horde_Date constructor. + * @param mixed $end Horde_Date or other format accepted by the + * Horde_Date constructor. */ public function __construct($begin, $end) { - if (! $begin instanceof Horde_Date) { $begin = new Horde_Date($begin); } - if (! $end instanceof Horde_Date) { $end = new Horde_Date($end); } + if (!($begin instanceof Horde_Date)) { + $begin = new Horde_Date($begin); + } + if (!($end instanceof Horde_Date)) { + $end = new Horde_Date($end); + } $this->begin = $begin; $this->end = $end; } /** - * Return the width of this span in seconds + * Returns the width of this span in seconds. */ public function width() { -- 2.11.0