tapestry-cloud/tapestry

View on GitHub
src/Modules/Api/Json.php

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method __invoke has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __invoke(Project $project, OutputInterface $output)
    {
        if ($project->get('cmd_options.json') !== true) {
            return true;
        }
Severity: Minor
Found in src/Modules/Api/Json.php - About 1 hr to fix

    Line exceeds 120 characters; contains 121 characters
    Open

            $this->filesystem->dumpFile($project->currentWorkingDirectory.DIRECTORY_SEPARATOR.'db.json', json_encode($json));
    Severity: Minor
    Found in src/Modules/Api/Json.php by phpcodesniffer

    Line exceeds 120 characters; contains 123 characters
    Open

         * Note: This Step should ALWAYS be loaded after the LoadSourceFiles step. This is because it exports $project['files']
    Severity: Minor
    Found in src/Modules/Api/Json.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status