Completed
Push — master ( fb1289...6e71b7 )
by Stephanie
15s queued 11s
created
classes/helpers/FrmFormsHelper.php 1 patch
Doc Comments   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -219,6 +219,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	 */
@@ -1018,6 +1022,9 @@  discard block
 block discarded – undo
1018 1022
 		return $link;
1019 1023
 	}
1020 1024
 
1025
+	/**
1026
+	 * @return integer
1027
+	 */
1021 1028
 	public static function edit_form_link_label( $data ) {
1022 1029
 		$name = self::get_form_name_from_data( $data );
1023 1030
 		if ( ! $name ) {
@@ -1444,7 +1451,7 @@  discard block
 block discarded – undo
1444 1451
 	 *
1445 1452
 	 * @param array $values The $_POST array, which contains the values submitted in a form.
1446 1453
 	 *
1447
-	 * @return bool|string A warning message about unsafe params or false.
1454
+	 * @return false|string A warning message about unsafe params or false.
1448 1455
 	 */
1449 1456
 	private static function check_redirect_url_for_unsafe_params( $values ) {
1450 1457
 		if ( ! isset( $values['options'] ) ) {
@@ -1492,7 +1499,7 @@  discard block
 block discarded – undo
1492 1499
 	 *
1493 1500
 	 * @param array $unsafe_params_in_redirect Array of params from the redirect URL whose names are reserved words.
1494 1501
 	 *
1495
-	 * @return bool|string A string with an unsafe param message or false.
1502
+	 * @return false|string A string with an unsafe param message or false.
1496 1503
 	 */
1497 1504
 	private static function create_unsafe_param_warning( $unsafe_params_in_redirect ) {
1498 1505
 		$count                = count( $unsafe_params_in_redirect );
@@ -1523,7 +1530,7 @@  discard block
 block discarded – undo
1523 1530
 	 *
1524 1531
 	 * @since 4.04
1525 1532
 	 *
1526
-	 * @return array Array of WordPress reserved words.
1533
+	 * @return string[] Array of WordPress reserved words.
1527 1534
 	 */
1528 1535
 	public static function reserved_words() {
1529 1536
 		return array(
Please login to merge, or discard this patch.