No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
6571aec
... +0 ...
61b2c44
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
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 | ø | 100.00% |
Project Totals (885 files) | 2062 | 100.00% |
61b2c44
6571aec