Dhii/validation-base

View on GitHub
src/AbstractValidatorBase.php

Summary

Maintainability
A
45 mins
Test Coverage

Method _throwValidationFailedException has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

        $message = null,
        $code = null,
        RootException $previous = null,
        $validator = null,
        $subject = null,
Severity: Minor
Found in src/AbstractValidatorBase.php - About 45 mins to fix

    The method _throwValidationFailedException is not named in camelCase.
    Open

        protected function _throwValidationFailedException(
            $message = null,
            $code = null,
            RootException $previous = null,
            $validator = null,
    Severity: Minor
    Found in src/AbstractValidatorBase.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 _construct is not named in camelCase.
    Open

        protected function _construct()
        {
        }
    Severity: Minor
    Found in src/AbstractValidatorBase.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 _throwValidationException is not named in camelCase.
    Open

        protected function _throwValidationException(
            $message = null,
            $code = null,
            RootException $previous = null,
            $validator = null
    Severity: Minor
    Found in src/AbstractValidatorBase.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

    There are no issues that match your filters.

    Category
    Status