Add missing method documentation
authorMatthias Schmidt <gravatronics@live.com>
Sun, 17 Jul 2016 08:42:04 +0000 (10:42 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 17 Jul 2016 08:44:35 +0000 (10:44 +0200)
wcfsetup/install/files/lib/system/html/metacode/converter/TableMetacodeConverter.class.php
wcfsetup/install/files/lib/system/tagging/TagCloud.class.php

index 05b8cf84b3a939a774968b2a7ddc67982441719d..faceffd8af7e8bcd200cbce8a89ad87555678d4b 100644 (file)
@@ -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 = [];
index d93082d0897a5436e7779cadc5a322d37b0dea60..807256017d56fc2f18c70b42400509924abf25e8 100644 (file)
@@ -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;