Dhii/iterator-base

View on GitHub
src/GetDepthCapableTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _getPathSegments is not named in camelCase.
Open

    abstract protected function _getPathSegments();
Severity: Minor
Found in src/GetDepthCapableTrait.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/GetDepthCapableTrait.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 _getDepth is not named in camelCase.
Open

    protected function _getDepth()
    {
        return $this->_countIterable($this->_getPathSegments()) - 1;
    }
Severity: Minor
Found in src/GetDepthCapableTrait.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