summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-05-20 23:01:31 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2014-05-20 23:01:31 +0200
commitf168548c334622dbfa567a8f7bb998271195656e (patch)
treeddfbd83a9596835edafabba39f0a4c8f311c6ec8 /inc
parent0bb378687e0397cf4268ea411c65d60e6a51ddc6 (diff)
downloadrpg-f168548c334622dbfa567a8f7bb998271195656e.tar.gz
rpg-f168548c334622dbfa567a8f7bb998271195656e.tar.bz2
phpdocs, fallthrough, unused var in common.php
Diffstat (limited to 'inc')
-rw-r--r--inc/common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/common.php b/inc/common.php
index aea6065d0..cd180e29e 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1536,6 +1536,7 @@ function php_to_byte($v) {
/** @noinspection PhpMissingBreakStatementInspection */
case 'M':
$ret *= 1024;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'K':
$ret *= 1024;
break;
@@ -1597,7 +1598,7 @@ function editorinfo($username, $textonly = false) {
/**
* Returns users realname w/o link
*
- * @param string|bool $username or false when currently logged-in user should be used
+ * @param string|null $username or null when currently logged-in user should be used
* @param bool $textonly true returns only plain text, true allows returning html
* @return string html or plain text(not escaped) of formatted user name
*
@@ -1729,7 +1730,6 @@ function license_img($type) {
global $conf;
if(!$conf['license']) return '';
if(!is_array($license[$conf['license']])) return '';
- $lic = $license[$conf['license']];
$try = array();
$try[] = 'lib/images/license/'.$type.'/'.$conf['license'].'.png';
$try[] = 'lib/images/license/'.$type.'/'.$conf['license'].'.gif';