fixing reset()

This commit is contained in:
Philipp Holzer 2019-02-17 10:34:48 +01:00
부모 a043848904
커밋 c36a0eabdb
No known key found for this signature in database
GPG 키 ID: 517BE60E2CE5C8A5
1개의 변경된 파일3개의 추가작업 그리고 11개의 파일을 삭제

파일 보기

@ -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();
}
/**