Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and rlanvin committed Jun 27, 2024
1 parent cb5c6f4 commit bef9568
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

### Added

- Added Portugese translation [#108](https://github.com/rlanvin/php-rrule/pull/108)
- Added Portuguese translation [#108](https://github.com/rlanvin/php-rrule/pull/108)
- Added Polish translation [#106](https://github.com/rlanvin/php-rrule/pull/106)

## [2.3.2] - 2022-05-03
Expand Down Expand Up @@ -114,7 +114,7 @@

## [2.0.0-rc1] - 2019-01-13

- Rewrite the core algorithm to use a native PHP generator, drop compability with PHP < 5.6 [#43](https://github.com/rlanvin/php-rrule/issues/43)
- Rewrite the core algorithm to use a native PHP generator, drop compatibility with PHP < 5.6 [#43](https://github.com/rlanvin/php-rrule/issues/43)

### Added

Expand Down Expand Up @@ -228,7 +228,7 @@

### Fixed

- `RRule::parseRfcString()` is strictier and will not accept invalid `DTSTART` and `UNTIL` formats (use the array syntax in the constructor with `DateTime` objects if you need to create rules with complex combinations of timezones). [#13](https://github.com/rlanvin/php-rrule/issues/13)
- `RRule::parseRfcString()` is stricter and will not accept invalid `DTSTART` and `UNTIL` formats (use the array syntax in the constructor with `DateTime` objects if you need to create rules with complex combinations of timezones). [#13](https://github.com/rlanvin/php-rrule/issues/13)

## [1.2.0] - 2016-04-09

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ you `lno1wkst`). I tried to comment and explain as much of the algorithm as poss
in this PHP port, so feel free to check the code if you're interested.

The lib differs from the python version in various aspects, notably in the
respect of the RFC. This version is a bit strictier and will not accept many
respect of the RFC. This version is a bit stricter and will not accept many
non-compliant combinations of rule parts, that the python version otherwise accepts.
There are also some additional features in this version.

Expand Down
10 changes: 5 additions & 5 deletions src/RRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class RRule implements RRuleInterface

/**
* The constructor needs the entire rule at once.
* There is no setter after the class has been instanciated,
* There is no setter after the class has been instantiated,
* because in order to validate some BYXXX parts, we need to know
* the value of some other parts (FREQ or other BXXX parts).
*
Expand Down Expand Up @@ -562,7 +562,7 @@ public function __toString()
/**
* Format a rule according to RFC 5545
*
* @param bool $include_timezone Wether to generate a rule with timezone identifier on DTSTART (and UNTIL) or not.
* @param bool $include_timezone Whether to generate a rule with timezone identifier on DTSTART (and UNTIL) or not.
* @return string
*/
public function rfcString($include_timezone = true)
Expand Down Expand Up @@ -721,7 +721,7 @@ public function isFinite()
}

/**
* Return true if the rrule has no end condition (infite)
* Return true if the rrule has no end condition (infinite)
*
* @return bool
*/
Expand Down Expand Up @@ -826,7 +826,7 @@ public function occursAt($date)
}
}

// so now we have exhausted all the BYXXX rules (exept bysetpos),
// so now we have exhausted all the BYXXX rules (except bysetpos),
// we still need to consider frequency and interval
list($start_year, $start_month) = explode('-',$this->dtstart->format('Y-m'));
switch ($this->freq) {
Expand Down Expand Up @@ -988,7 +988,7 @@ public function offsetUnset($offset)
/**
* Returns the number of occurrences in this rule. It will have go
* through the whole recurrence, if this hasn't been done before, which
* introduces a performance penality.
* introduces a performance penalty.
*
* @return int
*/
Expand Down
4 changes: 2 additions & 2 deletions src/RRuleInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface RRuleInterface extends \ArrayAccess, \Countable, \IteratorAggregate
public function getOccurrences($limit = null);

/**
* Return all the ocurrences after a date, before a date, or between two dates.
* Return all the occurrences after a date, before a date, or between two dates.
*
* @param mixed $begin Can be null to return all occurrences before $end
* @param mixed $end Can be null to return all occurrences after $begin
Expand Down Expand Up @@ -97,7 +97,7 @@ public function occursAt($date);
public function isFinite();

/**
* Return true if the rrule has no end condition (infite)
* Return true if the rrule has no end condition (infinite)
*
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion src/RRuleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getOccurrences($limit = null)
}

/**
* Return all the ocurrences after a date, before a date, or between two dates.
* Return all the occurrences after a date, before a date, or between two dates.
*
* @param mixed $begin Can be null to return all occurrences before $end
* @param mixed $end Can be null to return all occurrences after $begin
Expand Down
6 changes: 3 additions & 3 deletions src/RSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function getExRules()
}

/**
* Add a RDATE (renamed Date for simplicy, since we don't support full RDATE syntax at the moment)
* Add a RDATE (renamed Date for simplicity, since we don't support full RDATE syntax at the moment)
*
* @param mixed $date a valid date representation or a \DateTime object
* @return $this
Expand Down Expand Up @@ -382,7 +382,7 @@ public function isFinite()
}

/**
* Return true if the rrule has no end condition (infite)
* Return true if the rrule has no end condition (infinite)
*
* @return bool
*/
Expand Down Expand Up @@ -556,7 +556,7 @@ public function offsetUnset($offset)
/**
* Returns the number of recurrences in this set. It will have go
* through the whole recurrence, if this hasn't been done before, which
* introduces a performance penality.
* introduces a performance penalty.
* @return int
*/
#[\ReturnTypeWillChange]
Expand Down
4 changes: 2 additions & 2 deletions src/RfcParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static public function parseLine($line, array $default = array())
/**
* Parse both DTSTART and RRULE (and EXRULE).
*
* It's impossible to accuratly parse a RRULE in isolation (without the DTSTART)
* It's impossible to accurately parse a RRULE in isolation (without the DTSTART)
* as some tests depends on DTSTART (notably the date format for UNTIL).
*
* @param string $string The RFC-like string
Expand Down Expand Up @@ -193,7 +193,7 @@ static public function parseRRule($string, $dtstart = null)
}
// this is an invalid rule, however we'll support it since the JS lib is broken
// see https://github.com/rlanvin/php-rrule/issues/25
trigger_error("This string is not compliant with the RFC (DTSTART cannot be part of RRULE). It is accepted as is for compability reasons only.", E_USER_NOTICE);
trigger_error("This string is not compliant with the RFC (DTSTART cannot be part of RRULE). It is accepted as is for compatibility reasons only.", E_USER_NOTICE);
}
$parts[$key] = $value;
}
Expand Down
4 changes: 2 additions & 2 deletions tests/RRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ public function validLocales()
array('en_US.utf-8', array('en','en_US'), array('en','en_US')),
array('en_US_POSIX', array('en','en_US'), array('en','en_US')),
array('sv_SE', array('sv','sv_SE'), array('sv','sv_SE')),
// case insentitive
// case insensitive
array('en_sg', array('en','en_SG'), array('en','en_SG')),
array('sv_se', array('sv','sv_SE'), array('sv','sv_SE')),
// with a dash
Expand Down Expand Up @@ -3120,7 +3120,7 @@ public function testI18nLoadFailsWithoutIntl()
/**
* Tests that the RRule::i18nLoad() fails as expected on invalid $fallback settings
*/
public function testI18nLoadFallbackFailsWitoutIntl()
public function testI18nLoadFallbackFailsWithoutIntl()
{
$this->expectException(\InvalidArgumentException::class);
$reflector = new ReflectionClass('RRule\RRule');
Expand Down

0 comments on commit bef9568

Please sign in to comment.