Completed
Pull Request — develop (#1577)
by Zack
18:22
created
future/includes/class-gv-utils.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 * @param string $name The key name (will be prefixed).
53 53
 	 * @param mixed $default The default value if not found (Default: null)
54 54
 	 *
55
-	 * @return mixed The value or $default if not found.
55
+	 * @return string The value or $default if not found.
56 56
 	 */
57 57
 	public static function _SERVER( $name, $default = null ) {
58 58
 		return self::get( $_SERVER, $name, $default );
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 *
127 127
 	 * @param mixed $value The value to return from the closure.
128 128
 	 *
129
-	 * @return Closure The closure with the $value bound.
129
+	 * @return \Closure The closure with the $value bound.
130 130
 	 */
131 131
 	public static function _return( $value ) {
132 132
 		return function() use ( $value ) { return $value; };
Please login to merge, or discard this patch.
includes/widgets/class-gravityview-widget-gravityforms.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 	 *
74 74
 	 * @param array $allowlist Array of widgets to show before a search is performed, if the setting is enabled.
75 75
 	 *
76
-	 * @return array
76
+	 * @return string[]
77 77
 	 */
78 78
 	function add_to_allowlist( $allowlist ) {
79 79
 
Please login to merge, or discard this patch.
future/lib/EDD_SL_Plugin_Updater.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 	 * @uses api_request()
98 98
 	 *
99 99
 	 * @param array   $_transient_data Update array build by WordPress.
100
-	 * @return array Modified update array with custom plugin data.
100
+	 * @return stdClass Modified update array with custom plugin data.
101 101
 	 */
102 102
 	public function check_update( $_transient_data ) {
103 103
 
Please login to merge, or discard this patch.
future/includes/class-gv-license-handler.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -510,6 +510,9 @@  discard block
 block discarded – undo
510 510
 		$this->settings->set( $settings );
511 511
 	}
512 512
 
513
+	/**
514
+	 * @param boolean $echo
515
+	 */
513 516
 	public function settings_edd_license_activation( $field, $echo ) {
514 517
 
515 518
 		$script_debug = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
@@ -617,7 +620,6 @@  discard block
 block discarded – undo
617 620
 	 * Check the GravityView license information
618 621
 	 *
619 622
 	 * @since 1.19.3
620
-	 * @param bool $force Whether to force checking license, even if AJAX
621 623
 	 *
622 624
 	 * @return void
623 625
 	 */
Please login to merge, or discard this patch.
future/includes/class-gv-settings-addon.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 	 *
141 141
 	 * @param array $items Styles to exclude from no-conflict
142 142
 	 *
143
-	 * @return array
143
+	 * @return string[]
144 144
 	 */
145 145
 	public function register_no_conflict( $items ) {
146 146
 
Please login to merge, or discard this patch.
includes/class-admin-approve-entries.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
 	 * Capture bulk actions - gf_entries table
279 279
 	 *
280 280
 	 * @uses  GravityView_frontend::get_search_criteria() Convert the $_POST search request into a properly formatted request.
281
-	 * @return void|boolean
281
+	 * @return false|null
282 282
 	 */
283 283
 	public function process_bulk_action() {
284 284
 
Please login to merge, or discard this patch.
includes/class-api.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,6 @@  discard block
 block discarded – undo
232 232
 	 * @deprecated Use \GV\Field_Template::render() or the more low-level \GV\Field::get_value()
233 233
 	 *
234 234
 	 * @param array $entry
235
-	 * @param array $field
236 235
 	 * @return null|string
237 236
 	 */
238 237
 	public static function field_value( $entry, $field_settings, $format = 'html' ) {
@@ -851,6 +850,9 @@  discard block
 block discarded – undo
851 850
 	return $value;
852 851
 }
853 852
 
853
+/**
854
+ * @param GV\Template_Context $context
855
+ */
854 856
 function gv_directory_link( $post = NULL, $add_pagination = true, $context = null ) {
855 857
 	return GravityView_API::directory_link( $post, $add_pagination, $context );
856 858
 }
@@ -1359,6 +1361,7 @@  discard block
 block discarded – undo
1359 1361
  * @param  array $passed_args Associative array with field data. `field` and `form` are required.
1360 1362
  * @since  2.0
1361 1363
  * @param  \GV\Template_Context The template context.
1364
+ * @param GV\Template_Context $context
1362 1365
  * @return string Field output. If empty value and hide empty is true, return empty.
1363 1366
  */
1364 1367
 function gravityview_field_output( $passed_args, $context = null ) {
Please login to merge, or discard this patch.
includes/class-common.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 	/**
282 282
 	 * Return array of fields' id and label, for a given Form ID
283 283
 	 *
284
-	 * @param string|array $form_id (default: '') or $form object
284
+	 * @param string|array $form (default: '') or $form object
285 285
 	 * @param bool $add_default_properties
286 286
 	 * @param bool $include_parent_field
287 287
 	 * @return array
@@ -1034,7 +1034,7 @@  discard block
 block discarded – undo
1034 1034
 	 *
1035 1035
 	 * @param array $form Gravity Forms form array
1036 1036
 	 * @param string $field_id ID of the field. If an input, full input ID (like `1.3`)
1037
-	 * @param string|array $field_value Raw value of the field.
1037
+	 * @param string $field_value Raw value of the field.
1038 1038
 	 * @return string
1039 1039
 	 */
1040 1040
 	public static function get_field_label( $form = array(), $field_id = '', $field_value = '' ) {
@@ -1555,7 +1555,7 @@  discard block
 block discarded – undo
1555 1555
 	 *
1556 1556
 	 * Do the same than parse_str without max_input_vars limitation:
1557 1557
 	 * Parses $string as if it were the query string passed via a URL and sets variables in the current scope.
1558
-	 * @param $string string string to parse (not altered like in the original parse_str(), use the second parameter!)
1558
+	 * @param string $string string string to parse (not altered like in the original parse_str(), use the second parameter!)
1559 1559
 	 * @param $result array  If the second parameter is present, variables are stored in this variable as array elements
1560 1560
 	 * @return bool true or false if $string is an empty string
1561 1561
 	 * @since  1.5.3
@@ -1791,9 +1791,9 @@  discard block
 block discarded – undo
1791 1791
 	 * @param string $message            Message body (required)
1792 1792
 	 * @param string $from_name          Displayed name of the sender
1793 1793
 	 * @param string $message_format     If "html", sent text as `text/html`. Otherwise, `text/plain`. Default: "html".
1794
-	 * @param string|array $attachments  Optional. Files to attach. {@see wp_mail()} for usage. Default: "".
1794
+	 * @param string $attachments  Optional. Files to attach. {@see wp_mail()} for usage. Default: "".
1795 1795
 	 * @param array|false $entry         Gravity Forms entry array, related to the email. Default: false.
1796
-	 * @param array|false $notification  Gravity Forms notification that triggered the email. {@see GFCommon::send_notification}. Default:false.
1796
+	 * @param boolean $notification  Gravity Forms notification that triggered the email. {@see GFCommon::send_notification}. Default:false.
1797 1797
 	 */
1798 1798
 	public static function send_email( $from, $to, $bcc, $reply_to, $subject, $message, $from_name = '', $message_format = 'html', $attachments = '', $entry = false, $notification = false ) {
1799 1799
 
Please login to merge, or discard this patch.
includes/class-frontend-views.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 	 *
228 228
 	 *
229 229
 	 *
230
-	 * @param null $view_id
230
+	 * @param string $view_id
231 231
 	 */
232 232
 	public function set_context_view_id( $view_id = null ) {
233 233
 		$multiple_views = $this->getGvOutputData() && $this->getGvOutputData()->has_multiple_views();
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
 	 *
923 923
 	 *
924 924
 	 * @uses  gravityview_get_entries()
925
-	 * @param array $args\n
925
+	 * @param array $args
926 926
 	 *   - $id - View id
927 927
 	 *   - $page_size - Page
928 928
 	 *   - $sort_field - form field id to sort
@@ -1051,7 +1051,6 @@  discard block
 block discarded – undo
1051 1051
 	 * @since 1.19.5
1052 1052
 	 *
1053 1053
 	 * @param $args
1054
-	 * @param int $form_id
1055 1054
 	 */
1056 1055
 	public static function get_search_criteria_paging( $args ) {
1057 1056
 
@@ -1553,7 +1552,7 @@  discard block
 block discarded – undo
1553 1552
 	/**
1554 1553
 	 * Checks if field (column) is sortable
1555 1554
 	 *
1556
-	 * @param string $field Field settings
1555
+	 * @param string $field_id Field settings
1557 1556
 	 * @param array $form Gravity Forms form array
1558 1557
 	 *
1559 1558
 	 * @since 1.7
Please login to merge, or discard this patch.