From b7d39e743c42b346bc59774f1800869a0b2b7e20 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 17 Jul 2016 10:42:04 +0200 Subject: [PATCH] Add missing method documentation --- .../metacode/converter/TableMetacodeConverter.class.php | 5 +++++ .../install/files/lib/system/tagging/TagCloud.class.php | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php index 05b8cf84b3..faceffd8af 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php @@ -62,6 +62,11 @@ class TableMetacodeConverter extends AbstractMetacodeConverter { return $element; } + /** + * Processes the rows of the table. + * + * @param \DOMElement $row + */ protected function handleRow(\DOMElement $row) { // get all table columns $cols = []; diff --git a/wcfsetup/install/files/lib/system/tagging/TagCloud.class.php b/wcfsetup/install/files/lib/system/tagging/TagCloud.class.php index d93082d089..807256017d 100644 --- a/wcfsetup/install/files/lib/system/tagging/TagCloud.class.php +++ b/wcfsetup/install/files/lib/system/tagging/TagCloud.class.php @@ -102,6 +102,12 @@ class TagCloud { return $tags; } + /** + * Calculates the weight of the tag based on the given tag count. + * + * @param integer $counter + * @return float|int + */ private function calculateWeight($counter) { if ($this->maxCounter == $this->minCounter) { return 2; -- 2.20.1