| @@ 482-491 (lines=10) @@ | ||
| 479 | * |
|
| 480 | * @return void |
|
| 481 | */ |
|
| 482 | protected function humanDateYesterday($parsedTxt) |
|
| 483 | { |
|
| 484 | $currentClass = get_called_class(); |
|
| 485 | $parsedTxt->date = $currentClass::$humanReadableI18n['yesterday']; |
|
| 486 | $parsedTxt->time = $currentClass::$humanReadableI18n['at'] |
|
| 487 | .' ' |
|
| 488 | .$this->format( |
|
| 489 | $currentClass::$humanReadableFormats['time'] |
|
| 490 | ); |
|
| 491 | } |
|
| 492 | ||
| 493 | /** |
|
| 494 | * Format date to human readable when date is tomorrow |
|
| @@ 500-509 (lines=10) @@ | ||
| 497 | * |
|
| 498 | * @return void |
|
| 499 | */ |
|
| 500 | protected function humanDateTomorrow($parsedTxt) |
|
| 501 | { |
|
| 502 | $currentClass = get_called_class(); |
|
| 503 | $parsedTxt->date = $currentClass::$humanReadableI18n['tomorrow']; |
|
| 504 | $parsedTxt->time = $currentClass::$humanReadableI18n['at'] |
|
| 505 | .' ' |
|
| 506 | .$this->format( |
|
| 507 | $currentClass::$humanReadableFormats['time'] |
|
| 508 | ); |
|
| 509 | } |
|
| 510 | ||
| 511 | /** |
|
| 512 | * Format date to human readable when date is not now, today or yesterday |
|