e107inc/e107

View on GitHub
e107_plugins/forum/shortcodes/batch/view_shortcodes.php

Summary

Maintainability
A
2 hrs
Test Coverage
F
58%

Avoid too many return statements within this method.
Open

                return '';
Severity: Major
Found in e107_plugins/forum/shortcodes/batch/view_shortcodes.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return varset($rankInfo[$parm], '');
    Severity: Major
    Found in e107_plugins/forum/shortcodes/batch/view_shortcodes.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return "<div class='spacer'>" . IMAGE_rank_moderator_image . '</div>';
      Severity: Major
      Found in e107_plugins/forum/shortcodes/batch/view_shortcodes.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $text;
        Severity: Major
        Found in e107_plugins/forum/shortcodes/batch/view_shortcodes.php - About 30 mins to fix

          Call to deprecated function \plugin_forum_view_shortcodes::sc_post() defined at /code/e107_plugins/forum/shortcodes/batch/view_shortcodes.php:374
          Open

                  return $this->sc_post($parm = null);

          Argument 3 (row) is null but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
          Open

                      $reportURL = e107::url('forum', 'post', null, array('query' => $qry));

          Argument 3 (row) is null but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
          Open

                          $url = e107::url('forum', 'post', null, array('query' => $urlParms));; // ."?f=rp&amp;id=".$thread->threadInfo['thread_id']."&amp;post=".$thread->threadInfo['thread_id'];

          Argument 3 (row) is null but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
          Open

                      $editURL = e107::url('forum', 'post', null, array('query' => $qry));

          Argument 3 (default) is false but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
          Open

                  $this->defaultImgAttachSize = e107::pref('forum', 'maxwidth', false); // don't resize here if set to 0.

          Saw an @param annotation for this, but it was not found in the param list of function sc_post_url(mixed $parm = null)
          Open

               * @param $this- >param - dynamic control of shortcode via menu configuration.

          Argument 2 (options) is 'w=0&x=1' but \e_parse::thumbUrl() takes array defined at /code/e107_handlers/e_parse_class.php:2531
          Open

                                          $full = $tp->thumbUrl($baseDir . $file, 'w=0&x=1', true);

          Variable $options was undeclared, but array fields are being added to it.
          Open

                      $options[] = " <a class='dropdown-item' href='" . $ntUrl . "'>" . LAN_FORUM_2005 . "</a>";

          When fetching an array index from a value of type string, found an array index of type 'format', but expected the index to be of type int
          Open

                  $mode = empty($parm['format']) ? 'forum' : $parm['format'];

          Argument 2 (options) is false but \e_parse::toGlyph() takes array|string defined at /code/e107_handlers/e_parse_class.php:3973
          Open

                                      $saveicon = e107::getParser()->toGlyph($saveicon, false);

          When fetching an array index from a value of type string, found an array index of type 'format', but expected the index to be of type int
          Open

                  $mode = empty($parm['format']) ? 'forum' : $parm['format'];

          Argument 3 (row) is null but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
          Open

                      $quoteURL = e107::url('forum', 'post', null, array('query' => $qry));

          Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
          Open

                  $post = $tp->text_truncate($post, varset($this->param['nfp_characters'], 120), varset($this->param['nfp_postfix'], '...'));

          Comment declares @param $this multiple times
          Open

              function sc_post_url($parm = null)

          There are no issues that match your filters.

          Category
          Status