original_string: public function htmlAttributes()
      {
          if ($this->direction() === 'rtl' || $this->direction() !== $this->script()->direction()) {
              return 'lang="' . $this->languageTag() . '" dir="' . $this->direction() . '"';
          } else {
              return 'lang="' . $this->languageTag() . '"';
          }
      }
code: public function htmlAttributes()
      {
          if ($this->direction() === 'rtl' || $this->direction() !== $this->script()->direction()) {
              return 'lang="' . $this->languageTag() . '" dir="' . $this->direction() . '"';
          } else {
              return 'lang="' . $this->languageTag() . '"';
          }
      }
code_tokens: public function htmlAttributes ( ) { if ( $ this -> direction ( ) === 'rtl' || $ this -> direction ( ) !== $ this -> script ( ) -> direction ( ) ) { return 'lang="' . $ this -> languageTag ( ) . '" dir="' . $ this -> direction ( ) . '"' ; } else { return 'lang="' . $ this -> languageTag ( ) . '"' ; } }
docstring: Markup for an HTML element
  
  @return string e.g. lang="ar" dir="rtl"
docstring_tokens: Markup for an HTML element