diff --git a/Swat/SwatActionItem.php b/Swat/SwatActionItem.php index 536279ec..e2346a7f 100644 --- a/Swat/SwatActionItem.php +++ b/Swat/SwatActionItem.php @@ -143,7 +143,7 @@ public function getHtmlHeadEntrySet() */ public function getAvailableHtmlHeadEntrySet() { - $set = parent::geAvailabletHtmlHeadEntrySet(); + $set = parent::getAvailableHtmlHeadEntrySet(); if ($this->widget !== null) { $set->addEntrySet($this->widget->getAvailableHtmlHeadEntrySet()); diff --git a/Swat/SwatButton.php b/Swat/SwatButton.php index 398d5e97..be29848a 100644 --- a/Swat/SwatButton.php +++ b/Swat/SwatButton.php @@ -324,7 +324,7 @@ protected function getJavaScriptClass() /** * Gets the inline JavaScript required for this control. * - * @return stirng the inline JavaScript required for this control + * @return string the inline JavaScript required for this control */ protected function getInlineJavaScript() { diff --git a/Swat/SwatChangeOrder.php b/Swat/SwatChangeOrder.php index 2cf9b4f2..eb513412 100644 --- a/Swat/SwatChangeOrder.php +++ b/Swat/SwatChangeOrder.php @@ -84,7 +84,7 @@ public function display() $list_div->class = 'swat-change-order-list'; $list_div->open(); - $option_div = new SwatHtmltag('div'); + $option_div = new SwatHtmlTag('div'); $option_div->class = 'swat-change-order-item'; foreach ($ordered_options as $option) { diff --git a/Swat/SwatFieldset.php b/Swat/SwatFieldset.php index 3f13a422..d095b463 100644 --- a/Swat/SwatFieldset.php +++ b/Swat/SwatFieldset.php @@ -61,7 +61,7 @@ public function __construct($id = null) * * Implements the {SwatTitleable::getTitle()} interface. * - * @return the title of this fieldset + * @return string the title of this fieldset */ public function getTitle() { diff --git a/Swat/SwatForm.php b/Swat/SwatForm.php index 7b94940a..8b866601 100644 --- a/Swat/SwatForm.php +++ b/Swat/SwatForm.php @@ -319,8 +319,6 @@ public function display() * * This form is only marked as processed if it was submitted by the user. * - * @return true if this form was actually submitted, false otherwise - * * @see SwatContainer::process() */ public function process() diff --git a/Swat/SwatHtmlHeadEntry.php b/Swat/SwatHtmlHeadEntry.php index 419dea32..77b0594c 100644 --- a/Swat/SwatHtmlHeadEntry.php +++ b/Swat/SwatHtmlHeadEntry.php @@ -103,7 +103,7 @@ public function getType() */ public function getIECondition() { - return $this->ie_conditional; + return $this->ie_condition; } /** diff --git a/Swat/SwatInputCell.php b/Swat/SwatInputCell.php index 5cf3e597..7d3a429f 100644 --- a/Swat/SwatInputCell.php +++ b/Swat/SwatInputCell.php @@ -428,8 +428,8 @@ public function copy($id_suffix = '') $copy_clone = $clone->copy($id_suffix); $copy_clone->parent = $copy; $copy->clones[$replicator_id] = $copy_clone; - if ($copy_child->id !== null) { - $copy->children_by_id[$copy_child->id] = $copy_child; + if ($copy_clone->id !== null) { + $copy->children_by_id[$copy_clone->id] = $copy_clone; } $clone->widgets[$replicator_id] = []; diff --git a/Swat/SwatListEntry.php b/Swat/SwatListEntry.php index e1e53e53..a13dbd90 100644 --- a/Swat/SwatListEntry.php +++ b/Swat/SwatListEntry.php @@ -256,7 +256,7 @@ public function setState($values) * For list entry, this is a delimiter separated string containing the * elements of {@link SwatListEntry::$values}. * - * @param array $value the value to format for display + * @param string $value the value to format for display * * @return string the values displayed in the XHTML input */ diff --git a/Swat/SwatRadioNoteBook.php b/Swat/SwatRadioNoteBook.php index bc2deb53..d7804ac5 100644 --- a/Swat/SwatRadioNoteBook.php +++ b/Swat/SwatRadioNoteBook.php @@ -219,10 +219,9 @@ public function printWidgetTree() { echo get_class($this), ' ', $this->id; - $children = $this->getChildren(); - if (count($children) > 0) { + if (count($this->children) > 0) { echo '