tapestry-cloud/tapestry

View on GitHub
src/Console/Application.php

Summary

Maintainability
A
0 mins
Test Coverage
A
91%

Avoid using static access to class '\Tapestry\Version' in method '__construct'.
Open

        parent::__construct('Tapestry', Version::build());
Severity: Minor
Found in src/Console/Application.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Only one argument is allowed per line in a multi-line function call
Open

                $this->getName(), $this->getVersion(), $this->tapestry['environment']);
Severity: Minor
Found in src/Console/Application.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

                $this->getName(), $this->getVersion(), $this->tapestry['environment']);
Severity: Minor
Found in src/Console/Application.php by phpcodesniffer

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                $this->getName(), $this->getVersion(), $this->tapestry['environment']);
Severity: Minor
Found in src/Console/Application.php by phpcodesniffer

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                $this->getName(), $this->getVersion(), $this->tapestry['environment']);
Severity: Minor
Found in src/Console/Application.php by phpcodesniffer

Opening parenthesis of a multi-line function call must be the last content on the line
Open

            return sprintf('<info>%s</info> version <comment>%s</comment>, environment <comment>%s</comment>',
Severity: Minor
Found in src/Console/Application.php by phpcodesniffer

There are no issues that match your filters.

Category
Status