Fix typos found by codespell
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -44,10 +44,10 @@ class idna_convert_wrapper
|
||||
* Encode a domain name, a email address or a list of one of both.
|
||||
*
|
||||
* @param string May be either a single domain name, e single email address or a list of one
|
||||
* seperated either by ',', ';' or ' '.
|
||||
* separated either by ',', ';' or ' '.
|
||||
*
|
||||
* @return string Returns either a single domain name, a single email address or a list of one of
|
||||
* both seperated by the same string as the input.
|
||||
* both separated by the same string as the input.
|
||||
*/
|
||||
|
||||
public function encode($to_encode)
|
||||
@@ -59,10 +59,10 @@ class idna_convert_wrapper
|
||||
* Decode a domain name, a email address or a list of one of both.
|
||||
*
|
||||
* @param string May be either a single domain name, e single email address or a list of one
|
||||
* seperated either by ',', ';' or ' '.
|
||||
* separated either by ',', ';' or ' '.
|
||||
*
|
||||
* @return string Returns either a single domain name, a single email address or a list of one of
|
||||
* both seperated by the same string as the input.
|
||||
* both separated by the same string as the input.
|
||||
*/
|
||||
|
||||
public function decode($to_decode)
|
||||
@@ -71,7 +71,7 @@ class idna_convert_wrapper
|
||||
}
|
||||
|
||||
/**
|
||||
* Do the real de- or encoding. First checks if a list is submitted and seperates it. Afterwards sends
|
||||
* Do the real de- or encoding. First checks if a list is submitted and separates it. Afterwards sends
|
||||
* each entry to the idna converter to do the converting.
|
||||
*
|
||||
* @param string May be either 'decode' or 'encode'.
|
||||
|
||||
Reference in New Issue
Block a user