src/Chalk.php
public static function getResetSequence($style = null)
    {
        $resetSequence = Style::getResetSequence();

        if (!is_null($style)) {
            switch (true) {
                case in_array($style, Color::enum()):
                    $resetSequence = Color::getResetSequence();
                    break;
                case in_array($style, BackgroundColor::enum()):
                    $resetSequence = BackgroundColor::getResetSequence();
                    break;
            }
        }

        return $resetSequence;
    }
public static function getResetSequence($style = null)
    {
        $resetSequence = Style::getResetSequence();

        if (!is_null($style)) {
            switch (true) {
                case in_array($style, Color::enum()):
                    $resetSequence = Color::getResetSequence();
                    break;
                case in_array($style, BackgroundColor::enum()):
                    $resetSequence = BackgroundColor::getResetSequence();
                    break;
            }
        }

        return $resetSequence;
    }
public static function getResetSequence ( $ style = null ) { $ resetSequence = Style :: getResetSequence ( ) ; if ( ! is_null ( $ style ) ) { switch ( true ) { case in_array ( $ style , Color :: enum ( ) ) : $ resetSequence = Color :: getResetSequence ( ) ; break ; case in_array ( $ style , BackgroundColor :: enum ( ) ) : $ resetSequence = BackgroundColor :: getResetSequence ( ) ; break ; } } return $ resetSequence ; }
Returns the reset sequence for the given style

@param int|null $style

@return string
Returns the reset sequence for the given style