Completed
Branch master (3ac4b1)
by Zack
04:30
created
includes/class-data.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,6 +113,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/class-debug-bar.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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() ) );
Please login to merge, or discard this patch.
includes/class-frontend-views.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
 	/**
152 152
 	 * Sets the single entry ID and also the entry
153
-	 * @param bool|int $single_entry
153
+	 * @param boolean|string $single_entry
154 154
 	 */
155 155
 	public function setSingleEntry( $single_entry ) {
156 156
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
 	/**
169 169
 	 * Set the current entry
170
-	 * @param array|int $entry Entry array or entry ID
170
+	 * @param boolean|string $entry Entry array or entry ID
171 171
 	 */
172 172
 	public function setEntry( $entry ) {
173 173
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 	 *
226 226
 	 *
227 227
 	 *
228
-	 * @param null $view_id
228
+	 * @param string $view_id
229 229
 	 */
230 230
 	public function set_context_view_id( $view_id = null ) {
231 231
 
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
 	 *
935 935
 	 * @uses  gravityview_get_entries()
936 936
 	 * @access public
937
-	 * @param array $args\n
937
+	 * @param array $args
938 938
 	 *   - $id - View id
939 939
 	 *   - $page_size - Page
940 940
 	 *   - $sort_field - form field id to sort
@@ -1364,7 +1364,7 @@  discard block
 block discarded – undo
1364 1364
 	/**
1365 1365
 	 * Checks if field (column) is sortable
1366 1366
 	 *
1367
-	 * @param string $field Field settings
1367
+	 * @param string $field_id Field settings
1368 1368
 	 * @param array $form Gravity Forms form array
1369 1369
 	 *
1370 1370
 	 * @since 1.7
Please login to merge, or discard this patch.
includes/class-gravityview-admin-duplicate-view.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
 	 *
196 196
 	 * @since 1.6
197 197
 	 *
198
-	 * @param int $new_view_id The ID of the newly created View
198
+	 * @param int $new_id The ID of the newly created View
199 199
 	 * @param WP_Post $post The View that was just cloned
200 200
 	 *
201 201
 	 * @return void
Please login to merge, or discard this patch.
includes/class-gravityview-compatibility.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 
117 117
 	/**
118 118
 	 * @since 1.12
119
-	 * @return bool
119
+	 * @return boolean|null
120 120
 	 */
121 121
 	private function add_fallback_shortcode() {
122 122
 
Please login to merge, or discard this patch.
includes/class-gravityview-entry-link-shortcode.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,7 +221,6 @@  discard block
 block discarded – undo
221 221
 	 *
222 222
 	 * @since 1.15
223 223
 	 *
224
-	 * @param string|null $content Content inside shortcode, if defined
225 224
 	 *
226 225
 	 * @return string|boolean If URL is fetched, the URL to the entry link. If not found, returns false.
227 226
 	 */
@@ -316,7 +315,7 @@  discard block
 block discarded – undo
316 315
 	 *
317 316
 	 * @since 1.15
318 317
 	 *
319
-	 * @param string $href URL
318
+	 * @param string|null $url
320 319
 	 */
321 320
 	private function maybe_add_field_values_query_args( $url ) {
322 321
 
Please login to merge, or discard this patch.
includes/class-gravityview-extension.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
 
279 279
 	/**
280 280
 	 * Add a notice to be displayed in the admin.
281
-	 * @param array $notice Array with `class` and `message` keys. The message is not escaped.
281
+	 * @param string $notice Array with `class` and `message` keys. The message is not escaped.
282 282
 	 */
283 283
 	public static function add_notice( $notice = array() ) {
284 284
 
Please login to merge, or discard this patch.
includes/class-gravityview-merge-tags.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 	 * @param bool $url_encode Whether to URL-encode output
136 136
 	 * @param bool $esc_html Whether to apply `esc_html()` to output
137 137
 	 *
138
-	 * @return mixed
138
+	 * @return string
139 139
 	 */
140 140
 	public static function replace_gv_merge_tags(  $text, $form = array(), $entry = array(), $url_encode = false, $esc_html = false ) {
141 141
 
Please login to merge, or discard this patch.
includes/class-gravityview-roles-capabilities.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,6 @@
 block discarded – undo
67 67
 	 *
68 68
 	 * @since 1.15
69 69
 	 *
70
-	 * @param array   $allcaps An array of all the user's capabilities.
71 70
 	 * @param array   $caps    Actual capabilities for meta capability.
72 71
 	 * @param array   $args    Optional parameters passed to has_cap(), typically object ID.
73 72
 	 * @param WP_User|null $user    The user object, in WordPress 3.7.0 or higher
Please login to merge, or discard this patch.