Completed
Branch master (3ac4b1)
by Zack
04:30
created
includes/admin/class.render.settings.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -414,7 +414,6 @@  discard block
 block discarded – undo
414 414
 	 * Render the HTML for an input text to be used on the field & widgets options
415 415
 	 * @param  string $name    Unique name of the field. Exampe: `fields[directory_list-title][5374ff6ab128b][custom_label]`
416 416
 	 * @param  string $current [current value]
417
-	 * @param  string $desc   Option description
418 417
 	 * @param string $add_merge_tags Add merge tags to the input?
419 418
 	 * @return string         [html tags]
420 419
 	 */
@@ -444,7 +443,6 @@  discard block
 block discarded – undo
444 443
 	 * Render the HTML for an textarea input to be used on the field & widgets options
445 444
 	 * @param  string $name    Unique name of the field. Exampe: `fields[directory_list-title][5374ff6ab128b][custom_label]`
446 445
 	 * @param  string $current [current value]
447
-	 * @param  string $desc   Option description
448 446
 	 * @param string $add_merge_tags Add merge tags to the input?
449 447
 	 * @return string         [html tags]
450 448
 	 */
Please login to merge, or discard this patch.
includes/admin/metaboxes/class-gravityview-admin-metaboxes.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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() {
Please login to merge, or discard this patch.
includes/admin/metaboxes/class-gravityview-metabox-tab.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/class-admin-add-shortcode.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,6 @@
 block discarded – undo
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() {
Please login to merge, or discard this patch.
includes/class-admin-approve-entries.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/class-admin-views.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
includes/class-admin.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
includes/class-ajax.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/class-api.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,6 @@  discard block
 block discarded – undo
108 108
 	 *
109 109
 	 * @since 1.9
110 110
 	 *
111
-	 * @param array $field_setting Array of settings for the field
112 111
 	 * @param string $format Format for width. "%" (default) will return
113 112
 	 *
114 113
 	 * @return string|null If not empty, string in $format format. Otherwise, null.
@@ -214,7 +213,6 @@  discard block
 block discarded – undo
214 213
 	 *
215 214
 	 * @access public
216 215
 	 * @param array $entry
217
-	 * @param integer $field
218 216
 	 * @return null|string
219 217
 	 */
220 218
 	public static function field_value( $entry, $field_settings, $format = 'html' ) {
@@ -967,7 +965,7 @@  discard block
 block discarded – undo
967 965
  * Get the current View ID being rendered
968 966
  *
969 967
  * @global GravityView_View $gravityview_view
970
- * @return string View context "directory" or "single"
968
+ * @return integer View context "directory" or "single"
971 969
  */
972 970
 function gravityview_get_view_id() {
973 971
 	return GravityView_View::getInstance()->getViewId();
Please login to merge, or discard this patch.