projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c12e1e4
)
Add missing method documentation
author
Matthias Schmidt
<gravatronics@live.com>
Sun, 17 Jul 2016 08:42:04 +0000
(10:42 +0200)
committer
Matthias 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
patch
|
blob
|
blame
|
history
wcfsetup/install/files/lib/system/tagging/TagCloud.class.php
patch
|
blob
|
blame
|
history
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 05b8cf84b3a939a774968b2a7ddc67982441719d..faceffd8af7e8bcd200cbce8a89ad87555678d4b 100644
(file)
--- 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 d93082d0897a5436e7779cadc5a322d37b0dea60..807256017d56fc2f18c70b42400509924abf25e8 100644
(file)
--- 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;