original_string: public function hasClass($className)
      {
          if(strlen($className) < 1)
          {
              throw new HTMLTagException("Class name is empty");
          }
  
          if($this->hasAttribute("class"))
          {
              $classes = $this->getClasses();
  
              foreach(explode(" ",$classes) as $class) {
                  if(strtolower($class) == strtolower($className)) {
                      return true;    // We found it.
                  }
              }
  
          }
  
          return false;
      }
code: public function hasClass($className)
      {
          if(strlen($className) < 1)
          {
              throw new HTMLTagException("Class name is empty");
          }
  
          if($this->hasAttribute("class"))
          {
              $classes = $this->getClasses();
  
              foreach(explode(" ",$classes) as $class) {
                  if(strtolower($class) == strtolower($className)) {
                      return true;    // We found it.
                  }
              }
  
          }
  
          return false;
      }
code_tokens: public function hasClass ( $ className ) { if ( strlen ( $ className ) < 1 ) { throw new HTMLTagException ( "Class name is empty" ) ; } if ( $ this -> hasAttribute ( "class" ) ) { $ classes = $ this -> getClasses ( ) ; foreach ( explode ( " " , $ classes ) as $ class ) { if ( strtolower ( $ class ) == strtolower ( $ className ) ) { return true ; // We found it. } } } return false ; }
docstring: Checks to see if the given class name is inside of the class attribute
  @param   string  $className
  @return  bool
  @throws  HTMLTagException
docstring_tokens: Checks to see if the given class name is inside of the class attribute