Completed
Push — master ( b2658b...205b7e )
by Jamie
03:44
created
classes/helpers/FrmFormsHelper.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -375,6 +375,9 @@
 block discarded – undo
375 375
         $reset_fields = true;
376 376
     }
377 377
 
378
+    /**
379
+     * @return string
380
+     */
378 381
     public static function replace_shortcodes( $html, $form, $title = false, $description = false, $values = array() ) {
379 382
 		foreach ( array( 'form_name' => $title, 'form_description' => $description, 'entry_key' => true ) as $code => $show ) {
380 383
             if ( $code == 'form_name' ) {
Please login to merge, or discard this patch.
classes/helpers/FrmListHelper.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -253,6 +253,9 @@  discard block
 block discarded – undo
253 253
 <?php
254 254
 	}
255 255
 
256
+	/**
257
+	 * @param string $param_name
258
+	 */
256 259
 	private function hidden_search_inputs( $param_name ) {
257 260
 		if ( ! empty( $_REQUEST[ $param_name ] ) ) {
258 261
 			echo '<input type="hidden" name="' . esc_attr( $param_name ) . '" value="' . esc_attr( $_REQUEST[ $param_name ] ) . '" />';
@@ -389,6 +392,9 @@  discard block
 block discarded – undo
389 392
 		return $action;
390 393
 	}
391 394
 
395
+	/**
396
+	 * @param string $action_name
397
+	 */
392 398
 	private static function get_bulk_action( $action_name ) {
393 399
 		$action = false;
394 400
 		if ( isset( $_REQUEST[ $action_name ] ) && -1 != sanitize_text_field( $_REQUEST[ $action_name ] ) ) {
Please login to merge, or discard this patch.
classes/models/FrmPointers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 	/**
46 46
 	 * Get the singleton instance of this class
47 47
 	 *
48
-	 * @return object
48
+	 * @return FrmPointers
49 49
 	 */
50 50
 	public static function get_instance() {
51 51
 		if ( ! ( self::$instance instanceof self ) ) {
Please login to merge, or discard this patch.
classes/controllers/FrmStylesController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -121,6 +121,9 @@
 block discarded – undo
121 121
 		$stylesheet_urls['formidable'] = $url;
122 122
 	}
123 123
 
124
+	/**
125
+	 * @param string $version
126
+	 */
124 127
 	private static function get_css_version( $css_key, $version ) {
125 128
 		if ( 'formidable' == $css_key ) {
126 129
 			$this_version = get_option( 'frm_last_style_update' );
Please login to merge, or discard this patch.
classes/models/FrmStyle.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 	public $id = 0; // the id of the post
5 5
 
6 6
 	/**
7
-	 * @param int|string $id The id of the stylsheet or 'default'
7
+	 * @param integer $id The id of the stylsheet or 'default'
8 8
 	 */
9 9
 	public function __construct( $id = 0 ) {
10 10
         $this->id = $id;
@@ -120,6 +120,9 @@  discard block
 block discarded – undo
120 120
         set_transient('frmpro_css', $css);
121 121
 	}
122 122
 
123
+	/**
124
+	 * @param string $filename
125
+	 */
123 126
 	private function get_css_content( $filename ) {
124 127
 		$css = '/* ' . __( 'WARNING: Any changes made to this file will be lost when your Formidable settings are updated', 'formidable' ) . ' */' . "\n";
125 128
 
Please login to merge, or discard this patch.
classes/models/FrmDb.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@
 block discarded – undo
308 308
 	 *
309 309
 	 * @since 2.02.05
310 310
 	 * @param string $key
311
-	 * @param int|string $value
311
+	 * @param string $value
312 312
 	 * @param string $where
313 313
 	 */
314 314
     private static function add_query_placeholder( $key, $value, &$where ) {
Please login to merge, or discard this patch.
classes/models/FrmEDD_SL_Plugin_Updater.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	 * @uses api_request()
71 71
 	 *
72 72
 	 * @param array   $_transient_data Update array build by WordPress.
73
-	 * @return array Modified update array with custom plugin data.
73
+	 * @return stdClass Modified update array with custom plugin data.
74 74
 	 */
75 75
 	public function check_update( $_transient_data ) {
76 76
 
Please login to merge, or discard this patch.
classes/controllers/FrmFormsController.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -159,6 +159,9 @@  discard block
 block discarded – undo
159 159
 		wp_die();
160 160
 	}
161 161
 
162
+	/**
163
+	 * @param string $field
164
+	 */
162 165
 	private static function edit_in_place_value( $field ) {
163 166
 		check_ajax_referer( 'frm_ajax', 'nonce' );
164 167
 		FrmAppHelper::permission_check('frm_edit_forms', 'hide');
@@ -203,6 +206,9 @@  discard block
 block discarded – undo
203 206
         }
204 207
     }
205 208
 
209
+    /**
210
+     * @return string
211
+     */
206 212
     public static function bulk_create_template( $ids ) {
207 213
         FrmAppHelper::permission_check( 'frm_edit_forms' );
208 214
 
@@ -698,6 +704,7 @@  discard block
 block discarded – undo
698 704
 	/**
699 705
 	 * Get an array of the helper shortcodes to display in the customization panel
700 706
 	 * @since 2.0.6
707
+	 * @param boolean $settings_tab
701 708
 	 */
702 709
 	private static function get_shortcode_helpers( $settings_tab ) {
703 710
 		$entry_shortcodes = array(
@@ -771,6 +778,9 @@  discard block
 block discarded – undo
771 778
         return $content;
772 779
     }
773 780
 
781
+	/**
782
+	 * @param boolean $entry
783
+	 */
774 784
 	private static function get_entry_by_param( &$entry ) {
775 785
 		if ( ! $entry || ! is_object( $entry ) ) {
776 786
 			if ( ! $entry || ! is_numeric( $entry ) ) {
@@ -1079,6 +1089,9 @@  discard block
 block discarded – undo
1079 1089
 		return $form;
1080 1090
     }
1081 1091
 
1092
+	/**
1093
+	 * @param string $id
1094
+	 */
1082 1095
 	private static function maybe_get_form_to_show( $id ) {
1083 1096
 		$form = false;
1084 1097
 
@@ -1253,6 +1266,7 @@  discard block
 block discarded – undo
1253 1266
 
1254 1267
 	/**
1255 1268
 	 * @since 2.0.8
1269
+	 * @param string $content
1256 1270
 	 */
1257 1271
 	private static function maybe_minimize_form( $atts, &$content ) {
1258 1272
 		// check if minimizing is turned on
Please login to merge, or discard this patch.
classes/helpers/FrmAppHelper.php 1 patch
Doc Comments   +14 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
         return get_option('blogname');
58 58
     }
59 59
 
60
+	/**
61
+	 * @param string $url
62
+	 */
60 63
 	public static function make_affiliate_url( $url ) {
61 64
 		$affiliate_id = self::get_affiliate();
62 65
 		if ( ! empty( $affiliate_id ) ) {
@@ -356,7 +359,7 @@  discard block
 block discarded – undo
356 359
 	 * Sanitize the value, and allow some HTML
357 360
 	 * @since 2.0
358 361
 	 * @param string $value
359
-	 * @param array $allowed
362
+	 * @param string[] $allowed
360 363
 	 * @return string
361 364
 	 */
362 365
 	public static function kses( $value, $allowed = array() ) {
@@ -464,6 +467,7 @@  discard block
 block discarded – undo
464 467
 	/**
465 468
 	 * Keep track of the keys cached in each group so they can be deleted
466 469
 	 * in Redis and Memcache
470
+	 * @param string $group
467 471
 	 */
468 472
 	public static function add_key_to_group_cache( $key, $group ) {
469 473
 		$cached = self::get_group_cached_keys( $group );
@@ -784,6 +788,9 @@  discard block
 block discarded – undo
784 788
 		return FrmFieldsHelper::prepare_other_input( $args, $other_opt, $checked );
785 789
     }
786 790
 
791
+	/**
792
+	 * @param string $function
793
+	 */
787 794
 	public static function recursive_function_map( $value, $function ) {
788 795
 		if ( is_array( $value ) ) {
789 796
 			$original_function = $function;
@@ -1217,6 +1224,9 @@  discard block
 block discarded – undo
1217 1224
         return $sub . (($len < $original_len) ? $continue : '');
1218 1225
     }
1219 1226
 
1227
+	/**
1228
+	 * @param string[] $function_names
1229
+	 */
1220 1230
 	public static function mb_function( $function_names, $args ) {
1221 1231
 		$mb_function_name = $function_names[0];
1222 1232
 		$function_name = $function_names[1];
@@ -1250,6 +1260,9 @@  discard block
 block discarded – undo
1250 1260
         return $formatted;
1251 1261
     }
1252 1262
 
1263
+	/**
1264
+	 * @param string $time_format
1265
+	 */
1253 1266
 	private static function add_time_to_date( $time_format, $date ) {
1254 1267
 		if ( empty( $time_format ) ) {
1255 1268
 			$time_format = get_option('time_format');
Please login to merge, or discard this patch.