jfx/ci-report

View on GitHub
src/Controller/DocumentApiController.php

Summary

Maintainability
A
1 hr
Test Coverage

Method postZipDocumentAction has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function postZipDocumentAction(Project $project, Campaign $campaign, Suite $suite, Request $request)
    {
        if ($this->isInvalidToken($request, $project->getToken())) {
            return $this->getInvalidTokenView();
        }
Severity: Minor
Found in src/Controller/DocumentApiController.php - About 1 hr to fix

    Line exceeds 120 characters; contains 318 characters
    Open

         *     description="Example: </br><pre><code>curl https://www.ci-report.io/api/projects/project-one/campaigns/1/suites/1/doc/zip -H &quot;X-CIR-TKN: 1f4ffb19e4b9-02278af07b7d-4e370a76f001&quot; -X POST -F 'zipfile=@/path/to/myfile.zip'</code></pre><p>(@ symbol is mandatory at the beginning of the file path)</p>",

    Line exceeds 120 characters; contains 222 characters
    Open

         *     description="Example: </br><pre><code>curl https://www.ci-report.io/api/projects/project-one/campaigns/1/suites/1/doc/zip -H &quot;X-CIR-TKN: 1f4ffb19e4b9-02278af07b7d-4e370a76f001&quot; -X DELETE</code></pre>",

    There are no issues that match your filters.

    Category
    Status