From cf612b52d465466e1cc65c889d28ac775ae05493 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 2 Mar 2023 04:02:57 +0100 Subject: [PATCH] Continued: - renamed output() to outputMessage() --- .../debug/class_DebugMiddleware.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/framework/main/middleware/debug/class_DebugMiddleware.php b/framework/main/middleware/debug/class_DebugMiddleware.php index dae80dbb..eda4d5f9 100644 --- a/framework/main/middleware/debug/class_DebugMiddleware.php +++ b/framework/main/middleware/debug/class_DebugMiddleware.php @@ -122,7 +122,7 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { * @return void * @throws NullPointerException If this->outputInstance is NULL */ - private function output (string $message, bool $stripTags = false) { + private function outputMessage (string $message, bool $stripTags = false) { // Get backtrace //* NOISY-DEBUG: */ printf('[%s:%d]: message=%s,stripTags=%d - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); $backtrace = debug_backtrace(!DEBUG_BACKTRACE_PROVIDE_OBJECT); @@ -198,8 +198,8 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Use debug output handler - //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->output(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); - $this->output(sprintf('TRACE: %s', $message), $stripTags); + //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->outputMessage(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); + $this->outputMessage(sprintf('TRACE: %s', $message), $stripTags); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); @@ -230,8 +230,8 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Use debug output handler - //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->output(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); - $this->output(sprintf('DEBUG: %s', $message), $stripTags); + //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->outputMessage(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); + $this->outputMessage(sprintf('DEBUG: %s', $message), $stripTags); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); @@ -262,8 +262,8 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Use debug output handler - //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->output(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); - $this->output(sprintf('INFO: %s', $message), $stripTags); + //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->outputMessage(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); + $this->outputMessage(sprintf('INFO: %s', $message), $stripTags); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); @@ -294,8 +294,8 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Use debug output handler - //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->output(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); - $this->output(sprintf('WARNING: %s', $message), $stripTags); + //* NOISY-DEBUG: */ printf('[%s:%d]: Invoking this->outputMessage(%s,%d) ...' . PHP_EOL, __METHOD__, __LINE__, $message, intval($stripTags)); + $this->outputMessage(sprintf('WARNING: %s', $message), $stripTags); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); @@ -319,7 +319,7 @@ class DebugMiddleware extends BaseMiddleware implements Registerable { } // Output stub message - $this->output($stubMessage); + $this->outputMessage($stubMessage); // Trace message //* NOISY-DEBUG: */ printf('[%s:%d]: EXIT!' . PHP_EOL, __METHOD__, __LINE__); -- 2.39.5