original_string: public function renderImg($message, $extension = null, $size = null, $padding = null, $attribs = array())
      {
          if (isset($extension)) {
              if (is_array($extension)) {
                  $attribs = $extension;
                  $extension = null;
              } elseif (isset($size)) {
                  if (is_array($size)) {
                      $attribs = $size;
                      $size = null;
                  } elseif (isset($padding) && is_array($padding)) {
                      $attribs = $padding;
                      $padding = null;
                  }
              }
          }
  
          return $this->renderer->render(self::IMG_TEMPLATE, array(
              'src'       => $this->assembleRoute($message, $extension, $size, $padding),
              'attribs'   => $attribs
          ));
      }
code: public function renderImg($message, $extension = null, $size = null, $padding = null, $attribs = array())
      {
          if (isset($extension)) {
              if (is_array($extension)) {
                  $attribs = $extension;
                  $extension = null;
              } elseif (isset($size)) {
                  if (is_array($size)) {
                      $attribs = $size;
                      $size = null;
                  } elseif (isset($padding) && is_array($padding)) {
                      $attribs = $padding;
                      $padding = null;
                  }
              }
          }
  
          return $this->renderer->render(self::IMG_TEMPLATE, array(
              'src'       => $this->assembleRoute($message, $extension, $size, $padding),
              'attribs'   => $attribs
          ));
      }
code_tokens: public function renderImg ( $ message , $ extension = null , $ size = null , $ padding = null , $ attribs = array ( ) ) { if ( isset ( $ extension ) ) { if ( is_array ( $ extension ) ) { $ attribs = $ extension ; $ extension = null ; } elseif ( isset ( $ size ) ) { if ( is_array ( $ size ) ) { $ attribs = $ size ; $ size = null ; } elseif ( isset ( $ padding ) && is_array ( $ padding ) ) { $ attribs = $ padding ; $ padding = null ; } } } return $ this -> renderer -> render ( self :: IMG_TEMPLATE , array ( 'src' => $ this -> assembleRoute ( $ message , $ extension , $ size , $ padding ) , 'attribs' => $ attribs ) ) ; }
docstring: Renders a img tag pointing defined QR code
  @param string $message
  @param string|null $extension
  @param int|null $size
  @param null $padding
  @param array $attribs
  @return string
docstring_tokens: Renders a img tag pointing defined QR code