From: Jan Schneider Date: Sun, 30 Aug 2009 10:05:22 +0000 (+0200) Subject: phpdoc X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c653382a98a8c0d2131f9793932dc81c821841b2;p=horde.git phpdoc --- 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() {