summaryrefslogtreecommitdiff
path: root/core/classes/Benchmark.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/classes/Benchmark.php')
-rw-r--r--core/classes/Benchmark.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/classes/Benchmark.php b/core/classes/Benchmark.php
index 8aa040d..a8b4145 100644
--- a/core/classes/Benchmark.php
+++ b/core/classes/Benchmark.php
@@ -52,7 +52,8 @@ class Benchmark {
/** add_timespot
* ---
* add new timespot
- * @param $key : label of timespot
+ *
+ * @param string $key : label of timespot
*/
public static function add_spot(string $key)
{
@@ -62,7 +63,10 @@ class Benchmark {
/** exist
+ * ---
* checks if a benchmark spot with label $key exists
+ *
+ * @param string $key : label of timespot
*/
public static function exist(string $key) : bool
{
@@ -71,7 +75,8 @@ class Benchmark {
/** desableReport
- * (Self-explanatory)
+ * ---
+ * desables report exporting
*/
public static function disableReport()
{
@@ -84,7 +89,7 @@ class Benchmark {
* renders performance report
* as html comment at the end of webpage in various modes
*
- * @param $mode (int): report format id
+ * @param int $mode: report format id
* ... default: BENCH_REPORT_COMMENT (5) = report as html comment;
* ... for more report-formats check the BENCH_REPORT_* defines
*/
@@ -198,9 +203,9 @@ class Benchmark {
$output .= $suffix;
- }
- return $output;
+ } else { return; }
+ return $output;
}
}