Completed
Push — develop ( f5e79f...748d21 )
by Zack
06:59
created
future/includes/class-gv-shortcode-gvfield.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 	/**
19 19
 	 * Process and output the [gvfield] shortcode.
20 20
 	 *
21
-	 * @param array $passed_atts The attributes passed.
22 21
 	 * @param string $content The content inside the shortcode.
23 22
 	 * @param string $tag The shortcode tag.
24 23
 	 *
Please login to merge, or discard this patch.
future/includes/class-gv-widget.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@
 block discarded – undo
393 393
 	 * @internal
394 394
 	 * @since 2.0
395 395
 	 *
396
-	 * @return \GV\Widget|null The widget implementation from configuration or none.
396
+	 * @return Widget The widget implementation from configuration or none.
397 397
 	 */
398 398
 	public static function from_configuration( $configuration ) {
399 399
 		$registered_widgets = self::registered();
Please login to merge, or discard this patch.
includes/extensions/duplicate-entry/class-duplicate-entry.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 *
88 88
 	 * @param array $file_paths List of template paths ordered
89 89
 	 *
90
-	 * @return array File paths, with duplicate field path added at index 117
90
+	 * @return string[] File paths, with duplicate field path added at index 117
91 91
 	 */
92 92
 	public function add_template_path( $file_paths ) {
93 93
 
@@ -193,7 +193,6 @@  discard block
 block discarded – undo
193 193
 	 * @since 2.5
194 194
 	 *
195 195
 	 * @param  array 	    $visibility_caps        Array of capabilities to display in field dropdown.
196
-	 * @param  string       $field_type  Type of field options to render (`field` or `widget`)
197 196
 	 * @param  string       $template_id Table slug
198 197
 	 * @param  float|string $field_id    GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by`
199 198
 	 * @param  string       $context     What context are we in? Example: `single` or `directory`
Please login to merge, or discard this patch.
includes/extensions/delete-entry/class-delete-entry.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,7 +222,6 @@  discard block
 block discarded – undo
222 222
 	 *
223 223
 	 * @since 1.5.1
224 224
 	 * @param  array 	   $visibility_caps        Array of capabilities to display in field dropdown.
225
-	 * @param  string      $field_type  Type of field options to render (`field` or `widget`)
226 225
 	 * @param  string      $template_id Table slug
227 226
 	 * @param  float       $field_id    GF Field ID - Example: `3`, `5.2`, `entry_link`, `created_by`
228 227
 	 * @param  string      $context     What context are we in? Example: `single` or `directory`
@@ -651,7 +650,7 @@  discard block
 block discarded – undo
651 650
 	 *
652 651
 	 * @param  array $entry Gravity Forms entry array
653 652
 	 * @param array $field Field settings (optional)
654
-	 * @param int|\GV\View $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional)
653
+	 * @param integer $view Pass a View ID to check caps against. If not set, check against current View (@deprecated no longer optional)
655 654
 	 * @return bool
656 655
 	 */
657 656
 	public static function check_user_cap_delete_entry( $entry, $field = array(), $view = 0 ) {
Please login to merge, or discard this patch.
future/includes/class-gv-shortcode-gvlogic.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -262,6 +262,8 @@
 block discarded – undo
262 262
 	/**
263 263
 	 * Process the attributes passed to the shortcode. Make sure they're valid
264 264
 	 *
265
+	 * @param string $content
266
+	 * @param string $tag
265 267
 	 * @return array Array of attributes parsed for the shortcode
266 268
 	 */
267 269
 	private function parse_atts( $atts, $content, $tag ) {
Please login to merge, or discard this patch.
includes/connector-functions.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
  *
58 58
  * @see GVCommon::get_form_fields()
59 59
  * @access public
60
- * @param string|array $form_id (default: '') or $form object
60
+ * @param string|array $form (default: '') or $form object
61 61
  * @return array
62 62
  */
63 63
 function gravityview_get_form_fields( $form = '', $add_default_properties = false, $include_parent_field = true ) {
@@ -219,7 +219,6 @@  discard block
 block discarded – undo
219 219
  *
220 220
  * @see GravityView_Template::template_id
221 221
  *
222
- * @param int $view_id The ID of the View to get the layout of
223 222
  *
224 223
  * @return string GravityView_Template::template_id value. Empty string if not.
225 224
  */
Please login to merge, or discard this patch.
includes/extensions/entry-notes/class-gravityview-field-notes.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 	 *
358 358
 	 * @param array $file_paths List of template paths ordered
359 359
 	 *
360
-	 * @return array File paths with `./` and `./partials/` paths added
360
+	 * @return string[] File paths with `./` and `./partials/` paths added
361 361
 	 */
362 362
 	public function add_template_path( $file_paths ) {
363 363
 
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 	 * @param array $entry
550 550
 	 * @param array $data Note details array
551 551
 	 *
552
-	 * @return int|WP_Error
552
+	 * @return integer
553 553
 	 */
554 554
 	private function add_note( $entry, $data ) {
555 555
 		global $current_user, $wpdb;
Please login to merge, or discard this patch.
includes/extensions/edit-entry/class-edit-entry.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
 
67
+    /**
68
+     * @param string $component
69
+     */
67 70
     private function load_components( $component ) {
68 71
 
69 72
         $dir = trailingslashit( self::$file );
@@ -183,7 +186,7 @@  discard block
 block discarded – undo
183 186
      * "You can edit this post from the post page" fields, for example.
184 187
      *
185 188
      * @param $entry array Gravity Forms entry object
186
-     * @param $view_id int GravityView view id
189
+     * @param integer $view_id int GravityView view id
187 190
      * @param $post_id int GravityView Post ID where View may be embedded {@since 1.9.2}
188 191
      * @param string|array $field_values Parameters to pass in to the Edit Entry form to prefill data. Uses the same format as Gravity Forms "Allow field to be populated dynamically" {@since 1.9.2} {@see https://www.gravityhelp.com/documentation/article/allow-field-to-be-populated-dynamically/ }
189 192
      * @return string
@@ -286,7 +289,7 @@  discard block
 block discarded – undo
286 289
      * Needs to be used combined with GravityView_Edit_Entry::user_can_edit_entry for maximum security!!
287 290
      *
288 291
      * @param  array $entry Gravity Forms entry array
289
-     * @param \GV\View|int $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0
292
+     * @param integer $view ID of the view you want to check visibility against {@since 1.9.2}. Required since 2.0
290 293
      * @return bool
291 294
      */
292 295
     public static function check_user_cap_edit_entry( $entry, $view = 0 ) {
Please login to merge, or discard this patch.
includes/class-data.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -143,6 +143,7 @@
 block discarded – undo
143 143
 	/**
144 144
 	 * @deprecated
145 145
 	 * @see \GV\View_Collection::get()
146
+	 * @param integer|null $view_id
146 147
 	 */
147 148
 	function get_view( $view_id, $atts = NULL ) {
148 149
 		if ( ! $view = $this->views->get( $view_id ) ) {
Please login to merge, or discard this patch.