wikimedia/mediawiki-core

View on GitHub
includes/CommentFormatter/CommentFormatter.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method formatInternal has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    private function formatInternal( $comment, $enableSectionLinks, $useBlock, $useParentheses,
        $selfLinkTarget = null, $samePage = false, $wikiId = false
Severity: Major
Found in includes/CommentFormatter/CommentFormatter.php - About 50 mins to fix

    Method formatItemsInternal has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function formatItemsInternal( $items, $selfLinkTarget = null,
            $samePage = null, $wikiId = null, $enableSectionLinks = null,
            $useBlock = null, $useParentheses = null
    Severity: Major
    Found in includes/CommentFormatter/CommentFormatter.php - About 50 mins to fix

      Method formatRevisions has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              $revisions,
              Authority $authority,
              $samePage = false,
              $isPublic = false,
              $useParentheses = true,
      Severity: Minor
      Found in includes/CommentFormatter/CommentFormatter.php - About 45 mins to fix

        Method preprocessRevComment has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                CommentParser $parser,
                Authority $authority,
                RevisionRecord $revRecord,
                $samePage = false,
                $isPublic = false,
        Severity: Minor
        Found in includes/CommentFormatter/CommentFormatter.php - About 45 mins to fix

          Method formatRevision has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  RevisionRecord $revision,
                  Authority $authority,
                  $samePage = false,
                  $isPublic = false,
                  $useParentheses = true
          Severity: Minor
          Found in includes/CommentFormatter/CommentFormatter.php - About 35 mins to fix

            Method formatBlock has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public function formatBlock( string $comment, LinkTarget $selfLinkTarget = null,
                    $samePage = false, $wikiId = false, $useParentheses = true
            Severity: Minor
            Found in includes/CommentFormatter/CommentFormatter.php - About 35 mins to fix

              Method formatStringsAsBlock has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public function formatStringsAsBlock( $strings, LinkTarget $selfLinkTarget = null,
                      $samePage = false, $wikiId = false, $useParentheses = true
              Severity: Minor
              Found in includes/CommentFormatter/CommentFormatter.php - About 35 mins to fix

                There are no issues that match your filters.

                Category
                Status