| @@ -267,7 +267,7 @@ discard block | ||
| 267 | 267 | * | 
| 268 | 268 | * @deprecated | 
| 269 | 269 | * @param int|string $page page ID or page path | 
| 270 | - * @return object $this | |
| 270 | + * @return Post_Meta_Container $this | |
| 271 | 271 | */ | 
| 272 | 272 |  	public function show_on_page( $page ) { | 
| 273 | 273 | $page_id = absint( $page ); | 
| @@ -289,7 +289,7 @@ discard block | ||
| 289 | 289 | * | 
| 290 | 290 | * @deprecated | 
| 291 | 291 | * @param string $parent_page_path | 
| 292 | - * @return object $this | |
| 292 | + * @return Post_Meta_Container $this | |
| 293 | 293 | */ | 
| 294 | 294 |  	public function show_on_page_children( $parent_page_path ) { | 
| 295 | 295 | $page = get_page_by_path( $parent_page_path ); | 
| @@ -303,7 +303,7 @@ discard block | ||
| 303 | 303 | * | 
| 304 | 304 | * @deprecated | 
| 305 | 305 | * @param string|array $template_path | 
| 306 | - * @return object $this | |
| 306 | + * @return Post_Meta_Container $this | |
| 307 | 307 | */ | 
| 308 | 308 |  	public function show_on_template( $template_path ) { | 
| 309 | 309 | // Backwards compatibility where only pages support templates | 
| @@ -321,7 +321,7 @@ discard block | ||
| 321 | 321 | * | 
| 322 | 322 | * @deprecated | 
| 323 | 323 | * @param string|array $template_path | 
| 324 | - * @return object $this | |
| 324 | + * @return Post_Meta_Container $this | |
| 325 | 325 | */ | 
| 326 | 326 |  	public function hide_on_template( $template_path ) { | 
| 327 | 327 | $template_paths = is_array( $template_path ) ? $template_path : array( $template_path ); | 
| @@ -335,7 +335,7 @@ discard block | ||
| 335 | 335 | * | 
| 336 | 336 | * @deprecated | 
| 337 | 337 | * @param int $level | 
| 338 | - * @return object $this | |
| 338 | + * @return Post_Meta_Container $this | |
| 339 | 339 | */ | 
| 340 | 340 |  	public function show_on_level( $level ) { | 
| 341 | 341 | $this->where( 'post_level', '=', intval( $level ) ); | 
| @@ -348,7 +348,7 @@ discard block | ||
| 348 | 348 | * | 
| 349 | 349 | * @deprecated | 
| 350 | 350 | * @param string|array $post_format Name of the format as listed on Codex | 
| 351 | - * @return object $this | |
| 351 | + * @return Post_Meta_Container $this | |
| 352 | 352 | */ | 
| 353 | 353 |  	public function show_on_post_format( $post_format ) { | 
| 354 | 354 | $post_formats = is_array( $post_format ) ? $post_format : array( $post_format ); | 
| @@ -360,8 +360,8 @@ discard block | ||
| 360 | 360 | * Show the container only on posts from the specified type(s). | 
| 361 | 361 | * | 
| 362 | 362 | * @deprecated | 
| 363 | - * @param string|array $post_types | |
| 364 | - * @return object $this | |
| 363 | + * @param string $post_types | |
| 364 | + * @return Post_Meta_Container $this | |
| 365 | 365 | */ | 
| 366 | 366 |  	public function show_on_post_type( $post_types ) { | 
| 367 | 367 | $post_types = is_array( $post_types ) ? $post_types : array( $post_types ); | 
| @@ -376,7 +376,7 @@ discard block | ||
| 376 | 376 | * | 
| 377 | 377 | * @deprecated | 
| 378 | 378 | * @param string $category_slug | 
| 379 | - * @return object $this | |
| 379 | + * @return Post_Meta_Container $this | |
| 380 | 380 | */ | 
| 381 | 381 |  	public function show_on_category( $category_slug ) { | 
| 382 | 382 | $this->where( 'post_term', '=', array( | 
| @@ -393,7 +393,7 @@ discard block | ||
| 393 | 393 | * @deprecated | 
| 394 | 394 | * @param string $taxonomy_slug | 
| 395 | 395 | * @param string $term_slug | 
| 396 | - * @return object $this | |
| 396 | + * @return Post_Meta_Container $this | |
| 397 | 397 | */ | 
| 398 | 398 |  	public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) { | 
| 399 | 399 | $this->where( 'post_term', '=', array( | 
| @@ -249,7 +249,7 @@ discard block | ||
| 249 | 249 | * | 
| 250 | 250 | * @param array<string> $condition_types | 
| 251 | 251 | * @param Carbon_Fields\Container\Container $container | 
| 252 | - * @return array<string> | |
| 252 | + * @return string[] | |
| 253 | 253 | */ | 
| 254 | 254 |  	public function filter_post_meta_container_static_condition_types( $condition_types, $container_type, $container ) { | 
| 255 | 255 | return array_merge( | 
| @@ -263,7 +263,7 @@ discard block | ||
| 263 | 263 | * | 
| 264 | 264 | * @param array<string> $condition_types | 
| 265 | 265 | * @param Carbon_Fields\Container\Container $container | 
| 266 | - * @return array<string> | |
| 266 | + * @return string[] | |
| 267 | 267 | */ | 
| 268 | 268 |  	public function filter_post_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) { | 
| 269 | 269 | return array_merge( | 
| @@ -277,7 +277,7 @@ discard block | ||
| 277 | 277 | * | 
| 278 | 278 | * @param array<string> $condition_types | 
| 279 | 279 | * @param Carbon_Fields\Container\Container $container | 
| 280 | - * @return array<string> | |
| 280 | + * @return string[] | |
| 281 | 281 | */ | 
| 282 | 282 |  	public function filter_term_meta_container_static_condition_types( $condition_types, $container_type, $container ) { | 
| 283 | 283 | return array_merge( | 
| @@ -291,7 +291,7 @@ discard block | ||
| 291 | 291 | * | 
| 292 | 292 | * @param array<string> $condition_types | 
| 293 | 293 | * @param Carbon_Fields\Container\Container $container | 
| 294 | - * @return array<string> | |
| 294 | + * @return string[] | |
| 295 | 295 | */ | 
| 296 | 296 |  	public function filter_term_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) { | 
| 297 | 297 | return array_merge( | 
| @@ -305,7 +305,7 @@ discard block | ||
| 305 | 305 | * | 
| 306 | 306 | * @param array<string> $condition_types | 
| 307 | 307 | * @param Carbon_Fields\Container\Container $container | 
| 308 | - * @return array<string> | |
| 308 | + * @return string[] | |
| 309 | 309 | */ | 
| 310 | 310 |  	public function filter_user_meta_container_static_condition_types( $condition_types, $container_type, $container ) { | 
| 311 | 311 | return array_merge( | 
| @@ -319,7 +319,7 @@ discard block | ||
| 319 | 319 | * | 
| 320 | 320 | * @param array<string> $condition_types | 
| 321 | 321 | * @param Carbon_Fields\Container\Container $container | 
| 322 | - * @return array<string> | |
| 322 | + * @return string[] | |
| 323 | 323 | */ | 
| 324 | 324 |  	public function filter_user_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) { | 
| 325 | 325 | return array_merge( | 
| @@ -333,7 +333,7 @@ discard block | ||
| 333 | 333 | * | 
| 334 | 334 | * @param array<string> $condition_types | 
| 335 | 335 | * @param Carbon_Fields\Container\Container $container | 
| 336 | - * @return array<string> | |
| 336 | + * @return string[] | |
| 337 | 337 | */ | 
| 338 | 338 |  	public function filter_theme_options_container_static_condition_types( $condition_types, $container_type, $container ) { | 
| 339 | 339 | return array_merge( | 
| @@ -53,6 +53,7 @@ discard block | ||
| 53 | 53 | |
| 54 | 54 | /** | 
| 55 | 55 |  	 * {@inheritDoc} | 
| 56 | + * @param string $value | |
| 56 | 57 | */ | 
| 57 | 58 |  	public function set_value( $value ) { | 
| 58 | 59 |  		if ( is_bool( $value ) ) { | 
| @@ -64,7 +65,7 @@ discard block | ||
| 64 | 65 | /** | 
| 65 | 66 | * Return a differently formatted value for end-users | 
| 66 | 67 | * | 
| 67 | - * @return mixed | |
| 68 | + * @return boolean | |
| 68 | 69 | */ | 
| 69 | 70 |  	public function get_formatted_value() { | 
| 70 | 71 | return ( $this->get_value() === $this->get_option_value() ); | 
| @@ -92,7 +92,7 @@ | ||
| 92 | 92 | /** | 
| 93 | 93 | * Retrieve the current options. | 
| 94 | 94 | * | 
| 95 | - * @return array | |
| 95 | + * @return callable | |
| 96 | 96 | */ | 
| 97 | 97 |  	public function get_options() { | 
| 98 | 98 | return $this->load_options(); | 
| @@ -311,8 +311,7 @@ discard block | ||
| 311 | 311 | /** | 
| 312 | 312 | * Get the items per page. | 
| 313 | 313 | * | 
| 314 | - * @param int $items_per_page | |
| 315 | - * @return self $this | |
| 314 | + * @return integer $this | |
| 316 | 315 | */ | 
| 317 | 316 |  	public function get_items_per_page() { | 
| 318 | 317 | return $this->items_per_page; | 
| @@ -514,7 +513,7 @@ discard block | ||
| 514 | 513 | * @access public | 
| 515 | 514 | * | 
| 516 | 515 | * @param array $fields | 
| 517 | - * @return array | |
| 516 | + * @return string[] | |
| 518 | 517 | */ | 
| 519 | 518 |  	public function get_term_options_sql_select_clause( $fields ) { | 
| 520 | 519 | return array( '`t`.`term_id` AS `ID`', '`t`.`name` AS `title`', '\'term\' as `type`', '`tt`.`taxonomy` AS `subtype`' ); | 
| @@ -174,7 +174,7 @@ | ||
| 174 | 174 | * Registers and enqueues a script. | 
| 175 | 175 | * | 
| 176 | 176 | * @param string $src | 
| 177 | - * @param array $deps | |
| 177 | + * @param string[] $deps | |
| 178 | 178 | * @return void | 
| 179 | 179 | */ | 
| 180 | 180 |  	protected function enqueue_script( $src, $deps = array() ) { | 
| @@ -309,7 +309,7 @@ | ||
| 309 | 309 | /** | 
| 310 | 310 | * Get attachment data by given ID or URL. | 
| 311 | 311 | * | 
| 312 | - * @return array | |
| 312 | + * @return boolean | |
| 313 | 313 | */ | 
| 314 | 314 |  	public function get_attachment_data() { | 
| 315 | 315 | $type = sanitize_text_field( $_GET['type'] ); |