Completed
Pull Request — master (#991)
by Zack
12:50 queued 09:33
created
includes/class-gravityview-entry-approval.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 	 * @param  int $entry_id ID of the Gravity Forms entry
372 372
 	 * @param  string $status String whether entry is approved or not. `0` for not approved, `Approved` for approved.
373 373
 	 * @param int $form_id ID of the form of the entry being updated. Improves query performance.
374
-	 * @param string $approvedcolumn Gravity Forms Field ID
374
+	 * @param integer $approvedcolumn Gravity Forms Field ID
375 375
 	 *
376 376
 	 * @return true|WP_Error
377 377
 	 */
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 	 *
425 425
 	 * @since 1.19
426 426
 	 *
427
-	 * @param array|int $form Form ID or form array
427
+	 * @param integer $form Form ID or form array
428 428
 	 * @param string $approved_column Approved column field ID
429 429
 	 *
430 430
 	 * @return string|null
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@
 block discarded – undo
245 245
 	 * @param bool $url_encode Whether to URL-encode output
246 246
 	 * @param bool $esc_html Whether to apply `esc_html()` to output
247 247
 	 *
248
-	 * @return mixed
248
+	 * @return string
249 249
 	 */
250 250
 	public function replace_merge_tag( $matches = array(), $text = '', $form = array(), $entry = array(), $url_encode = false, $esc_html = false ) {
251 251
 
Please login to merge, or discard this patch.
includes/fields/class-gravityview-fields.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 	/**
78 78
 	 * Alias for get_instance()
79 79
 	 *
80
-	 * @param $field_name
80
+	 * @param string $field_name
81 81
 	 *
82 82
 	 * @return GravityView_Field|false
83 83
 	 */
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-fileupload.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@
 block discarded – undo
45 45
 	 * Trick the GF fileupload field to render with the proper HTML ID to enable the plupload JS to work properly
46 46
 	 *
47 47
 	 * @param array               $form  The Form Object currently being processed.
48
-	 * @param string|array        $value The field value. From default/dynamic population, $_POST, or a resumed incomplete submission.
49 48
 	 * @param null|array          $entry Null or the Entry Object currently being edited.
50 49
 	 * @param GF_Field_FileUpload $field Gravity Forms field
51 50
 	 *
Please login to merge, or discard this patch.
future/includes/class-gv-collection-entry.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -313,6 +313,7 @@
 block discarded – undo
313 313
 	 * Add a callback for lazy loading/counting.
314 314
 	 *
315 315
 	 * @param callable $callback The callback to call when needed.
316
+	 * @param string $type
316 317
 	 *
317 318
 	 * @return void
318 319
 	 */
Please login to merge, or discard this patch.
future/includes/class-gv-context.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
 	 * Set an setting.
39 39
 	 *
40 40
 	 * @param mixed $key The key in this setting to retrieve.
41
-	 * @param mixed $default A default in case the key is not set. 
42 41
 	 *
43 42
 	 * @api
44 43
 	 * @since future
Please login to merge, or discard this patch.
future/includes/class-gv-view.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@
 block discarded – undo
298 298
 	/**
299 299
 	 * Determines if a view exists to begin with.
300 300
 	 *
301
-	 * @param int|\WP_Post|null $view_id The WordPress post ID, a \WP_Post object or null for global $post;
301
+	 * @param int|\WP_Post|null $view The WordPress post ID, a \WP_Post object or null for global $post;
302 302
 	 *
303 303
 	 * @api
304 304
 	 * @since future
Please login to merge, or discard this patch.
includes/class-frontend-views.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
 	/**
155 155
 	 * Sets the single entry ID and also the entry
156
-	 * @param bool|int|string $single_entry
156
+	 * @param boolean|string $single_entry
157 157
 	 */
158 158
 	public function setSingleEntry( $single_entry ) {
159 159
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 	/**
172 172
 	 * Set the current entry
173
-	 * @param array|int $entry Entry array or entry slug or ID
173
+	 * @param boolean|string $entry Entry array or entry slug or ID
174 174
 	 */
175 175
 	public function setEntry( $entry ) {
176 176
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	 *
229 229
 	 *
230 230
 	 *
231
-	 * @param null $view_id
231
+	 * @param string $view_id
232 232
 	 */
233 233
 	public function set_context_view_id( $view_id = null ) {
234 234
 		$multiple_views = defined( 'GRAVITYVIEW_FUTURE_CORE_LOADED' ) ? gravityview()->views->count() > 1 : ( $this->getGvOutputData() && $this->getGvOutputData()->has_multiple_views() );
@@ -1213,7 +1213,7 @@  discard block
 block discarded – undo
1213 1213
 	 *
1214 1214
 	 * @uses  gravityview_get_entries()
1215 1215
 	 * @access public
1216
-	 * @param array $args\n
1216
+	 * @param array $args
1217 1217
 	 *   - $id - View id
1218 1218
 	 *   - $page_size - Page
1219 1219
 	 *   - $sort_field - form field id to sort
@@ -1370,7 +1370,6 @@  discard block
 block discarded – undo
1370 1370
 	 * @since 1.19.5
1371 1371
 	 *
1372 1372
 	 * @param $args
1373
-	 * @param int $form_id
1374 1373
 	 */
1375 1374
 	public static function get_search_criteria_paging( $args ) {
1376 1375
 
@@ -1785,7 +1784,7 @@  discard block
 block discarded – undo
1785 1784
 	/**
1786 1785
 	 * Checks if field (column) is sortable
1787 1786
 	 *
1788
-	 * @param string $field Field settings
1787
+	 * @param string $field_id Field settings
1789 1788
 	 * @param array $form Gravity Forms form array
1790 1789
 	 *
1791 1790
 	 * @since 1.7
Please login to merge, or discard this patch.
future/_mocks.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -62,6 +62,8 @@
 block discarded – undo
62 62
  * @internal
63 63
  * @since future
64 64
  *
65
+ * @param integer $form_id
66
+ * @param integer $count
65 67
  * @return array The old associative array data as returned by
66 68
  *  \GravityView_frontend::get_view_entries(), the paging parameters
67 69
  *  and a total count of all entries.
Please login to merge, or discard this patch.