From 5ac07ff255b096083da8caed230a43f89ef3f3c7 Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 21 Oct 2020 11:00:20 +0530 Subject: [PATCH] Updated --- toolkit/php/logger.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/toolkit/php/logger.php b/toolkit/php/logger.php index 9ee5645..80d7b0b 100644 --- a/toolkit/php/logger.php +++ b/toolkit/php/logger.php @@ -60,18 +60,9 @@ class GH_LOG { * * @param string $str Input String * @param string $color Text Color - * @param boolean $newline Append EOF? * @param [type] $background Background Color */ - public static function log( $str = '', $color = 'normal', $newline = true, $background_color = null ) { - if ( is_bool( $color ) ) { - $newline = $color; - $color = 'normal'; - } elseif ( is_string( $color ) && is_string( $newline ) ) { - $background_color = $newline; - $newline = true; - } - $str = $newline ? $str . self::$eof : $str; + public static function log( $str = '', $color = 'normal', $background_color = null ) { gh_log( self::$color( $str, $background_color ) ); }