original_string: public static function image($src, $alt = null, $attribs = array())
      {
          $attribs = array_merge(array('src'=>$src), $attribs);
          if ($alt) {
              $attribs['alt'] = htmlentities($alt);
          }
          
          return self::tag('img', null, $attribs);
      }
code: public static function image($src, $alt = null, $attribs = array())
      {
          $attribs = array_merge(array('src'=>$src), $attribs);
          if ($alt) {
              $attribs['alt'] = htmlentities($alt);
          }
          
          return self::tag('img', null, $attribs);
      }
code_tokens: public static function image ( $ src , $ alt = null , $ attribs = array ( ) ) { $ attribs = array_merge ( array ( 'src' => $ src ) , $ attribs ) ; if ( $ alt ) { $ attribs [ 'alt' ] = htmlentities ( $ alt ) ; } return self :: tag ( 'img' , null , $ attribs ) ; }
docstring: Generate an img tag
  @param string $src
  @param string $alt
  @param array $attribs
  @return string
docstring_tokens: Generate an img tag