Skip to content

Commit

Permalink
Fix various typos
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis authored and staabm committed Jan 14, 2020
1 parent c14af2a commit 0fec2b0
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions lib/Cli.php
Expand Up @@ -29,7 +29,7 @@ class Cli
protected $showHelp = false;

/**
* Wether to spit out 'mimedir' or 'json' format.
* Whether to spit out 'mimedir' or 'json' format.
*
* @var string
*/
Expand Down Expand Up @@ -516,7 +516,7 @@ protected function serializeComponent(Component $vObj)
*
* A higher score means the item will be lower in the list.
* To avoid score collisions, each "score category" has a reasonable
* space to accomodate elements. The $key is added to the $score to
* space to accommodate elements. The $key is added to the $score to
* preserve the original relative order of elements.
*
* @param int $key
Expand Down
2 changes: 1 addition & 1 deletion lib/Component.php
Expand Up @@ -276,7 +276,7 @@ public function serialize()
*
* A higher score means the item will be lower in the list.
* To avoid score collisions, each "score category" has a reasonable
* space to accomodate elements. The $key is added to the $score to
* space to accommodate elements. The $key is added to the $score to
* preserve the original relative order of elements.
*
* @param int $key
Expand Down
2 changes: 1 addition & 1 deletion lib/Component/VEvent.php
Expand Up @@ -36,7 +36,7 @@ public function isInTimeRange(DateTimeInterface $start, DateTimeInterface $end)
try {
$it = new EventIterator($this, null, $start->getTimezone());
} catch (NoInstancesException $e) {
// If we've catched this exception, there are no instances
// If we've caught this exception, there are no instances
// for the event that fall into the specified time-range.
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/PHPUnitAssertions.php
Expand Up @@ -15,7 +15,7 @@
trait PHPUnitAssertions
{
/**
* This method tests wether two vcards or icalendar objects are
* This method tests whether two vcards or icalendar objects are
* semantically identical.
*
* It supports objects being supplied as strings, streams or
Expand Down
4 changes: 2 additions & 2 deletions lib/Parser/MimeDir.php
Expand Up @@ -124,7 +124,7 @@ public function setInput($input)
$this->startLine = 0;

if (is_string($input)) {
// Convering to a stream.
// Converting to a stream.
$stream = fopen('php://temp', 'r+');
fwrite($stream, $input);
rewind($stream);
Expand Down Expand Up @@ -480,7 +480,7 @@ protected function readProperty($line)
* vCard 3.0 says:
* * (rfc2425) Backslashes, newlines (\n or \N) and comma's must be
* escaped, all time time.
* * Comma's are used for delimeters in multiple values
* * Comma's are used for delimiters in multiple values
* * (rfc2426) Adds to to this that the semi-colon MUST also be escaped,
* as in some properties semi-colon is used for separators.
* * Properties using semi-colons: N, ADR, GEO, ORG
Expand Down
2 changes: 1 addition & 1 deletion lib/Parser/XML/Element/KeyValue.php
Expand Up @@ -18,7 +18,7 @@ class KeyValue extends SabreXml\Element\KeyValue
/**
* The deserialize method is called during xml parsing.
*
* This method is called staticly, this is because in theory this method
* This method is called statically, this is because in theory this method
* may be used as a type of constructor, or factory method.
*
* Often you want to return an instance of the current class, but you are
Expand Down
2 changes: 1 addition & 1 deletion lib/Property/Boolean.php
Expand Up @@ -8,7 +8,7 @@
/**
* Boolean property.
*
* This object represents BOOLEAN values. These are always the case-insenstive
* This object represents BOOLEAN values. These are always the case-insensitive
* string TRUE or FALSE.
*
* Automatic conversion to PHP's true and false are done.
Expand Down
2 changes: 1 addition & 1 deletion lib/Property/IntegerValue.php
Expand Up @@ -9,7 +9,7 @@
* Integer property.
*
* This object represents INTEGER values. These are always a single integer.
* They may be preceeded by either + or -.
* They may be preceded by either + or -.
*
* @copyright Copyright (C) fruux GmbH (https://fruux.com/)
* @author Evert Pot (http://evertpot.com/)
Expand Down
2 changes: 1 addition & 1 deletion lib/Property/Text.php
Expand Up @@ -111,7 +111,7 @@ public function setQuotedPrintableValue($val)
// that.
//
// We also don't have to unescape \\, so all we need to look for is a ;
// that's not preceeded with a \.
// that's not preceded with a \.
$regex = '# (?<!\\\\) ; #x';
$matches = preg_split($regex, $val);
$this->setValue($matches);
Expand Down
2 changes: 1 addition & 1 deletion lib/Property/Uri.php
Expand Up @@ -72,7 +72,7 @@ public function setRawMimeDirValue($val)
{
// Normally we don't need to do any type of unescaping for these
// properties, however.. we've noticed that Google Contacts
// specifically escapes the colon (:) with a blackslash. While I have
// specifically escapes the colon (:) with a backslash. While I have
// no clue why they thought that was a good idea, I'm unescaping it
// anyway.
//
Expand Down
2 changes: 1 addition & 1 deletion lib/Recur/NoInstancesException.php
Expand Up @@ -7,7 +7,7 @@
/**
* This exception gets thrown when a recurrence iterator produces 0 instances.
*
* This may happen when every occurence in a rrule is also in EXDATE.
* This may happen when every occurrence in a rrule is also in EXDATE.
*
* @copyright Copyright (C) fruux GmbH (https://fruux.com/)
* @author Evert Pot (http://evertpot.com/)
Expand Down
6 changes: 3 additions & 3 deletions lib/Recur/RRuleIterator.php
Expand Up @@ -232,7 +232,7 @@ public function fastForward(DateTimeInterface $dt)
*
* This is an array of weekdays
*
* This may also be preceeded by a positive or negative integer. If present,
* This may also be preceded by a positive or negative integer. If present,
* this indicates the nth occurrence of a specific day within the monthly or
* yearly rrule. For instance, -2TU indicates the second-last tuesday of
* the month, or year.
Expand Down Expand Up @@ -771,7 +771,7 @@ protected function parseRRule($rrule)
$this->byMonth = (array) $value;
foreach ($this->byMonth as $byMonth) {
if (!is_numeric($byMonth) || (int) $byMonth < 1 || (int) $byMonth > 12) {
throw new InvalidDataException('BYMONTH in RRULE must have value(s) betweeen 1 and 12!');
throw new InvalidDataException('BYMONTH in RRULE must have value(s) between 1 and 12!');
}
}
break;
Expand Down Expand Up @@ -948,7 +948,7 @@ protected function getDays()
{
$recurrenceDays = [];
foreach ($this->byDay as $byDay) {
// The day may be preceeded with a positive (+n) or
// The day may be preceded with a positive (+n) or
// negative (-n) integer. However, this does not make
// sense in 'weekly' so we ignore it here.
$recurrenceDays[] = $this->dayMap[substr($byDay, -2)];
Expand Down
2 changes: 1 addition & 1 deletion lib/Settings.php
Expand Up @@ -46,7 +46,7 @@ class Settings
* specific events that recur many, many times, potentially DDOSing the
* server.
*
* The default (3500) allows creation of a dialy event that goes on for 10
* The default (3500) allows creation of a daily event that goes on for 10
* years, which is hopefully long enough for most.
*
* Set this value to -1 to disable this control altogether.
Expand Down
2 changes: 1 addition & 1 deletion lib/TimeZoneUtil.php
Expand Up @@ -139,7 +139,7 @@ public static function getTimeZone($tzid, Component $vcalendar = null, $failIfUn
// PHP has a bug that logs PHP warnings even it shouldn't:
// https://bugs.php.net/bug.php?id=67881
//
// That's why we're checking if we'll be able to successfull instantiate
// That's why we're checking if we'll be able to successfully instantiate
// \DateTimeZone() before doing so. Otherwise we could simply instantiate
// and catch the exception.
$tzIdentifiers = \DateTimeZone::listIdentifiers();
Expand Down
2 changes: 1 addition & 1 deletion lib/VCardConverter.php
Expand Up @@ -230,7 +230,7 @@ protected function convertProperty(Component\VCard $input, Component\VCard $outp

// Lastly, we need to see if there's a need for a VALUE parameter.
//
// We can do that by instantating a empty property with that name, and
// We can do that by instantiating a empty property with that name, and
// seeing if the default valueType is identical to the current one.
$tempProperty = $output->createProperty($newProperty->name);
if ($tempProperty->getValueType() !== $newProperty->getValueType()) {
Expand Down

0 comments on commit 0fec2b0

Please sign in to comment.