gielfeldt/iterators

View on GitHub
src/ChunkIterator.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '66', column '30').
Open

        $innerIterator = new \NoRewindIterator($this->innerIterator);
Severity: Minor
Found in src/ChunkIterator.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '71', column '30').
Open

        $outerIterator = new \ArrayIterator([$limitedInnerIterator]);
Severity: Minor
Found in src/ChunkIterator.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '42', column '81').
Open

        $this->innerIterator = $iterator instanceof \Iterator ? $iterator : new \IteratorIterator($iterator);
Severity: Minor
Found in src/ChunkIterator.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '67', column '37').
Open

        $limitedInnerIterator = new \LimitIterator($innerIterator, 0, $this->size);
Severity: Minor
Found in src/ChunkIterator.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

There are no issues that match your filters.

Category
Status