original_string: protected function methodsToHtml($methods)
      {
  
          $html = '<style type="text/css">
              li{background-color:#c8c8d4;}
  
              h1{
              font-size:1.0em;
              padding:3px 0 3px 10px;
              color:white;
              background-color:#8181bd;
              }
  
              pre{
                  color:#1d1d4d;
              }
              </style><ol>';
          
          //sorting method alphabetically
          ksort($methods);
          foreach ($methods as $method => $comments) {
              $html .= '<li><h1>$server->' . $method . ';</h1><pre>' . str_repeat("&nbsp;", 4) . $comments . '</pre></li>';
          }
  
          $html .= '</ol>';
  
          return $html;
      }
code: protected function methodsToHtml($methods)
      {
  
          $html = '<style type="text/css">
              li{background-color:#c8c8d4;}
  
              h1{
              font-size:1.0em;
              padding:3px 0 3px 10px;
              color:white;
              background-color:#8181bd;
              }
  
              pre{
                  color:#1d1d4d;
              }
              </style><ol>';
          
          //sorting method alphabetically
          ksort($methods);
          foreach ($methods as $method => $comments) {
              $html .= '<li><h1>$server->' . $method . ';</h1><pre>' . str_repeat("&nbsp;", 4) . $comments . '</pre></li>';
          }
  
          $html .= '</ol>';
  
          return $html;
      }
code_tokens: protected function methodsToHtml ( $ methods ) { $ html = '<style type="text/css">
              li{background-color:#c8c8d4;}
  
              h1{
              font-size:1.0em;
              padding:3px 0 3px 10px;
              color:white;
              background-color:#8181bd;
              }
  
              pre{
                  color:#1d1d4d;
              }
              </style><ol>' ; //sorting method alphabetically ksort ( $ methods ) ; foreach ( $ methods as $ method => $ comments ) { $ html .= '<li><h1>$server->' . $ method . ';</h1><pre>' . str_repeat ( "&nbsp;" , 4 ) . $ comments . '</pre></li>' ; } $ html .= '</ol>' ; return $ html ; }
docstring: Coverts the methods served into an HTML string
  @param $arr
  @return string HTML
docstring_tokens: Coverts the methods served into an HTML string