]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions from code review
authorMichael Vogel <icarus@dabo.de>
Tue, 27 Jul 2021 13:16:31 +0000 (15:16 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Jul 2021 13:16:31 +0000 (15:16 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Util/Profiler.php

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