src/Console/Application.php
Avoid using static access to class '\Tapestry\Version' in method '__construct'. Open
Open
parent::__construct('Tapestry', Version::build());
- Read upRead up
- Exclude checks
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
Open
$this->getName(), $this->getVersion(), $this->tapestry['environment']);
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$this->getName(), $this->getVersion(), $this->tapestry['environment']);
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
$this->getName(), $this->getVersion(), $this->tapestry['environment']);
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 16 Open
Open
$this->getName(), $this->getVersion(), $this->tapestry['environment']);
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
Open
return sprintf('<info>%s</info> version <comment>%s</comment>, environment <comment>%s</comment>',
- Exclude checks