Showing 1 of 2 files from the diff.

@@ -1541,13 +1541,19 @@
Loading
1541 1541
1542 1542
        $intervalValues = $this;
1543 1543
        $method = static::getRoundingMethodFromOptions($options);
1544 +
        $previousCount = INF;
1544 1545
1545 1546
        if ($method) {
1546 1547
            while (
1547 1548
                \count($intervalValues->getNonZeroValues()) > $parts &&
1548 1549
                ($count = \count($keys = array_keys($intervalValues->getValuesSequence()))) > 1
1549 1550
            ) {
1550 -
                $intervalValues = $this->copy()->roundUnit($keys[$count - 2], 1, $method);
1551 +
                $intervalValues = $this->copy()->roundUnit(
1552 +
                    $keys[min($count, $previousCount - 1) - 2],
1553 +
                    1,
1554 +
                    $method
1555 +
                );
1556 +
                $previousCount = $count;
1551 1557
            }
1552 1558
        }
1553 1559
Files Complexity Coverage
src/Carbon 2,062 100.00%
Project Totals (885 files) 2062 100.00%
4955.15
7.3=.3
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading