Commit 21366f25 authored by Matthias Sommerfeld's avatar Matthias Sommerfeld

Fix minor issues in composer.json and PHPDoc

parent a40748a2
......@@ -11,12 +11,6 @@
"role": "Developer"
}
],
"autoload": {
"classmap": [
"idna_convert.class.php",
"uctc.php"
]
},
"require": {
"ext-pcre": "*",
"php": ">=5.6.0"
......
......@@ -278,7 +278,7 @@ class IdnaConvert {
/**
* Encode a given UTF-8 domain name
* @param string $decoded Domain name (UTF-8 or UCS-4)
* [@param string $one_time_encoding Desired input encoding, see {@link set_parameter}]
* [@param boolean $one_time_encoding Desired input encoding, see {@link set_parameter}]
* @return string Encoded Domain name (ACE string)
*/
public function encode($decoded, $one_time_encoding = false)
......
......@@ -25,7 +25,7 @@
/*
* @author Matthias Sommerfeld <mso@phlylabs.de>
* @copyright 2004-2016 phlyLabs Berlin, http://phlylabs.de
* @version 1.0.0-main 2016-01-10
* @version 1.0.1 2016-01-24
*/
namespace Mso\IdnaConvert;
......@@ -62,7 +62,8 @@ class Punycode implements PunycodeInterface
/**
* the constructor
*
* @param array|null $params Parameters to control the class' behaviour
* @param $NamePrepData NamePrepDataInterface inject NamePrepData object
* @param $UnicodeTranscoder UnicodeTranscoderInterface inject Unicode Transcoder
* @since 0.5.2
*/
public function __construct(NamePrepDataInterface $NamePrepData, UnicodeTranscoderInterface $UnicodeTranscoder)
......
......@@ -13,7 +13,7 @@
* @package IdnaConvert
* @author Matthias Sommerfeld <mso@phlyLabs.de>
* @copyright 2003-2016 phlyLabs Berlin, http://phlylabs.de
* @version 0.1.0 2016-01-08
* @version 0.1.1 2016-01-24
*/
namespace Mso\IdnaConvert;
......@@ -163,8 +163,10 @@ class UnicodeTranscoder implements UnicodeTranscoderInterface
}
/**
* Convert UCS-4 string into UTF-8 string
* Convert UCS-4 arary into UTF-8 string
* See utf8_ucs4array() for details
* @param $input array Array of UCS-4 codepoints
* @return string
* @access public
*/
public static function ucs4array_utf8($input)
......@@ -296,6 +298,8 @@ class UnicodeTranscoder implements UnicodeTranscoderInterface
/**
* Convert UCS-4 array into UCS-4 string (Little Endian at the moment)
* @param $input array UCS-4 code points
* @return string
* @access public
*/
public static function ucs4array_ucs4($input)
......@@ -309,7 +313,9 @@ class UnicodeTranscoder implements UnicodeTranscoderInterface
}
/**
* Convert UCS-4 string (LE in the moment) into UCS-4 garray
* Convert UCS-4 string (LE ar the moment) into UCS-4 array
* @param $input string UCS-4 LE string
* @return array
* @access public
*/
public static function ucs4_ucs4array($input)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment