Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Dec 30, 2023
1 parent de1693d commit a1aed3d
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Holiday.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Brazil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Portugal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/Romania.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion tests/Base/HolidayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function testHolidayGetNameWithGlobalAndCustomTranslations(): void
}

/** @throws \Exception */
public function testHolidayGetNameWithOverridenGlobalTranslations(): void
public function testHolidayGetNameWithOverriddenGlobalTranslations(): void
{
$translationsStub = $this->getMockBuilder(TranslationsInterface::class)->getMock();

Expand Down
2 changes: 1 addition & 1 deletion tests/Croatia/IndependenceDayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/Japan/SportsDayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Andrej Rypak (dakujem) <[email protected]>
* @author Jan Langer <[email protected]>
*/
class SlovakIndependeceDayTest extends SlovakiaBaseTestCase implements HolidayTestCase
class SlovakIndependenceDayTest extends SlovakiaBaseTestCase implements HolidayTestCase
{
/**
* The name of the holiday to be tested.
Expand Down
2 changes: 1 addition & 1 deletion tests/YasumiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit a1aed3d

Please sign in to comment.