protected function trimQuotes(string $token) : string
    {
        // Trim any quotes
        if (($firstValueChar = mb_substr($token, 0, 1)) === mb_substr($token, -1)) {
            if ($firstValueChar === "'") {
                $token = trim($token, "'");
            } elseif ($firstValueChar === '"') {
                $token = trim($token, '"');
            }
        }

        return $token;
    }
protected function trimQuotes(string $token) : string
    {
        // Trim any quotes
        if (($firstValueChar = mb_substr($token, 0, 1)) === mb_substr($token, -1)) {
            if ($firstValueChar === "'") {
                $token = trim($token, "'");
            } elseif ($firstValueChar === '"') {
                $token = trim($token, '"');
            }
        }

        return $token;
    }
protected function trimQuotes ( string $ token ) : string { // Trim any quotes if ( ( $ firstValueChar = mb_substr ( $ token , 0 , 1 ) ) === mb_substr ( $ token , - 1 ) ) { if ( $ firstValueChar === "'" ) { $ token = trim ( $ token , "'" ) ; } elseif ( $ firstValueChar === '"' ) { $ token = trim ( $ token , '"' ) ; } } return $ token ; }
Trims the outer-most quotes from a token

@param string $token Trims quotes off of a token
@return string The trimmed token
Trims the outer - most quotes from a token