summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-20 14:10:24 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-20 14:10:24 +0100
commit74160ca1dea24b237ff3e956d19a420a1593b957 (patch)
treeebfb1385c5e0abd759454a1c262d3f7b1875677e /inc/common.php
parentc9ec6231967652cf58f7840063ed94a26e6d8b37 (diff)
downloadrpg-74160ca1dea24b237ff3e956d19a420a1593b957.tar.gz
rpg-74160ca1dea24b237ff3e956d19a420a1593b957.tar.bz2
PHPDocs missing breaks, removed unused var in common.php
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/inc/common.php b/inc/common.php
index 32771285b..4682bedf9 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1140,7 +1140,6 @@ function saveWikiText($id, $text, $summary, $minor = false) {
* @author Andreas Gohr <andi@splitbrain.org>
*/
function saveOldRevision($id) {
- global $conf;
$oldf = wikiFN($id);
if(!@file_exists($oldf)) return '';
$date = filemtime($oldf);
@@ -1230,8 +1229,9 @@ function getGoogleQuery() {
/**
* Return the human readable size of a file
*
- * @param int $size A file size
- * @param int $dec A number of decimal places
+ * @param int $size A file size
+ * @param int $dec A number of decimal places
+ * @return string human readable size
* @author Martin Benjamin <b.martin@cybernet.ch>
* @author Aidan Lister <aidan@php.net>
* @version 1.0.0
@@ -1362,12 +1362,16 @@ function php_to_byte($v) {
$l = substr($v, -1);
$ret = substr($v, 0, -1);
switch(strtoupper($l)) {
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'P':
$ret *= 1024;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'T':
$ret *= 1024;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'G':
$ret *= 1024;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'M':
$ret *= 1024;
case 'K':