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
503de0d
... +8 ...
d7a303f
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
33 | 33 | 'm' => ':count mjeśůnc', |
|
34 | 34 | 'a_month' => ':count mjeśůnc', |
|
35 | 35 | ||
36 | - | 'week' => ':count Tydźyń', |
|
37 | - | 'w' => ':count Tydźyń', |
|
38 | - | 'a_week' => ':count Tydźyń', |
|
36 | + | 'week' => ':count tydźyń', |
|
37 | + | 'w' => ':count tydźyń', |
|
38 | + | 'a_week' => ':count tydźyń', |
|
39 | 39 | ||
40 | 40 | 'day' => ':count dźyń', |
|
41 | 41 | 'd' => ':count dźyń', |
45 | 45 | 'h' => ':count godzina', |
|
46 | 46 | 'a_hour' => ':count godzina', |
|
47 | 47 | ||
48 | - | 'minute' => ':count Minuta', |
|
49 | - | 'min' => ':count Minuta', |
|
50 | - | 'a_minute' => ':count Minuta', |
|
48 | + | 'minute' => ':count minuta', |
|
49 | + | 'min' => ':count minuta', |
|
50 | + | 'a_minute' => ':count minuta', |
|
51 | 51 | ||
52 | - | 'second' => ':count Sekůnda', |
|
53 | - | 's' => ':count Sekůnda', |
|
54 | - | 'a_second' => ':count Sekůnda', |
|
52 | + | 'second' => ':count sekůnda', |
|
53 | + | 's' => ':count sekůnda', |
|
54 | + | 'a_second' => ':count sekůnda', |
|
55 | 55 | ]); |
54 | 54 | 's' => ':count sek.', |
|
55 | 55 | 'ago' => ':time temu', |
|
56 | 56 | 'from_now' => static function ($time) { |
|
57 | - | switch ($time) { |
|
58 | - | case '1 godzina': |
|
59 | - | return 'za 1 godzinę'; |
|
60 | - | ||
61 | - | case '1 minuta': |
|
62 | - | return 'za 1 minutę'; |
|
63 | - | ||
64 | - | case '1 sekunda': |
|
65 | - | return 'za 1 sekundę'; |
|
66 | - | ||
67 | - | case 'godzina': |
|
68 | - | return 'za godzinę'; |
|
69 | - | ||
70 | - | case 'minuta': |
|
71 | - | return 'za minutę'; |
|
72 | - | ||
73 | - | case 'sekunda': |
|
74 | - | return 'za sekundę'; |
|
75 | - | ||
76 | - | default: |
|
77 | - | return "za $time"; |
|
78 | - | } |
|
57 | + | return 'za '.strtr($time, [ |
|
58 | + | 'godzina' => 'godzinę', |
|
59 | + | 'minuta' => 'minutę', |
|
60 | + | 'sekunda' => 'sekundę', |
|
61 | + | ]); |
|
79 | 62 | }, |
|
80 | 63 | 'after' => ':time po', |
|
81 | 64 | 'before' => ':time przed', |
509 | 509 | $end = null; |
|
510 | 510 | ||
511 | 511 | foreach (explode('/', $iso) as $key => $part) { |
|
512 | - | if ($key === 0 && preg_match('/^R([0-9]*)$/', $part, $match)) { |
|
513 | - | $parsed = \strlen($match[1]) ? (int) $match[1] : null; |
|
512 | + | if ($key === 0 && preg_match('/^R([0-9]*|INF)$/', $part, $match)) { |
|
513 | + | $parsed = \strlen($match[1]) ? (($match[1] !== 'INF') ? (int) $match[1] : INF) : null; |
|
514 | 514 | } elseif ($interval === null && $parsed = CarbonInterval::make($part)) { |
|
515 | 515 | $interval = $part; |
|
516 | 516 | } elseif ($start === null && $parsed = Carbon::make($part)) { |
75 | 75 | */ |
|
76 | 76 | public function equalTo($date): bool |
|
77 | 77 | { |
|
78 | - | return $this == $date; |
|
78 | + | return $this == $this->resolveCarbon($date); |
|
79 | 79 | } |
|
80 | 80 | ||
81 | 81 | /** |
155 | 155 | */ |
|
156 | 156 | public function greaterThan($date): bool |
|
157 | 157 | { |
|
158 | - | return $this > $date; |
|
158 | + | return $this > $this->resolveCarbon($date); |
|
159 | 159 | } |
|
160 | 160 | ||
161 | 161 | /** |
256 | 256 | */ |
|
257 | 257 | public function lessThan($date): bool |
|
258 | 258 | { |
|
259 | - | return $this < $date; |
|
259 | + | return $this < $this->resolveCarbon($date); |
|
260 | 260 | } |
|
261 | 261 | ||
262 | 262 | /** |
Files | Complexity | Coverage |
---|---|---|
src/Carbon | ø | 100.00% |
Project Totals (886 files) | 2081 | 100.00% |
d7a303f
9e22d44
b989a73
a3aa228
4369a95
a95e9ce
925344c
28e0ec7
78f98be
503de0d