From da12eb6fe869851da84163e4cc7b1b03b2e05071 Mon Sep 17 00:00:00 2001 From: ozh Date: Fri, 3 May 2013 17:48:23 +0200 Subject: [PATCH] Typos and unused variables. Good job, PhpStorm! --- includes/functions-compat.php | 2 +- includes/functions-formatting.php | 1 - includes/functions-html.php | 13 +++--------- includes/functions-infos.php | 1 - includes/functions-l10n.php | 33 +++++++++++++++++++++++-------- includes/functions-plugins.php | 11 +++++------ includes/functions-xml.php | 2 +- includes/functions.php | 14 ++++++------- 8 files changed, 42 insertions(+), 35 deletions(-) diff --git a/includes/functions-compat.php b/includes/functions-compat.php index 5ddede4..77b79e2 100644 --- a/includes/functions-compat.php +++ b/includes/functions-compat.php @@ -13,7 +13,7 @@ function json_encode( $array ) { /** * Converts an associative array of arbitrary depth and dimension into JSON representation. Used for compatibility with older PHP builds. * - * @param $array The array to convert. + * @param array $array the array to convert. * @return mixed The resulting JSON string, or false if the argument was not an array. * @author Andy Rusterholz * @link http://php.net/json_encode (see comments) diff --git a/includes/functions-formatting.php b/includes/functions-formatting.php index c04e50e..cbb7a6e 100644 --- a/includes/functions-formatting.php +++ b/includes/functions-formatting.php @@ -287,7 +287,6 @@ function yourls_check_invalid_utf8( $string, $strip = false ) { * * @param string $string The text which is to be encoded. * @param mixed $quote_style Optional. Converts double quotes if set to ENT_COMPAT, both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. Also compatible with old values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES. - * @param string $charset Optional. The character encoding of the string. Default is false. * @param boolean $double_encode Optional. Whether to encode existing html entities. Default is false. * @return string The encoded text with HTML entities. */ diff --git a/includes/functions-html.php b/includes/functions-html.php index 709be65..fdeb229 100644 --- a/includes/functions-html.php +++ b/includes/functions-html.php @@ -331,7 +331,7 @@ function yourls_html_tfooter( $params = array() ) { * @param array $options array of 'value' => 'Text displayed' * @param string $selected optional 'value' from the $options array that will be highlighted * @param boolean $display false (default) to return, true to echo - * @return HTML content of the select element + * @return string HTML content of the select element */ function yourls_html_select( $name, $options, $selected = '', $display = false ) { $html = "