Replace tabs with whitespaces

This commit is contained in:
Thomas Gelf 2014-03-09 21:16:56 +01:00
parent 7449f2565a
commit ee01b28646
2 changed files with 10 additions and 10 deletions

View File

@ -77,7 +77,7 @@ class Format
public static function duration($duration)
{
if ($duration === null || $duration === false) {
if ($duration === null || $duration === false) {
return '-';
}
return self::showHourMin($duration);

View File

@ -273,17 +273,17 @@
ns = 59;
nm--;
} else { //negative means recalculate against 1m
ns = (60 - ns - 1);
nm--;
}
} else if (nm <= 0) {
ns = (60 - ns - 1);
nm--;
}
} else if (nm <= 0) {
if (ns == -59) {
ns = 0;
nm--;
ns = 0;
nm--;
} else {
ns--;
}
}
ns--;
}
}
$(el).html(nm + 'm ' + ns + 's');
}
});