original_string: public function getHTMLStars() {
  
          $treshold_score = $this->seo_score - 2 < 0 ? 0 : $this->seo_score - 2;
  
          $num_stars   = intval(ceil($treshold_score) / 2);
  
          $num_nostars = 5 - $num_stars;
  
          $html = '<div id="fivestar-widget">';
  
          for ($i = 1; $i <= $num_stars; $i++) {
              $html .= '<div class="star on"></div>';
          }
          if ($treshold_score % 2) {
              $html .= '<div class="star on-half"></div>';
              $num_nostars--;
          }
          for ($i = 1; $i <= $num_nostars; $i++) {
              $html .= '<div class="star"></div>';
          }
  
  
          $html .= '</div>';
          return $html;
      }
code: public function getHTMLStars() {
  
          $treshold_score = $this->seo_score - 2 < 0 ? 0 : $this->seo_score - 2;
  
          $num_stars   = intval(ceil($treshold_score) / 2);
  
          $num_nostars = 5 - $num_stars;
  
          $html = '<div id="fivestar-widget">';
  
          for ($i = 1; $i <= $num_stars; $i++) {
              $html .= '<div class="star on"></div>';
          }
          if ($treshold_score % 2) {
              $html .= '<div class="star on-half"></div>';
              $num_nostars--;
          }
          for ($i = 1; $i <= $num_nostars; $i++) {
              $html .= '<div class="star"></div>';
          }
  
  
          $html .= '</div>';
          return $html;
      }
code_tokens: public function getHTMLStars ( ) { $ treshold_score = $ this -> seo_score - 2 < 0 ? 0 : $ this -> seo_score - 2 ; $ num_stars = intval ( ceil ( $ treshold_score ) / 2 ) ; $ num_nostars = 5 - $ num_stars ; $ html = '<div id="fivestar-widget">' ; for ( $ i = 1 ; $ i <= $ num_stars ; $ i ++ ) { $ html .= '<div class="star on"></div>' ; } if ( $ treshold_score % 2 ) { $ html .= '<div class="star on-half"></div>' ; $ num_nostars -- ; } for ( $ i = 1 ; $ i <= $ num_nostars ; $ i ++ ) { $ html .= '<div class="star"></div>' ; } $ html .= '</div>' ; return $ html ; }
docstring: getHTMLStars.
  Get html of stars rating in CMS, maximum score is 12
  threshold 2
  
  @param none
  @return String $html
docstring_tokens: getHTMLStars . Get html of stars rating in CMS maximum score is 12 threshold 2