Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
pull/10551/head
Michael Vogel 2021-07-27 15:16:31 +02:00 zatwierdzone przez GitHub
rodzic 8dd21d82f5
commit c03fb998f4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -126,7 +126,6 @@ class Profiler implements ContainerInterface
$callstack = $callstack ?: System::callstack(4, $value == 'rendering' ? 0 : 1); $callstack = $callstack ?: System::callstack(4, $value == 'rendering' ? 0 : 1);
if (!isset($this->performance[$value])) { if (!isset($this->performance[$value])) {
// Prevent ugly E_NOTICE
$this->performance[$value] = 0; $this->performance[$value] = 0;
} }
@ -283,6 +282,7 @@ class Profiler implements ContainerInterface
} }
} }
} }
if (isset($this->callstack["rendering"])) { if (isset($this->callstack["rendering"])) {
$output .= "\nRendering:\n"; $output .= "\nRendering:\n";
foreach ($this->callstack["rendering"] as $func => $time) { foreach ($this->callstack["rendering"] as $func => $time) {