briannesbitt / Carbon
Showing 2 of 2 files from the diff.

@@ -203,6 +203,7 @@
Loading
203 203
204 204
        // Can be removed if https://bugs.php.net/bug.php?id=81106
205 205
        // is fixed
206 +
        // @codeCoverageIgnoreStart
206 207
        if (
207 208
            $unit instanceof DateInterval &&
208 209
            version_compare(PHP_VERSION, '8.1.0-dev', '>=') &&
@@ -213,6 +214,7 @@
Loading
213 214
            $unit->f -= $seconds;
214 215
            $unit->s += (int) $seconds;
215 216
        }
217 +
        // @codeCoverageIgnoreEnd
216 218
217 219
        if ($unit instanceof CarbonConverterInterface) {
218 220
            return $this->resolveCarbon($unit->convertDate($this, false));

@@ -125,9 +125,11 @@
Loading
125 125
126 126
        // Can be removed if https://github.com/derickr/timelib/pull/110
127 127
        // is merged
128 +
        // @codeCoverageIgnoreStart
128 129
        if (version_compare(PHP_VERSION, '8.1.0-dev', '>=') && $other->tz !== $this->tz) {
129 130
            $other = $other->avoidMutation()->tz($this->tz);
130 131
        }
132 +
        // @codeCoverageIgnoreEnd
131 133
132 134
        return parent::diff($other, (bool) $absolute);
133 135
    }
Files Coverage
src/Carbon 100.00%
Project Totals (886 files) 100.00%
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