Fix typos found by codespell

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil
2015-02-08 17:52:45 +01:00
parent 909c6a8bdf
commit 0fc73b2bbb
28 changed files with 48 additions and 48 deletions

View File

@@ -388,9 +388,9 @@ class idna_convert
}
/**
* Use this method to get the last error ocurred
* Use this method to get the last error occurred
* @param void
* @return string The last error, that occured
* @return string The last error, that occurred
*/
public function get_last_error()
{
@@ -416,7 +416,7 @@ class idna_convert
$this->_error('The given encoded string was empty');
return false;
}
// Find last occurence of the delimiter
// Find last occurrence of the delimiter
$delim_pos = strrpos($encoded, '-');
if ($delim_pos > self::byteLength($this->_punycode_prefix)) {
for ($k = self::byteLength($this->_punycode_prefix); $k < $delim_pos; ++$k) {
@@ -606,7 +606,7 @@ class idna_convert
// Mapping
// Walking through the input array, performing the required steps on each of
// the input chars and putting the result into the output array
// While mapping required chars we apply the cannonical ordering
// While mapping required chars we apply the canonical ordering
foreach ($input as $v) {
// Map to nothing == skip that code point
if (in_array($v, self::$NP['map_nothing'])) continue;
@@ -743,7 +743,7 @@ class idna_convert
}
/**
* Applies the cannonical ordering of a decomposed UCS4 sequence
* Applies the canonical ordering of a decomposed UCS4 sequence
* @param array Decomposed UCS4 sequence
* @return array Ordered USC4 sequence
*/