Browse Source

fixing reset()

tags/2019.03^2
Philipp Holzer 6 months ago
parent
commit
c36a0eabdb
No account linked to committer's email address
1 changed files with 3 additions and 11 deletions
  1. 3
    11
      src/Util/Profiler.php

+ 3
- 11
src/Util/Profiler.php View File

@@ -84,19 +84,11 @@ class Profiler implements ContainerInterface
84 84
 
85 85
 	/**
86 86
 	 * Resets the performance and callstack profiling
87
-	 *
88
-	 * @param bool $performance If true, reset the performance (Default true)
89
-	 * @param bool $callstack   If true, reset the callstack (Default true)
90 87
 	 */
91
-	public function reset($performance = true, $callstack = true)
88
+	public function reset()
92 89
 	{
93
-		if ($performance) {
94
-			$this->resetPerformance();
95
-		}
96
-
97
-		if ($callstack) {
98
-			$this->resetCallstack();
99
-		}
90
+		$this->resetPerformance();
91
+		$this->resetCallstack();
100 92
 	}
101 93
 
102 94
 	/**

Loading…
Cancel
Save