From a3dc1f0f55003ca2fb325ed2e3f974094f6cad2e Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Thu, 25 May 2023 09:30:37 +0300 Subject: break form scripts in parts; first pdf example --- core/classes/Benchmark.php | 15 ++++++++++----- core/classes/Cart.php | 4 +++- core/classes/Registry.php | 17 ++++++++++------- core/classes/Route.php | 8 ++++---- 4 files changed, 27 insertions(+), 17 deletions(-) (limited to 'core') 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; } } diff --git a/core/classes/Cart.php b/core/classes/Cart.php index 4e6f585..f90eab6 100644 --- a/core/classes/Cart.php +++ b/core/classes/Cart.php @@ -1,5 +1,7 @@