Skip to content

Commit 260c08a

Browse files
authored
Merge pull request jimmiw#68 from jlratwil/master
Update Language.php
2 parents b63ad09 + 0b66ba0 commit 260c08a

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/Westsworld/TimeAgo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function getLanguage(): Language
6464
* @param DateTime $now the current time, defaults to now, using timezone from $past
6565
* @return string the time difference in a spoken format, e.g. 1 day ago
6666
*/
67-
public function inWords(DateTime $past, DateTme $now = null)
67+
public function inWords(DateTime $past, DateTime $now = null)
6868
{
6969
// ensuring that "now" is a DateTime object, using the past's timeZone
7070
// if needed, to create a new now object.

src/Westsworld/TimeAgo/Language.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ public function getTranslations(): array
2323
* Sets the list of translations, in a key->value format
2424
*
2525
* @param array $translations the translations to set
26-
* @return void
2726
*/
28-
public function setTranslations(array $translations): void
27+
public function setTranslations(array $translations)
2928
{
3029
$this->translations = $translations;
3130
}

src/Westsworld/TimeAgo/Translations/Ca.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
use \Westsworld\TimeAgo\Language;
66

77
/**
8-
* Bulgarian translations
8+
* Catalan translations
99
*/
10-
class Bg extends Language
10+
class Ca extends Language
1111
{
1212
public function __construct()
1313
{

src/Westsworld/TimeAgo/Translations/En.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use \Westsworld\TimeAgo\Language;
66

77
/**
8-
* Danish translations
8+
* English translations
99
*/
1010
class En extends Language
1111
{

0 commit comments

Comments
 (0)