Dhii/iterator-abstract

View on GitHub
src/TrackingIteratorTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Return type of _reset() is undeclared type \Dhii\Iterator\IterationInterface
Open

    protected function _reset()
Severity: Minor
Found in src/TrackingIteratorTrait.php by phan

Return type of _loop() is undeclared type \Dhii\Iterator\IterationInterface
Open

    protected function _loop()
Severity: Minor
Found in src/TrackingIteratorTrait.php by phan

Return type of _createIterationFromTracker() is undeclared type \Dhii\Iterator\IterationInterface
Open

    abstract protected function _createIterationFromTracker($tracker);
Severity: Minor
Found in src/TrackingIteratorTrait.php by phan

The method _resetTracker is not named in camelCase.
Open

    abstract protected function _resetTracker($tracker);
Severity: Minor
Found in src/TrackingIteratorTrait.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 _reset is not named in camelCase.
Open

    protected function _reset()
    {
        $tracker = $this->_getTracker();
        $this->_resetTracker($tracker);
        $iteration = $this->_createIterationFromTracker($tracker);
Severity: Minor
Found in src/TrackingIteratorTrait.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 _createIterationFromTracker is not named in camelCase.
Open

    abstract protected function _createIterationFromTracker($tracker);
Severity: Minor
Found in src/TrackingIteratorTrait.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 _advanceTracker is not named in camelCase.
Open

    abstract protected function _advanceTracker($tracker);
Severity: Minor
Found in src/TrackingIteratorTrait.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 _getTracker is not named in camelCase.
Open

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

    protected function _loop()
    {
        $tracker = $this->_getTracker();
        $this->_advanceTracker($tracker);
        $iteration = $this->_createIterationFromTracker($tracker);
Severity: Minor
Found in src/TrackingIteratorTrait.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