Dhii/callback-abstract

View on GitHub

Showing 49 of 50 total issues

The method _createInvocationException is not named in camelCase.
Open

    abstract protected function _createInvocationException(
        $message = null,
        $code = null,
        RootException $previous = null,
        callable $callable = null,
Severity: Minor
Found in src/InvokeCallableCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _countIterable is not named in camelCase.
Open

    abstract protected function _countIterable($iterable);
Severity: Minor
Found in src/ValidateParamsCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _getArgs is not named in camelCase.
Open

    protected function _getArgs()
    {
        return !is_null($this->args)
            ? $this->args
            : array();
Severity: Minor
Found in src/ArgsAwareTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _normalizeMethodCallable is not named in camelCase.
Open

    protected function _normalizeMethodCallable($callable)
    {
        if (is_object($callable) && is_callable($callable)) {
            return array($callable, '__invoke');
        }

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method __ is not named in camelCase.
Open

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

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _normalizeCallable is not named in camelCase.
Open

    public function _normalizeCallable($callable)
    {
        // Closure remains as such
        if ($callable instanceof Closure) {
            return $callable;
Severity: Minor
Found in src/NormalizeCallableCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _createOutOfRangeException is not named in camelCase.
Open

    abstract protected function _createOutOfRangeException(
        $message = null,
        $code = null,
        RootException $previous = null,
        $argument = null

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _createInternalException is not named in camelCase.
Open

    abstract protected function _createInternalException(
        $message = null,
        $code = null,
        RootException $previous = null
    );
Severity: Minor
Found in src/InvokeCallableCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _createReflectionForCallable is not named in camelCase.
Open

    protected function _createReflectionForCallable($callable)
    {
        $callable = $this->_normalizeCallable($callable);

        // String or closure means function

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _createReflectionMethod is not named in camelCase.
Open

    abstract protected function _createReflectionMethod($className, $methodName);

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _createInvalidArgumentException is not named in camelCase.
Open

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

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _createOutOfRangeException is not named in camelCase.
Open

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

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method __ is not named in camelCase.
Open

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

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _getCallback is not named in camelCase.
Open

    abstract protected function _getCallback();
Severity: Minor
Found in src/InvokeCallbackCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _normalizeMethodCallable is not named in camelCase.
Open

    abstract protected function _normalizeMethodCallable($callable);
Severity: Minor
Found in src/NormalizeCallableCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _validateParams is not named in camelCase.
Open

    protected function _validateParams($args, $spec)
    {
        $errors = $this->_getArgsListErrors($args, $spec);
        if ($this->_countIterable($errors)) {
            throw $this->_createValidationFailedException(null, null, null, null, $args, $errors);
Severity: Minor
Found in src/ValidateParamsCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _validateParams is not named in camelCase.
Open

    abstract protected function _validateParams($args, $spec);
Severity: Minor
Found in src/InvokeCallableCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _invokeCallable is not named in camelCase.
Open

    abstract protected function _invokeCallable($callable, $args);
Severity: Minor
Found in src/InvokeCallbackCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _normalizeString is not named in camelCase.
Open

    abstract protected function _normalizeString($subject);
Severity: Minor
Found in src/NormalizeCallableCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _invokeCallback is not named in camelCase.
Open

    protected function _invokeCallback($args = array())
    {
        $args     = $this->_normalizeIterable($args);
        $callback = $this->_getCallback();

Severity: Minor
Found in src/InvokeCallbackCapableTrait.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language