]> git.mxchange.org Git - friendica.git/commitdiff
fixing reset()
authorPhilipp Holzer <admin@philipp.info>
Sun, 17 Feb 2019 09:34:48 +0000 (10:34 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sun, 17 Feb 2019 09:34:48 +0000 (10:34 +0100)
src/Util/Profiler.php

index 9d04a6498a98a63f43d5a3b948d09c54d04ff90e..a3f889380eeca5bd15c6347dc7717fcc249f2639 100644 (file)
@@ -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();
        }
 
        /**