@@ -42,6 +42,9 @@ discard block |
||
42 | 42 | return $numbers; |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param integer $number |
|
47 | + */ |
|
45 | 48 | public function index_for_number( $number ) { |
46 | 49 | if ( !isset( $this->_index_for_number ) ) { |
47 | 50 | $gettext = new Gettext_Translations; |
@@ -2014,6 +2017,9 @@ discard block |
||
2014 | 2017 | return isset( $instance->locales[ $slug ] )? $instance->locales[ $slug ] : null; |
2015 | 2018 | } |
2016 | 2019 | |
2020 | + /** |
|
2021 | + * @param string $field_name |
|
2022 | + */ |
|
2017 | 2023 | public static function by_field( $field_name, $field_value ) { |
2018 | 2024 | $instance = GP_Locales::instance(); |
2019 | 2025 | $result = false; |
@@ -1004,7 +1004,6 @@ discard block |
||
1004 | 1004 | * Turn on printing of grunion.css stylesheet |
1005 | 1005 | * @see ::style() |
1006 | 1006 | * @internal |
1007 | - * @param bool $style |
|
1008 | 1007 | */ |
1009 | 1008 | static function _style_on() { |
1010 | 1009 | return self::style( true ); |
@@ -1116,6 +1115,9 @@ discard block |
||
1116 | 1115 | return $r; |
1117 | 1116 | } |
1118 | 1117 | |
1118 | + /** |
|
1119 | + * @param Grunion_Contact_Form $form |
|
1120 | + */ |
|
1119 | 1121 | static function success_message( $feedback_id, $form ) { |
1120 | 1122 | $r_success_message = ''; |
1121 | 1123 | |
@@ -1192,7 +1194,7 @@ discard block |
||
1192 | 1194 | * |
1193 | 1195 | * @param array $attributes Key => Value pairs as parsed by shortcode_parse_atts() |
1194 | 1196 | * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field] |
1195 | - * @return HTML for the contact form field |
|
1197 | + * @return string for the contact form field |
|
1196 | 1198 | */ |
1197 | 1199 | static function parse_contact_field( $attributes, $content ) { |
1198 | 1200 | // Don't try to parse contact form fields if not inside a contact form |
@@ -699,8 +699,7 @@ discard block |
||
699 | 699 | * Render the events |
700 | 700 | * |
701 | 701 | * @param string $url (default: '') |
702 | - * @param string $context (default: 'widget') or 'shortcode' |
|
703 | - * @return mixed bool|string false on failure, rendered HTML string on success. |
|
702 | + * @return false|string bool|string false on failure, rendered HTML string on success. |
|
704 | 703 | */ |
705 | 704 | public function render( $url = '', $args = array() ) { |
706 | 705 | |
@@ -857,8 +856,7 @@ discard block |
||
857 | 856 | * Wrapper function for iCalendarReader->render() |
858 | 857 | * |
859 | 858 | * @param string $url (default: '') |
860 | - * @param string $context (default: 'widget') or 'shortcode' |
|
861 | - * @return mixed bool|string false on failure, rendered HTML string on success. |
|
859 | + * @return false|string bool|string false on failure, rendered HTML string on success. |
|
862 | 860 | */ |
863 | 861 | function icalendar_render_events( $url = '', $args = array() ) { |
864 | 862 | $ical = new iCalendarReader(); |
@@ -302,7 +302,7 @@ |
||
302 | 302 | * |
303 | 303 | * NOTE: servers that do not support inet_pton cannot support ipv6. |
304 | 304 | * |
305 | - * @param $ip |
|
305 | + * @param string $ip |
|
306 | 306 | * @param $range_low |
307 | 307 | * @param $range_high |
308 | 308 | * |
@@ -211,6 +211,9 @@ discard block |
||
211 | 211 | |
212 | 212 | /* Mailhide related code */ |
213 | 213 | |
214 | +/** |
|
215 | + * @param string $ky |
|
216 | + */ |
|
214 | 217 | function _recaptcha_aes_encrypt($val,$ky) { |
215 | 218 | if (! function_exists ("mcrypt_encrypt")) { |
216 | 219 | die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); |
@@ -222,6 +225,9 @@ discard block |
||
222 | 225 | } |
223 | 226 | |
224 | 227 | |
228 | +/** |
|
229 | + * @param null|string $x |
|
230 | + */ |
|
225 | 231 | function _recaptcha_mailhide_urlbase64 ($x) { |
226 | 232 | return strtr(base64_encode ($x), '+/', '-_'); |
227 | 233 | } |
@@ -29,6 +29,9 @@ discard block |
||
29 | 29 | return $this->id; |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @return string |
|
34 | + */ |
|
32 | 35 | public function get_share_url( $post_id ) { |
33 | 36 | return apply_filters( 'sharing_permalink', get_permalink( $post_id ), $post_id, $this->id ); |
34 | 37 | } |
@@ -172,6 +175,9 @@ discard block |
||
172 | 175 | do_action( 'sharing_bump_stats', array( 'service' => $this, 'post' => $post ) ); |
173 | 176 | } |
174 | 177 | |
178 | + /** |
|
179 | + * @param string $name |
|
180 | + */ |
|
175 | 181 | public function js_dialog( $name, $params = array() ) { |
176 | 182 | if ( true !== $this->open_link_in_new ) |
177 | 183 | return; |
@@ -196,6 +196,9 @@ discard block |
||
196 | 196 | return $options; |
197 | 197 | } |
198 | 198 | |
199 | +/** |
|
200 | + * @param string $option |
|
201 | + */ |
|
199 | 202 | function stats_get_option( $option ) { |
200 | 203 | $options = stats_get_options(); |
201 | 204 | |
@@ -1138,6 +1141,9 @@ discard block |
||
1138 | 1141 | <?php |
1139 | 1142 | } |
1140 | 1143 | |
1144 | +/** |
|
1145 | + * @param string $table |
|
1146 | + */ |
|
1141 | 1147 | function stats_get_csv( $table, $args = null ) { |
1142 | 1148 | $defaults = array( 'end' => false, 'days' => false, 'limit' => 3, 'post_id' => false, 'summarize' => '' ); |
1143 | 1149 |