@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | * |
191 | 191 | * @param array<string> $condition_types |
192 | 192 | * @param Carbon_Fields\Container\Container $container |
193 | - * @return array<string> |
|
193 | + * @return string[] |
|
194 | 194 | */ |
195 | 195 | public static function filter_post_meta_container_static_condition_types( $condition_types, $container_type, $container ) { |
196 | 196 | return array_merge( |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | * |
205 | 205 | * @param array<string> $condition_types |
206 | 206 | * @param Carbon_Fields\Container\Container $container |
207 | - * @return array<string> |
|
207 | + * @return string[] |
|
208 | 208 | */ |
209 | 209 | public static function filter_post_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) { |
210 | 210 | return array_merge( |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * |
219 | 219 | * @param array<string> $condition_types |
220 | 220 | * @param Carbon_Fields\Container\Container $container |
221 | - * @return array<string> |
|
221 | + * @return string[] |
|
222 | 222 | */ |
223 | 223 | public static function filter_term_meta_container_static_condition_types( $condition_types, $container_type, $container ) { |
224 | 224 | return array_merge( |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * |
233 | 233 | * @param array<string> $condition_types |
234 | 234 | * @param Carbon_Fields\Container\Container $container |
235 | - * @return array<string> |
|
235 | + * @return string[] |
|
236 | 236 | */ |
237 | 237 | public static function filter_term_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) { |
238 | 238 | return array_merge( |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * |
247 | 247 | * @param array<string> $condition_types |
248 | 248 | * @param Carbon_Fields\Container\Container $container |
249 | - * @return array<string> |
|
249 | + * @return string[] |
|
250 | 250 | */ |
251 | 251 | public static function filter_user_meta_container_static_condition_types( $condition_types, $container_type, $container ) { |
252 | 252 | return array_merge( |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * |
261 | 261 | * @param array<string> $condition_types |
262 | 262 | * @param Carbon_Fields\Container\Container $container |
263 | - * @return array<string> |
|
263 | + * @return string[] |
|
264 | 264 | */ |
265 | 265 | public static function filter_user_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) { |
266 | 266 | return array_merge( |
@@ -298,7 +298,7 @@ |
||
298 | 298 | * |
299 | 299 | * @param array<string> $condition_types |
300 | 300 | * @param array|boolean $environment Environment array or a boolean value to force on conditions |
301 | - * @param array $comparison_operators Array of comparison operators to evaluate regardless of condition type |
|
301 | + * @param string[] $comparison_operators Array of comparison operators to evaluate regardless of condition type |
|
302 | 302 | * @return Fulfillable_Collection |
303 | 303 | */ |
304 | 304 | public function evaluate( $condition_types, $environment, $comparison_operators = array() ) { |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | * |
269 | 269 | * @deprecated |
270 | 270 | * @param int|string $page page ID or page path |
271 | - * @return object $this |
|
271 | + * @return Post_Meta_Container $this |
|
272 | 272 | */ |
273 | 273 | public function show_on_page( $page ) { |
274 | 274 | $page_id = absint( $page ); |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * |
291 | 291 | * @deprecated |
292 | 292 | * @param string $parent_page_path |
293 | - * @return object $this |
|
293 | + * @return Post_Meta_Container $this |
|
294 | 294 | */ |
295 | 295 | public function show_on_page_children( $parent_page_path ) { |
296 | 296 | $page = get_page_by_path( $parent_page_path ); |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | * |
305 | 305 | * @deprecated |
306 | 306 | * @param string|array $template_path |
307 | - * @return object $this |
|
307 | + * @return Post_Meta_Container $this |
|
308 | 308 | */ |
309 | 309 | public function show_on_template( $template_path ) { |
310 | 310 | // Backwards compatibility where only pages support templates |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | * |
323 | 323 | * @deprecated |
324 | 324 | * @param string|array $template_path |
325 | - * @return object $this |
|
325 | + * @return Post_Meta_Container $this |
|
326 | 326 | */ |
327 | 327 | public function hide_on_template( $template_path ) { |
328 | 328 | $template_paths = is_array( $template_path ) ? $template_path : array( $template_path ); |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | * |
337 | 337 | * @deprecated |
338 | 338 | * @param int $level |
339 | - * @return object $this |
|
339 | + * @return Post_Meta_Container $this |
|
340 | 340 | */ |
341 | 341 | public function show_on_level( $level ) { |
342 | 342 | $this->and_when( 'post_level', '=', intval( $level ) ); |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | * |
350 | 350 | * @deprecated |
351 | 351 | * @param string|array $post_format Name of the format as listed on Codex |
352 | - * @return object $this |
|
352 | + * @return Post_Meta_Container $this |
|
353 | 353 | */ |
354 | 354 | public function show_on_post_format( $post_format ) { |
355 | 355 | $post_formats = is_array( $post_format ) ? $post_format : array( $post_format ); |
@@ -361,8 +361,8 @@ discard block |
||
361 | 361 | * Show the container only on posts from the specified type(s). |
362 | 362 | * |
363 | 363 | * @deprecated |
364 | - * @param string|array $post_types |
|
365 | - * @return object $this |
|
364 | + * @param string $post_types |
|
365 | + * @return Post_Meta_Container $this |
|
366 | 366 | */ |
367 | 367 | public function show_on_post_type( $post_types ) { |
368 | 368 | $post_types = is_array( $post_types ) ? $post_types : array( $post_types ); |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | * |
378 | 378 | * @deprecated |
379 | 379 | * @param string $category_slug |
380 | - * @return object $this |
|
380 | + * @return Post_Meta_Container $this |
|
381 | 381 | */ |
382 | 382 | public function show_on_category( $category_slug ) { |
383 | 383 | $this->and_when( 'post_term', '=', array( |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | * @deprecated |
395 | 395 | * @param string $taxonomy_slug |
396 | 396 | * @param string $term_slug |
397 | - * @return object $this |
|
397 | + * @return Post_Meta_Container $this |
|
398 | 398 | */ |
399 | 399 | public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) { |
400 | 400 | $this->and_when( 'post_term', '=', array( |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * |
199 | 199 | * @deprecated |
200 | 200 | * @param string|array $taxonomies |
201 | - * @return object $this |
|
201 | + * @return Term_Meta_Container $this |
|
202 | 202 | */ |
203 | 203 | public function show_on_taxonomy( $taxonomies ) { |
204 | 204 | $taxonomies = is_array( $taxonomies ) ? $taxonomies : array( $taxonomies ); |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * |
212 | 212 | * @deprecated |
213 | 213 | * @param int $term_level |
214 | - * @return object $this |
|
214 | + * @return Term_Meta_Container $this |
|
215 | 215 | */ |
216 | 216 | public function show_on_level( $term_level ) { |
217 | 217 | $this->and_when( 'term_level', '=', intval( $term_level ) ); |
@@ -195,7 +195,7 @@ |
||
195 | 195 | * |
196 | 196 | * @deprecated |
197 | 197 | * @param string|array $role |
198 | - * @return object $this |
|
198 | + * @return User_Meta_Container $this |
|
199 | 199 | */ |
200 | 200 | public function show_on_user_role( $role ) { |
201 | 201 | $roles = is_array( $role ) ? $role : array( $role ); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * Return a differently formatted value for end-users |
44 | 44 | * |
45 | - * @return mixed |
|
45 | + * @return boolean |
|
46 | 46 | */ |
47 | 47 | public function get_formatted_value() { |
48 | 48 | return ( $this->get_value() === $this->option_value ); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * Set the available forms as field options |
32 | 32 | * |
33 | - * @return array |
|
33 | + * @return callable |
|
34 | 34 | */ |
35 | 35 | protected function get_gravity_form_options() { |
36 | 36 | if ( ! $this->is_plugin_active() ) { |