briannesbitt / Carbon

@@ -148,7 +148,7 @@
Loading
148 148
     */
149 149
    public function trans($id, array $parameters = [], $domain = null, $locale = null)
150 150
    {
151 -
        if (null === $domain) {
151 +
        if ($domain === null) {
152 152
            $domain = 'messages';
153 153
        }
154 154

@@ -622,7 +622,7 @@
Loading
622 622
623 623
        if (!isset($units[$unit])) {
624 624
            if (isset($this->$unit)) {
625 -
                return $this->$unit === $this->resolveCarbon($date)->$unit;
625 +
                return $this->resolveCarbon($date)->$unit === $this->$unit;
626 626
            }
627 627
628 628
            if ($this->localStrictModeEnabled ?? static::isStrictModeEnabled()) {
@@ -1001,7 +1001,7 @@
Loading
1001 1001
        ];
1002 1002
1003 1003
        foreach ($units as $unit => [$minimum, $startUnit]) {
1004 -
            if ($median->$unit === $minimum) {
1004 +
            if ($minimum === $median->$unit) {
1005 1005
                $current = $current->startOf($startUnit);
1006 1006
1007 1007
                break;

@@ -11,7 +11,7 @@
Loading
11 11
// @codeCoverageIgnoreStart
12 12
if (class_exists('Symfony\\Component\\Translation\\PluralizationRules')) {
13 13
    \Symfony\Component\Translation\PluralizationRules::set(function ($number) {
14 -
        return ((1 == $number % 10) && (11 != $number % 100)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2);
14 +
        return (($number % 10 == 1) && ($number % 100 != 11)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2);
15 15
    }, 'be');
16 16
}
17 17
// @codeCoverageIgnoreEnd

@@ -11,7 +11,7 @@
Loading
11 11
// @codeCoverageIgnoreStart
12 12
if (class_exists('Symfony\\Component\\Translation\\PluralizationRules')) {
13 13
    \Symfony\Component\Translation\PluralizationRules::set(function ($number) {
14 -
        return ((1 == $number % 10) && (11 != $number % 100)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2);
14 +
        return (($number % 10 == 1) && ($number % 100 != 11)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2);
15 15
    }, 'sh');
16 16
}
17 17
// @codeCoverageIgnoreEnd
Files Complexity Coverage
src/Carbon 2,129 100.00%
Project Totals (886 files) 2129 100.00%

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