protected function getSafeValue($code)
    {
        if (is_bool($code)) {
            return $code ? '(bool) true' : '(bool) false';
        }

        if (is_scalar($code)) {
            return $code;
        }

        if (is_array($code)) {
            return print_r($code, true);
        }

        return getType($code);
    }
protected function getSafeValue($code)
    {
        if (is_bool($code)) {
            return $code ? '(bool) true' : '(bool) false';
        }

        if (is_scalar($code)) {
            return $code;
        }

        if (is_array($code)) {
            return print_r($code, true);
        }

        return getType($code);
    }
protected function getSafeValue ( $ code ) { if ( is_bool ( $ code ) ) { return $ code ? '(bool) true' : '(bool) false' ; } if ( is_scalar ( $ code ) ) { return $ code ; } if ( is_array ( $ code ) ) { return print_r ( $ code , true ) ; } return getType ( $ code ) ; }
Takes command's output and makes that into a safe, human-readable string.

@param  mixed  $code The input
@return string The input in safe format
Takes command s output and makes that into a safe human - readable string .