diff --git a/CHANGELOG.md b/CHANGELOG.md index 267aba982..9f965190f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ changes. - Mexico Provider [\#329](https://github.com/azuyalabs/yasumi/pull/329) ([Luis Gonzalez](https://github.com/gogl92)). - From 2024, Romania will officially include the holidays of St. Johns ('Sfântul Ioan Botezătorul') and Epiphany ('Bobotează'). [#310](https://github.com/azuyalabs/yasumi/pull/310) ([AngelinCalu](https://github.com/AngelinCalu) ) -- For the German state of Mecklenburg-Western Pomerania, International Womens Day is considered to be officially +- For the German state of Mecklenburg-Western Pomerania, International Women's Day is considered to be officially observed. [#311](https://github.com/azuyalabs/yasumi/pull/311) ([ihmels](https://github.com/ihmels)) - Recently, the South Korean government announced a bill to apply alternative public holidays to Buddha's Day and Christmas Day, which we have reflected in our South Korea provider. diff --git a/src/Yasumi/Holiday.php b/src/Yasumi/Holiday.php index bbc758e2b..96be0a73d 100644 --- a/src/Yasumi/Holiday.php +++ b/src/Yasumi/Holiday.php @@ -207,7 +207,7 @@ public function mergeGlobalTranslations(TranslationsInterface $globalTranslation * For each provided locale, return all locales including their parent locales. E.g. * ['ca_ES_VALENCIA', 'es_ES'] is expanded into ['ca_ES_VALENCIA', 'ca_ES', 'ca', 'es_ES', 'es']. * - * If a string is provided, return as if this string, Holiday::DEFAULT_LOCALE, and Holiday::LOCALE_SHORT_NAM + * If a string is provided, return as if this string, Holiday::DEFAULT_LOCALE, and Holiday::LOCALE_SHORT_NAME * was provided. E.g. 'de_DE' is expanded into ['de_DE', 'de', 'en_US', 'en', Holiday::LOCALE_KEY]. * * If null is provided, return as if the display locale was provided as a string. diff --git a/src/Yasumi/Provider/Brazil.php b/src/Yasumi/Provider/Brazil.php index 521c13b10..687246a33 100644 --- a/src/Yasumi/Provider/Brazil.php +++ b/src/Yasumi/Provider/Brazil.php @@ -75,7 +75,7 @@ public function getSources(): array * * The Brazilian Proclamation of Republic was an act relevant military politic it happened on 15 November 1889 * that initiated the build federative presidential of govern in Brazil, downed the monarchy constitutional - * parlamentary of Brazil's Empire. + * parliamentary of Brazil's Empire. * * @link https://en.wikipedia.org/wiki/Proclamation_of_the_Republic_(Brazil) */ diff --git a/src/Yasumi/Provider/Portugal.php b/src/Yasumi/Provider/Portugal.php index 5b826be94..706d9f819 100644 --- a/src/Yasumi/Provider/Portugal.php +++ b/src/Yasumi/Provider/Portugal.php @@ -100,7 +100,7 @@ private function calculateCarnationRevolutionDay(): void } /** - * In Portugal, between 2013 andd 2015 (inclusive) this holiday did not happen due to government deliberation. + * In Portugal, between 2013 and 2015 (inclusive) this holiday did not happen due to government deliberation. * It was restored in 2016. * * @throws \InvalidArgumentException diff --git a/src/Yasumi/Provider/Romania.php b/src/Yasumi/Provider/Romania.php index cf50816c7..c14729c57 100644 --- a/src/Yasumi/Provider/Romania.php +++ b/src/Yasumi/Provider/Romania.php @@ -63,7 +63,7 @@ public function initialize(): void $this->calculateStJohnsDay(); } - // Pentecost (50th and 51st day after Easter) and Asumption of Mary (15.08) were added as legal holidays acc. to the Law '202/2008' + // Pentecost (50th and 51st day after Easter) and Assumption of Mary (15.08) were added as legal holidays acc. to the Law '202/2008' if ($this->year >= 2008) { $this->addHoliday($this->pentecost($this->year, $this->timezone, $this->locale)); $this->addHoliday($this->pentecostMonday($this->year, $this->timezone, $this->locale)); diff --git a/tests/Base/HolidayTest.php b/tests/Base/HolidayTest.php index 39d9be320..2344263be 100644 --- a/tests/Base/HolidayTest.php +++ b/tests/Base/HolidayTest.php @@ -231,7 +231,7 @@ public function testHolidayGetNameWithGlobalAndCustomTranslations(): void } /** @throws \Exception */ - public function testHolidayGetNameWithOverridenGlobalTranslations(): void + public function testHolidayGetNameWithOverriddenGlobalTranslations(): void { $translationsStub = $this->getMockBuilder(TranslationsInterface::class)->getMock(); diff --git a/tests/Croatia/IndependenceDayTest.php b/tests/Croatia/IndependenceDayTest.php index 54f00eb34..d76fc602d 100644 --- a/tests/Croatia/IndependenceDayTest.php +++ b/tests/Croatia/IndependenceDayTest.php @@ -18,7 +18,7 @@ use Yasumi\tests\HolidayTestCase; /** - * Class containing tests for Independece Day in Croatia. + * Class containing tests for Independence Day in Croatia. */ class IndependenceDayTest extends CroatiaBaseTestCase implements HolidayTestCase { diff --git a/tests/Germany/MecklenburgWesternPomerania/InternationalWomensDayTest.php b/tests/Germany/MecklenburgWesternPomerania/InternationalWomensDayTest.php index 729cec0f4..a7ee6a9f8 100644 --- a/tests/Germany/MecklenburgWesternPomerania/InternationalWomensDayTest.php +++ b/tests/Germany/MecklenburgWesternPomerania/InternationalWomensDayTest.php @@ -18,7 +18,7 @@ use Yasumi\tests\HolidayTestCase; /** - * Class containing tests for International Womens Day in Mecklenburg–Western Pomerania, Germany. + * Class containing tests for International Women's Day in Mecklenburg–Western Pomerania, Germany. */ class InternationalWomensDayTest extends MecklenburgWesternPomeraniaBaseTestCase implements HolidayTestCase { diff --git a/tests/Greece/IndepencenceDayTest.php b/tests/Greece/IndependenceDayTest.php similarity index 97% rename from tests/Greece/IndepencenceDayTest.php rename to tests/Greece/IndependenceDayTest.php index 64e19d901..1fe1561bb 100644 --- a/tests/Greece/IndepencenceDayTest.php +++ b/tests/Greece/IndependenceDayTest.php @@ -20,7 +20,7 @@ /** * Class for testing the Independence Day of Greece in Greece. */ -class IndepencenceDayTest extends GreeceBaseTestCase implements HolidayTestCase +class IndependenceDayTest extends GreeceBaseTestCase implements HolidayTestCase { /** * The year in which the holiday was first established. diff --git a/tests/Japan/SportsDayTest.php b/tests/Japan/SportsDayTest.php index 1d63a8af4..be258307e 100644 --- a/tests/Japan/SportsDayTest.php +++ b/tests/Japan/SportsDayTest.php @@ -75,7 +75,7 @@ public function testSportsDayAfter2000(): void { $year = $this->generateRandomYear(2001); - // Some years the date has changed, so in this test we neeed to skip them. + // Some years the date has changed, so in this test we need to skip them. if (! in_array($year, [2020, 2021])) { $this->assertHoliday( self::REGION, diff --git a/tests/Slovakia/SlovakIndependeceDayTest.php b/tests/Slovakia/SlovakIndependenceDayTest.php similarity index 96% rename from tests/Slovakia/SlovakIndependeceDayTest.php rename to tests/Slovakia/SlovakIndependenceDayTest.php index da99cbc0b..9779d0cea 100644 --- a/tests/Slovakia/SlovakIndependeceDayTest.php +++ b/tests/Slovakia/SlovakIndependenceDayTest.php @@ -24,7 +24,7 @@ * @author Andrej Rypak (dakujem) * @author Jan Langer */ -class SlovakIndependeceDayTest extends SlovakiaBaseTestCase implements HolidayTestCase +class SlovakIndependenceDayTest extends SlovakiaBaseTestCase implements HolidayTestCase { /** * The name of the holiday to be tested. diff --git a/tests/YasumiBase.php b/tests/YasumiBase.php index c003de9d9..24d586890 100644 --- a/tests/YasumiBase.php +++ b/tests/YasumiBase.php @@ -304,7 +304,7 @@ public function assertSources(string $provider, int $expectedSourceCount): void * Variations have been seen between different versions of PHP and OS distributions. * Likely this is caused by different editions of the tz database used in those releases. * - * The chosen delta is somewhat arbitray and seems to solve the experienced issues. + * The chosen delta is somewhat arbitrary and seems to solve the experienced issues. * * @throws \ExpectationFailedException */