mirror of
https://github.com/varunsridharan/actions-toolkit.git
synced 2025-02-22 14:43:07 +08:00
Updated
This commit is contained in:
parent
70b8d96219
commit
5ac07ff255
1 changed files with 1 additions and 10 deletions
|
@ -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 ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue