From c36a0eabdb87afc553039e54e0a3e15ac3a77642 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sun, 17 Feb 2019 10:34:48 +0100 Subject: [PATCH] fixing reset() --- src/Util/Profiler.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Util/Profiler.php b/src/Util/Profiler.php index 9d04a6498a..a3f889380e 100644 --- a/src/Util/Profiler.php +++ b/src/Util/Profiler.php @@ -84,19 +84,11 @@ class Profiler implements ContainerInterface /** * Resets the performance and callstack profiling - * - * @param bool $performance If true, reset the performance (Default true) - * @param bool $callstack If true, reset the callstack (Default true) */ - public function reset($performance = true, $callstack = true) + public function reset() { - if ($performance) { - $this->resetPerformance(); - } - - if ($callstack) { - $this->resetCallstack(); - } + $this->resetPerformance(); + $this->resetCallstack(); } /** -- 2.39.5