wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/includes/RecentChanges/ChangeLineFormatter.php

Summary

Maintainability
C
1 day
Test Coverage

File ChangeLineFormatter.php has 288 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

declare( strict_types = 1 );

namespace Wikibase\Client\RecentChanges;
Severity: Minor
Found in client/includes/RecentChanges/ChangeLineFormatter.php - About 2 hrs to fix

    ChangeLineFormatter has 22 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ChangeLineFormatter {
    
        /**
         * @var RepoLinker
         */
    Severity: Minor
    Found in client/includes/RecentChanges/ChangeLineFormatter.php - About 2 hrs to fix

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

              array &$data,
              ExternalChange $externalChange,
              Title $title,
              int $count,
              Language $lang,
      Severity: Minor
      Found in client/includes/RecentChanges/ChangeLineFormatter.php - About 45 mins to fix

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

                ExternalChange $externalChange,
                Title $title,
                int $count,
                string $flag,
                Language $lang,
        Severity: Minor
        Found in client/includes/RecentChanges/ChangeLineFormatter.php - About 45 mins to fix

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

                  array &$data,
                  ExternalChange $externalChange,
                  Title $title,
                  int $count,
                  Language $lang,
          Severity: Minor
          Found in client/includes/RecentChanges/ChangeLineFormatter.php - About 45 mins to fix

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

                    array &$data,
                    ExternalChange $externalChange,
                    Title $title,
                    Language $lang,
                    User $user
            Severity: Minor
            Found in client/includes/RecentChanges/ChangeLineFormatter.php - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status