unexpected T variable error “$s” in?

Hi all, Can anyone see what is wrong with the code below?

if ( $this->get( 'AuthorURI' ) ) { $value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value ); } elseif ( ! $value ) { $value = __( 'Anonymous' ) }
I keep getting an error message: Parse error:syntax error, unexpected variable "$s" in Please some Hero