wikimedia/mediawiki-extensions-VisualEditor

View on GitHub
includes/DirectParsoidClient.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

        PageIdentity $page,
        Bcp47Code $targetLanguage,
        string $wikitext,
        bool $bodyOnly,
        ?int $oldid,
Severity: Minor
Found in includes/DirectParsoidClient.php - About 45 mins to fix

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

            PageIdentity $page,
            string $html,
            int $oldid = null,
            string $etag = null,
            Bcp47Code $pageLanguage = null
    Severity: Minor
    Found in includes/DirectParsoidClient.php - About 35 mins to fix

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

              PageIdentity $page, Bcp47Code $targetLanguage, string $html, ?int $oldid, ?string $etag
      Severity: Minor
      Found in includes/DirectParsoidClient.php - About 35 mins to fix

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

                PageIdentity $page,
                ?RevisionRecord $revision = null,
                Bcp47Code $pageLanguage = null,
                bool $stash = false,
                string $flavor = self::FLAVOR_DEFAULT
        Severity: Minor
        Found in includes/DirectParsoidClient.php - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status