X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Foutput%2Fdebug%2Fconsole%2Fclass_DebugConsoleOutput.php;h=7875e00127c42a51c701dfe8dba05ea36e89f6dc;hb=6e64aa2cb0fbd5a3c712a6a15e08399b1120cc67;hp=113428a409b2af933b98191c03d703b8c5a07904;hpb=4f9cf34b521892cb99fae9b21b92787f3d555b74;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 113428a4..7875e001 100644 --- a/framework/main/classes/output/debug/console/class_DebugConsoleOutput.php +++ b/framework/main/classes/output/debug/console/class_DebugConsoleOutput.php @@ -15,7 +15,7 @@ use Org\Mxchange\CoreFramework\Stream\Output\OutputStreamer; * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -71,7 +71,7 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre } // END - if // Are debug times enabled? - if ($this->getConfigInstance()->getConfigEntry('debug_' . FrameworkBootstrap::getRequestTypeFromSystem() . '_output_timings') == 'Y') { + if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('debug_' . FrameworkBootstrap::getRequestTypeFromSystem() . '_output_timings') == 'Y') { // Output it first $output = $this->getPrintableExecutionTime() . $output; } // END - if @@ -101,7 +101,7 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre * @return $data The data (string mostly) to "stream" * @throws UnsupportedOperationException If this method is called */ - public function streamData ($data) { + public function streamData (string $data) { self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); } @@ -124,8 +124,8 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre * @return $status Status of file seek: 0 = success, -1 = failed * @throws UnsupportedOperationException If this method is called */ - public function seek ($offset, $whence = SEEK_SET) { - self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] offset=' . $offset . ',whence=' . $whence); + public function seek (int $offset, int $whence = SEEK_SET) { + self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('DEBUG-CONSOLE-OUTPUT: offset=' . $offset . ',whence=' . $whence); throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); }