Skip to content

Commit 1fc379b

Browse files
committed
sync
1 parent 3eff1a1 commit 1fc379b

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

application/language/en/date.php application/language/en/carbon.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
return [
66
/*
77
|--------------------------------------------------------------------------
8-
| Date Language
8+
| Carbon Language
99
|--------------------------------------------------------------------------
1010
|
11-
| Baris - baris bahasa brikut ini digunakan oleh library Date.
11+
| Baris - baris bahasa brikut ini digunakan oleh library Carbon.
1212
|
1313
*/
1414

application/language/id/date.php application/language/id/carbon.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
return [
66
/*
77
|--------------------------------------------------------------------------
8-
| Date Language Lines
8+
| Carbon Language Lines
99
|--------------------------------------------------------------------------
1010
|
11-
| Baris - baris bahasa brikut ini digunakan oleh library Date.
11+
| Baris - baris bahasa brikut ini digunakan oleh library Carbon.
1212
|
1313
*/
1414

system/carbon.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -862,18 +862,18 @@ public function diffForHumans(Carbon $other = null, $absolute = false)
862862
$delta = floor($delta / $value);
863863
}
864864

865-
$delta = ($delta <= 0) ? 1 : $delta;
866-
$str = $delta . ' ' . Lang::line('date.' . $unit . (($delta <= 1) ? '' : 's'))->get();
865+
$delta = ($delta < 1) ? 1 : $delta;
866+
$str = $delta . ' ' . Lang::line('carbon.' . $unit . (($delta <= 1) ? '' : 's'))->get();
867867

868868
if ($absolute) {
869869
return $str;
870870
}
871871

872872
if ($now) {
873-
return $str . ' ' . Lang::line('date.' . ($future ? 'from_now' : 'ago'))->get();
873+
return $str . ' ' . Lang::line('carbon.' . ($future ? 'from_now' : 'ago'))->get();
874874
}
875875

876-
return $str . ' ' . Lang::line('date.' . ($future ? 'after' : 'before'))->get();
876+
return $str . ' ' . Lang::line('carbon.' . ($future ? 'after' : 'before'))->get();
877877
}
878878

879879
public function startOfDay()

system/str.php

+2
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,8 @@ public static function ulid($lowercase = false)
593593
* @param int $count
594594
* @param int $max
595595
* @param bool $standard
596+
*
597+
* @return string
596598
*/
597599
public static function lorem($count = 1, $max = 20, $standard = true)
598600
{

0 commit comments

Comments
 (0)