Completed
Pull Request — master (#136)
by Stephanie
02:15
created
classes/helpers/FrmAppHelper.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@  discard block
 block discarded – undo
69 69
 		return $url;
70 70
 	}
71 71
 
72
+	/**
73
+	 * @return string
74
+	 */
72 75
 	public static function get_affiliate() {
73 76
 		return absint( apply_filters( 'frm_affiliate_id', 0 ) );
74 77
 	}
@@ -134,6 +137,9 @@  discard block
 block discarded – undo
134 137
 		return $frm_settings;
135 138
 	}
136 139
 
140
+	/**
141
+	 * @return string
142
+	 */
137 143
 	public static function get_menu_name() {
138 144
 		$frm_settings = self::get_settings();
139 145
 
@@ -1116,6 +1122,8 @@  discard block
 block discarded – undo
1116 1122
 	 * This is for reverse compatibility with switching 3 params to 1.
1117 1123
 	 *
1118 1124
 	 * @since 4.03.06
1125
+	 * @param string $page_id
1126
+	 * @param boolean $truncate
1119 1127
 	 */
1120 1128
 	private static function prep_page_dropdown_params( $page_id, $truncate, &$args ) {
1121 1129
 		if ( ! is_array( $args ) ) {
@@ -1353,6 +1361,9 @@  discard block
 block discarded – undo
1353 1361
 		return ( is_array( $values ) && in_array( $current, $values ) ) || ( ! is_array( $values ) && $values == $current );
1354 1362
 	}
1355 1363
 
1364
+	/**
1365
+	 * @param string $function
1366
+	 */
1356 1367
 	public static function recursive_function_map( $value, $function ) {
1357 1368
 		if ( is_array( $value ) ) {
1358 1369
 			$original_function = $function;
@@ -1401,6 +1412,9 @@  discard block
 block discarded – undo
1401 1412
 		return $return;
1402 1413
 	}
1403 1414
 
1415
+	/**
1416
+	 * @return string
1417
+	 */
1404 1418
 	public static function esc_textarea( $text, $is_rich_text = false ) {
1405 1419
 		$safe_text = str_replace( '"', '"', $text );
1406 1420
 		if ( ! $is_rich_text ) {
@@ -1613,6 +1627,9 @@  discard block
 block discarded – undo
1613 1627
 		return $values;
1614 1628
 	}
1615 1629
 
1630
+	/**
1631
+	 * @param string $fields
1632
+	 */
1616 1633
 	private static function prepare_field_arrays( $fields, $record, array &$values, $args ) {
1617 1634
 		if ( ! empty( $fields ) ) {
1618 1635
 			foreach ( (array) $fields as $field ) {
@@ -1816,6 +1833,9 @@  discard block
 block discarded – undo
1816 1833
 		return $sub . ( ( $len < $original_len ) ? $continue : '' );
1817 1834
 	}
1818 1835
 
1836
+	/**
1837
+	 * @param string[] $function_names
1838
+	 */
1819 1839
 	public static function mb_function( $function_names, $args ) {
1820 1840
 		$mb_function_name = $function_names[0];
1821 1841
 		$function_name    = $function_names[1];
@@ -1850,6 +1870,9 @@  discard block
 block discarded – undo
1850 1870
 		return $formatted;
1851 1871
 	}
1852 1872
 
1873
+	/**
1874
+	 * @param string $time_format
1875
+	 */
1853 1876
 	private static function add_time_to_date( $time_format, $date ) {
1854 1877
 		if ( empty( $time_format ) ) {
1855 1878
 			$time_format = get_option( 'time_format' );
@@ -2337,6 +2360,7 @@  discard block
 block discarded – undo
2337 2360
 	 * If Pro is far outdated, show a message.
2338 2361
 	 *
2339 2362
 	 * @since 4.0.01
2363
+	 * @param string $min_version
2340 2364
 	 */
2341 2365
 	public static function min_pro_version_notice( $min_version ) {
2342 2366
 		if ( ! self::is_formidable_admin() ) {
Please login to merge, or discard this patch.