Dhii/data-container-base

View on GitHub
src/CreateNotFoundExceptionCapableTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Method _createNotFoundException has 5 arguments (exceeds 4 allowed). Consider refactoring.
Invalid

        $message = null,
        $code = null,
        RootException $previous = null,
        BaseContainerInterface $container = null,
        $dataKey = null
Severity: Minor
Found in src/CreateNotFoundExceptionCapableTrait.php - About 35 mins to fix

    The method _createNotFoundException is not named in camelCase.
    Open

        protected function _createNotFoundException(
            $message = null,
            $code = null,
            RootException $previous = null,
            BaseContainerInterface $container = 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

    There are no issues that match your filters.

    Category
    Status