Skip to content

Commit

Permalink
Merge pull request #2920 from szepeviktor/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
kylekatarnls committed Jan 21, 2024
2 parents 7539ed9 + b42697b commit c23fa05
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- feature proposals,
- and documentation requests
Having all those informations will allow us to know exactly
Having all those information will allow us to know exactly
what you expect and answer you faster and precisely (answer
that matches your Carbon version, PHP version and usage).
Expand Down Expand Up @@ -45,7 +45,7 @@ PHP version: **PUT HERE YOUR PHP VERSION**
You can use the [Options] button to change the version
then when you get the bug with this editor, you can use
the [Export] button, copy the link of the opened tab,
then paste it in the issue. Then we can immediatly get
then paste it in the issue. Then we can immediately get
your issue.
-->

Expand Down
10 changes: 5 additions & 5 deletions src/Carbon/CarbonPeriod.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ protected static function parseIso8601($iso)
}

/**
* Add missing parts of the target date from the soure date.
* Add missing parts of the target date from the source date.
*
* @param string $source
* @param string $target
Expand Down Expand Up @@ -2034,7 +2034,7 @@ public function map(callable $callback)

/**
* Determines if the instance is equal to another.
* Warning: if options differ, instances wil never be equal.
* Warning: if options differ, instances will never be equal.
*
* @param mixed $period
*
Expand All @@ -2049,7 +2049,7 @@ public function eq($period): bool

/**
* Determines if the instance is equal to another.
* Warning: if options differ, instances wil never be equal.
* Warning: if options differ, instances will never be equal.
*
* @param mixed $period
*
Expand All @@ -2072,7 +2072,7 @@ public function equalTo($period): bool

/**
* Determines if the instance is not equal to another.
* Warning: if options differ, instances wil never be equal.
* Warning: if options differ, instances will never be equal.
*
* @param mixed $period
*
Expand All @@ -2087,7 +2087,7 @@ public function ne($period): bool

/**
* Determines if the instance is not equal to another.
* Warning: if options differ, instances wil never be equal.
* Warning: if options differ, instances will never be equal.
*
* @param mixed $period
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Carbon/CreateFromTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function testCreateFromTimeWithTimeZoneOnNow()
Carbon::setTestNow($test);

// tested without microseconds
// because they appear withing calls to Carbon
// because they appear within calls to Carbon
$this->assertSame($now->format('c'), $dt->format('c'));
}
}
2 changes: 1 addition & 1 deletion tests/Carbon/MacroTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function testCarbonIsMacroableWhenCalledStatically()
$this->assertSame('05/04', Carbon::easterDate(2015)->format('d/m'));
}

public function testCarbonIsMacroableWhithNonClosureCallables()
public function testCarbonIsMacroableWithNonClosureCallables()
{
Carbon::macro('lower', 'strtolower');

Expand Down
2 changes: 1 addition & 1 deletion tests/Carbon/StringsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function testToLocalizedFormattedDeprecation()
});
}

public function testToLocalizedFormattedDateStringWhenUtf8IsNedded()
public function testToLocalizedFormattedDateStringWhenUtf8IsNeeded()
{
Carbon::useStrictMode(false);

Expand Down
2 changes: 1 addition & 1 deletion tests/CarbonImmutable/CreateFromTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function testCreateFromTime()
Carbon::setTestNow($test);

// tested without microseconds
// because they appear withing calls to Carbon
// because they appear within calls to Carbon
$this->assertSame($now->format('c'), $dt->format('c'));
}
}
2 changes: 1 addition & 1 deletion tests/CarbonImmutable/MacroTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function testCarbonIsMacroableWhenCalledStatically()
$this->assertSame('05/04', Carbon::easterDate(2015)->format('d/m'));
}

public function testCarbonIsMacroableWhithNonClosureCallables()
public function testCarbonIsMacroableWithNonClosureCallables()
{
Carbon::macro('lower2', 'strtolower');

Expand Down
2 changes: 1 addition & 1 deletion tests/CarbonImmutable/StringsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function testToLocalizedFormattedDateString()
});
}

public function testToLocalizedFormattedDateStringWhenUtf8IsNedded()
public function testToLocalizedFormattedDateStringWhenUtf8IsNeeded()
{
Carbon::useStrictMode(false);

Expand Down
2 changes: 1 addition & 1 deletion tests/CarbonInterval/MacroTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testCarbonIsMacroableWhenCalledStatically()
$this->assertSame('3 months', CarbonInterval::quarterIfEven(-6)->forHumans());
}

public function testCarbonIsMacroableWhithNonClosureCallables()
public function testCarbonIsMacroableWithNonClosureCallables()
{
CarbonInterval::macro('lower', 'strtolower');

Expand Down
2 changes: 1 addition & 1 deletion tests/CarbonPeriod/MacroTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function testOverrideAlias()
$this->assertSame('foo', $periodClass::recurrences());
}

public function testInstatiateViaStaticMacroCall()
public function testInstantiateViaStaticMacroCall()
{
$periodClass = $this->periodClass;
$periodClass::macro('fromTomorrow', function () {
Expand Down

0 comments on commit c23fa05

Please sign in to comment.