Completed
Push — master ( b21fa6...e7d730 )
by Stephanie
02:17
created
classes/controllers/FrmFormsController.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -1126,6 +1126,7 @@  discard block
 block discarded – undo
1126 1126
 	 * Get an array of the helper shortcodes to display in the customization panel
1127 1127
 	 *
1128 1128
 	 * @since 2.0.6
1129
+	 * @param boolean $settings_tab
1129 1130
 	 */
1130 1131
 	private static function get_shortcode_helpers( $settings_tab ) {
1131 1132
 		$entry_shortcodes = array(
@@ -1204,6 +1205,9 @@  discard block
 block discarded – undo
1204 1205
 		return $content;
1205 1206
 	}
1206 1207
 
1208
+	/**
1209
+	 * @param boolean $entry
1210
+	 */
1207 1211
 	private static function get_entry_by_param( &$entry ) {
1208 1212
 		if ( ! $entry || ! is_object( $entry ) ) {
1209 1213
 			if ( ! $entry || ! is_numeric( $entry ) ) {
@@ -1498,6 +1502,9 @@  discard block
 block discarded – undo
1498 1502
 		return $form;
1499 1503
 	}
1500 1504
 
1505
+	/**
1506
+	 * @param string $id
1507
+	 */
1501 1508
 	private static function maybe_get_form_to_show( $id ) {
1502 1509
 		$form = false;
1503 1510
 
@@ -1921,6 +1928,7 @@  discard block
 block discarded – undo
1921 1928
 
1922 1929
 	/**
1923 1930
 	 * @since 2.0.8
1931
+	 * @param string $content
1924 1932
 	 */
1925 1933
 	private static function maybe_minimize_form( $atts, &$content ) {
1926 1934
 		// check if minimizing is turned on
Please login to merge, or discard this patch.
classes/helpers/FrmFormsHelper.php 1 patch
Doc Comments   +8 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
 	 */
@@ -1389,7 +1393,7 @@  discard block
 block discarded – undo
1389 1393
 	 *
1390 1394
 	 * @param array $values The $_POST array, which contains the values submitted in a form.
1391 1395
 	 *
1392
-	 * @return bool|string A warning message about unsafe params or false.
1396
+	 * @return false|string A warning message about unsafe params or false.
1393 1397
 	 */
1394 1398
 	private static function check_redirect_url_for_unsafe_params( $values ) {
1395 1399
 		if ( ! isset( $values['options'] ) ) {
@@ -1434,7 +1438,7 @@  discard block
 block discarded – undo
1434 1438
 	 *
1435 1439
 	 * @param array $unsafe_params_in_redirect Array of params from the redirect URL whose names are reserved words.
1436 1440
 	 *
1437
-	 * @return bool|string A string with an unsafe param message or false.
1441
+	 * @return false|string A string with an unsafe param message or false.
1438 1442
 	 */
1439 1443
 	private static function create_unsafe_param_warning( $unsafe_params_in_redirect ) {
1440 1444
 		$count                = count( $unsafe_params_in_redirect );
@@ -1465,7 +1469,7 @@  discard block
 block discarded – undo
1465 1469
 	 *
1466 1470
 	 * @since 4.04
1467 1471
 	 *
1468
-	 * @return array Array of WordPress reserved words.
1472
+	 * @return string[] Array of WordPress reserved words.
1469 1473
 	 */
1470 1474
 	public static function reserved_words() {
1471 1475
 		return array(
Please login to merge, or discard this patch.