]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/output/debug/console/class_DebugConsoleOutput.php
Rewrites:
[core.git] / framework / main / classes / output / debug / console / class_DebugConsoleOutput.php
index 7875e00127c42a51c701dfe8dba05ea36e89f6dc..8f7d19f6641b007d10752717bd6cf1b5f4f26ad1 100644 (file)
@@ -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
+               }
        }
 
        /**