@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | /** |
215 | 215 | * Generate the script tags necessary for the Gravity Forms Merge Tag picker to work. |
216 | 216 | * |
217 | - * @param mixed $curr_form Form ID |
|
217 | + * @param string $curr_form Form ID |
|
218 | 218 | * @return null|string Merge tags html; NULL if $curr_form isn't defined. |
219 | 219 | */ |
220 | 220 | public static function render_merge_tags_scripts( $curr_form ) { |
@@ -290,7 +290,6 @@ discard block |
||
290 | 290 | * Render shortcode hint in the Publish metabox |
291 | 291 | * |
292 | 292 | * @access public |
293 | - * @param object $post |
|
294 | 293 | * @return void |
295 | 294 | */ |
296 | 295 | function render_shortcode_hint() { |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * @param string $icon_class_name Icon class used in vertical tabs. Supports non-dashicon. If dashicons, no need for `dashicons ` prefix |
96 | 96 | * @param string $callback Function to render the metabox, if $file is not defined. |
97 | 97 | * @param null $callback_args Arguments passed to the callback |
98 | - * @return void |
|
98 | + * @return GravityView_Metabox_Tab |
|
99 | 99 | */ |
100 | 100 | function __construct( $id, $title = '', $file = '', $icon_class_name = '', $callback = '', $callback_args = null ) { |
101 | 101 |
@@ -144,7 +144,6 @@ |
||
144 | 144 | * Enqueue scripts and styles |
145 | 145 | * |
146 | 146 | * @access public |
147 | - * @param mixed $hook |
|
148 | 147 | * @return void |
149 | 148 | */ |
150 | 149 | function add_scripts_and_styles() { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | * |
171 | 171 | * @uses GravityView_frontend::get_search_criteria() Convert the $_POST search request into a properly formatted request. |
172 | 172 | * @access public |
173 | - * @return void|boolean |
|
173 | + * @return null|false |
|
174 | 174 | */ |
175 | 175 | public function process_bulk_action() { |
176 | 176 | if ( ! class_exists( 'RGForms' ) ) { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | * @param array|boolean $entries If array, array of entry IDs that are to be updated. If true: update all entries. |
253 | 253 | * @param int $approved Approved status. If `0`: unapproved, if not empty, `Approved` |
254 | 254 | * @param int $form_id The Gravity Forms Form ID |
255 | - * @return boolean|void |
|
255 | + * @return false|null |
|
256 | 256 | */ |
257 | 257 | private static function update_bulk( $entries, $approved, $form_id ) { |
258 | 258 | |
@@ -284,7 +284,6 @@ discard block |
||
284 | 284 | * |
285 | 285 | * @access public |
286 | 286 | * @static |
287 | - * @param int $lead_id (default: 0) |
|
288 | 287 | * @param int $approved (default: 0) |
289 | 288 | * @param int $form_id (default: 0) |
290 | 289 | * @param int $approvedcolumn (default: 0) |
@@ -470,7 +469,7 @@ discard block |
||
470 | 469 | * @access public |
471 | 470 | * @static |
472 | 471 | * @param mixed $form GF Form or Form ID |
473 | - * @return false|null|string Returns the input ID of the approved field. Returns NULL if no approved fields were found. Returns false if $form_id wasn't set. |
|
472 | + * @return integer Returns the input ID of the approved field. Returns NULL if no approved fields were found. Returns false if $form_id wasn't set. |
|
474 | 473 | */ |
475 | 474 | static public function get_approved_column( $form ) { |
476 | 475 |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | |
327 | 327 | /** |
328 | 328 | * Get HTML links relating to a connected form, like Edit, Entries, Settings, Preview |
329 | - * @param array|int $form_id Gravity Forms forms array, or the form ID |
|
329 | + * @param array|int $form Gravity Forms forms array, or the form ID |
|
330 | 330 | * @param boolean $include_form_link Whether to include the bold name of the form in the output |
331 | 331 | * @return string HTML links |
332 | 332 | */ |
@@ -547,7 +547,7 @@ discard block |
||
547 | 547 | * $blacklist_field_types - contains the field types which are not proper to be shown in a directory. |
548 | 548 | * |
549 | 549 | * @access public |
550 | - * @param int $form_id Gravity Forms Form ID (default: '') |
|
550 | + * @param int $form Gravity Forms Form ID (default: '') |
|
551 | 551 | * @param string $context (default: 'single') |
552 | 552 | * @return void |
553 | 553 | */ |
@@ -592,6 +592,10 @@ discard block |
||
592 | 592 | $this->render_additional_fields( $form, $context ); |
593 | 593 | } |
594 | 594 | |
595 | + /** |
|
596 | + * @param string $form |
|
597 | + * @param string $context |
|
598 | + */ |
|
595 | 599 | function render_additional_fields( $form, $context ) { |
596 | 600 | |
597 | 601 | /** |
@@ -790,6 +794,7 @@ discard block |
||
790 | 794 | * @param string $zone Either 'single', 'directory', 'header', 'footer' |
791 | 795 | * @param array $rows The layout structure: rows, columns and areas |
792 | 796 | * @param array $values Saved objects |
797 | + * @param string $template_id |
|
793 | 798 | * @return void |
794 | 799 | */ |
795 | 800 | function render_active_areas( $template_id, $type, $zone, $rows, $values ) { |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | * Remove any style or script non-registered in the no conflict mode |
312 | 312 | * @todo Move this to GravityView_Admin_Views |
313 | 313 | * @param WP_Dependencies $wp_objects Object of WP_Styles or WP_Scripts |
314 | - * @param array $required_objects List of registered script/style handles |
|
314 | + * @param string[] $required_objects List of registered script/style handles |
|
315 | 315 | * @param string $type Either 'styles' or 'scripts' |
316 | 316 | * @return void |
317 | 317 | */ |
@@ -472,6 +472,9 @@ discard block |
||
472 | 472 | |
473 | 473 | new GravityView_Admin; |
474 | 474 | |
475 | +/** |
|
476 | + * @param string $page |
|
477 | + */ |
|
475 | 478 | function gravityview_is_admin_page($hook = '', $page = NULL) { |
476 | 479 | return GravityView_Admin::is_admin_page( $hook, $page ); |
477 | 480 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @since 1.15 |
29 | 29 | * @param bool|false $mixed |
30 | 30 | * |
31 | - * @return bool |
|
31 | + * @return boolean|null |
|
32 | 32 | */ |
33 | 33 | private function _exit( $mixed = NULL ) { |
34 | 34 | |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * Import Gravity Form XML or JSON |
201 | 201 | * |
202 | 202 | * @param string $xml_or_json_path Path to form XML or JSON file |
203 | - * @return int|bool Imported form ID or false |
|
203 | + * @return false|string Imported form ID or false |
|
204 | 204 | */ |
205 | 205 | function import_form( $xml_or_json_path = '' ) { |
206 | 206 |
@@ -113,6 +113,9 @@ discard block |
||
113 | 113 | return ( sizeof( $ids ) === 1 ) ? $ids[0] : $ids; |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @return GravityView_View_Data |
|
118 | + */ |
|
116 | 119 | public static function getInstance( $passed_post = NULL ) { |
117 | 120 | |
118 | 121 | if( empty( self::$instance ) ) { |
@@ -152,7 +155,7 @@ discard block |
||
152 | 155 | * within the WordPress database. |
153 | 156 | * |
154 | 157 | * @see http://tommcfarlin.com/wordpress-post-exists-by-id/ Fastest check available |
155 | - * @param int $id The ID of the post to check |
|
158 | + * @param integer $view_id |
|
156 | 159 | * @return bool True if the post exists; otherwise, false. |
157 | 160 | * @since 1.0.0 |
158 | 161 | */ |
@@ -299,7 +302,7 @@ discard block |
||
299 | 302 | * |
300 | 303 | * @access public |
301 | 304 | * @param array $properties |
302 | - * @return void|boolean (field should be hidden) or false (field should be presented) |
|
305 | + * @return boolean (field should be hidden) or false (field should be presented) |
|
303 | 306 | */ |
304 | 307 | private function hide_field_check_conditions( $properties ) { |
305 | 308 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Should the panel be shown? If there are notices or warnings, yes. |
51 | - * @return boolean true: show panel; false: hide panel |
|
51 | + * @return boolean|null true: show panel; false: hide panel |
|
52 | 52 | */ |
53 | 53 | function set_visible( $visible = '' ) { |
54 | 54 | $this->_visible = ( count( $this->get_notices() ) || count( $this->get_warnings() ) ); |