@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * |
| 163 | 163 | * @param array $values The $_POST array, which contains the values submitted in a form. |
| 164 | 164 | * |
| 165 | - * @return bool|string A warning message about unsafe params or false. |
|
| 165 | + * @return false|string A warning message about unsafe params or false. |
|
| 166 | 166 | */ |
| 167 | 167 | private static function check_redirect_url_for_unsafe_params( $values ) { |
| 168 | 168 | if ( ! isset( $values['options'] ) ) { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * |
| 202 | 202 | * @param array $unsafe_params_in_redirect Array of params from the redirect URL whose names are reserved words. |
| 203 | 203 | * |
| 204 | - * @return bool|string A string with an unsafe param message or false. |
|
| 204 | + * @return false|string A string with an unsafe param message or false. |
|
| 205 | 205 | */ |
| 206 | 206 | private static function create_unsafe_param_warning( $unsafe_params_in_redirect ) { |
| 207 | 207 | $count = count( $unsafe_params_in_redirect ); |
@@ -1247,6 +1247,7 @@ discard block |
||
| 1247 | 1247 | * Get an array of the helper shortcodes to display in the customization panel |
| 1248 | 1248 | * |
| 1249 | 1249 | * @since 2.0.6 |
| 1250 | + * @param boolean $settings_tab |
|
| 1250 | 1251 | */ |
| 1251 | 1252 | private static function get_shortcode_helpers( $settings_tab ) { |
| 1252 | 1253 | $entry_shortcodes = array( |
@@ -1325,6 +1326,9 @@ discard block |
||
| 1325 | 1326 | return $content; |
| 1326 | 1327 | } |
| 1327 | 1328 | |
| 1329 | + /** |
|
| 1330 | + * @param boolean $entry |
|
| 1331 | + */ |
|
| 1328 | 1332 | private static function get_entry_by_param( &$entry ) { |
| 1329 | 1333 | if ( ! $entry || ! is_object( $entry ) ) { |
| 1330 | 1334 | if ( ! $entry || ! is_numeric( $entry ) ) { |
@@ -1618,6 +1622,9 @@ discard block |
||
| 1618 | 1622 | return $form; |
| 1619 | 1623 | } |
| 1620 | 1624 | |
| 1625 | + /** |
|
| 1626 | + * @param string $id |
|
| 1627 | + */ |
|
| 1621 | 1628 | private static function maybe_get_form_to_show( $id ) { |
| 1622 | 1629 | $form = false; |
| 1623 | 1630 | |
@@ -2064,6 +2071,7 @@ discard block |
||
| 2064 | 2071 | |
| 2065 | 2072 | /** |
| 2066 | 2073 | * @since 2.0.8 |
| 2074 | + * @param string $content |
|
| 2067 | 2075 | */ |
| 2068 | 2076 | private static function maybe_minimize_form( $atts, &$content ) { |
| 2069 | 2077 | // check if minimizing is turned on |
@@ -219,6 +219,7 @@ discard block |
||
| 219 | 219 | |
| 220 | 220 | /** |
| 221 | 221 | * @since 3.0 |
| 222 | + * @return string |
|
| 222 | 223 | */ |
| 223 | 224 | public static function get_field_link_icon( $field_type ) { |
| 224 | 225 | if ( is_array( $field_type ) && isset( $field_type['icon'] ) ) { |
@@ -698,6 +699,9 @@ discard block |
||
| 698 | 699 | $reset_fields = true; |
| 699 | 700 | } |
| 700 | 701 | |
| 702 | + /** |
|
| 703 | + * @return string |
|
| 704 | + */ |
|
| 701 | 705 | public static function replace_shortcodes( $html, $form, $title = false, $description = false, $values = array() ) { |
| 702 | 706 | $codes = array( |
| 703 | 707 | 'form_name' => $title, |
@@ -858,7 +862,7 @@ discard block |
||
| 858 | 862 | } |
| 859 | 863 | |
| 860 | 864 | /** |
| 861 | - * @param object|string|boolean $form |
|
| 865 | + * @param string|boolean $form |
|
| 862 | 866 | * |
| 863 | 867 | * @return string |
| 864 | 868 | */ |
@@ -1367,7 +1371,7 @@ discard block |
||
| 1367 | 1371 | * An edited list of reserved terms from the Codex. |
| 1368 | 1372 | * https://codex.wordpress.org/Reserved_Terms |
| 1369 | 1373 | * |
| 1370 | - * @return array Array of WordPress reserved words. |
|
| 1374 | + * @return string[] Array of WordPress reserved words. |
|
| 1371 | 1375 | */ |
| 1372 | 1376 | public static function reserved_words() { |
| 1373 | 1377 | return array( |