X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Foutput%2Fdebug%2Fconsole%2Fclass_DebugConsoleOutput.php;h=8f7d19f6641b007d10752717bd6cf1b5f4f26ad1;hb=fc83e6b1ac6fe3a5e09a3e4f8bad20fa2240cae4;hp=7875e00127c42a51c701dfe8dba05ea36e89f6dc;hpb=6e64aa2cb0fbd5a3c712a6a15e08399b1120cc67;p=core.git diff --git a/framework/main/classes/output/debug/console/class_DebugConsoleOutput.php b/framework/main/classes/output/debug/console/class_DebugConsoleOutput.php index 7875e001..8f7d19f6 100644 --- a/framework/main/classes/output/debug/console/class_DebugConsoleOutput.php +++ b/framework/main/classes/output/debug/console/class_DebugConsoleOutput.php @@ -63,18 +63,18 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre * @param $stripTags Whether HTML tags shall be stripped out * @return void */ - public final function outputStream ($output, $stripTags = false) { + public final function outputStream (string $output, bool $stripTags = false) { // Strip HTML tags out? if ($stripTags === true) { // Prepare the output without HTML tags $output = trim(html_entity_decode(strip_tags(stripslashes($output)))); - } // END - if + } // Are debug times enabled? if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('debug_' . FrameworkBootstrap::getRequestTypeFromSystem() . '_output_timings') == 'Y') { // Output it first $output = $this->getPrintableExecutionTime() . $output; - } // END - if + } // And print it out... printf('%s%s', str_replace('->', '->', $output), PHP_EOL); @@ -87,11 +87,11 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre * @param $stripTags Whether HTML tags shall be stripped out * @return void */ - public final function output ($outStream = false, $stripTags = false) { + public final function output (string $outStream = '', bool $stripTags = false) { // Empty output will be silently ignored - if ($outStream !== false) { + if (!empty($outStream)) { $this->outputStream($outStream, $stripTags); - } // END - if + } } /**