Dhii/invoker-abstract

View on GitHub
src/CommandAwareTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 5 total issues

Avoid using short method names like CommandAwareTrait::__(). The configured minimum method name length is 3.
Invalid

abstract protected function __($string, $args = [], $context = null);
Severity: Minor
Found in src/CommandAwareTrait.php by phpmd

The method _setCommand is not named in camelCase.
Invalid

protected function _setCommand($command)
{
if ($command !== null && !is_string($command) && !($command instanceof Stringable)) {
throw $this->_createInvalidArgumentException($this->__('Invalid command'), null, null, $command);
}
Severity: Minor
Found in src/CommandAwareTrait.php by phpmd

The method _getCommand is not named in camelCase.
Invalid

protected function _getCommand()
{
return $this->command;
}
Severity: Minor
Found in src/CommandAwareTrait.php by phpmd

The method __ is not named in camelCase.
Invalid

abstract protected function __($string, $args = [], $context = null);
Severity: Minor
Found in src/CommandAwareTrait.php by phpmd

The method _createInvalidArgumentException is not named in camelCase.
Invalid

abstract protected function _createInvalidArgumentException(
$message = null,
$code = null,
RootException $previous = null,
$argument = null
Severity: Minor
Found in src/CommandAwareTrait.php by phpmd

There are no issues that match your filters.

Category
Status