Completed
Push — milestone/2.0 ( 784680...06cd51 )
by
unknown
02:57
created
core/Container/Term_Meta_Container.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	 * Show the container only on terms from the specified taxonomies.
188 188
 	 *
189 189
 	 * @param string|array $taxonomies
190
-	 * @return object $this
190
+	 * @return Term_Meta_Container $this
191 191
 	 **/
192 192
 	public function show_on_taxonomy( $taxonomies ) {
193 193
 		$taxonomies = (array) $taxonomies;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 * Show the container only on particular term level.
202 202
 	 *
203 203
 	 * @param int $term_level
204
-	 * @return object $this
204
+	 * @return Term_Meta_Container $this
205 205
 	 */
206 206
 	public function show_on_level( $term_level ) {
207 207
 		$this->settings['show_on_level'] = $term_level;
Please login to merge, or discard this patch.
core/Container/Post_Meta_Container.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 	 * Show the container only on particular page referenced by it's path.
343 343
 	 *
344 344
 	 * @param int|string $page page ID or page path
345
-	 * @return object $this
345
+	 * @return Post_Meta_Container $this
346 346
 	 **/
347 347
 	public function show_on_page( $page ) {
348 348
 		$page_id = absint( $page );
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
 	 * Show the container only on pages whose parent is referenced by $parent_page_path.
369 369
 	 *
370 370
 	 * @param string $parent_page_path
371
-	 * @return object $this
371
+	 * @return Post_Meta_Container $this
372 372
 	 **/
373 373
 	public function show_on_page_children( $parent_page_path ) {
374 374
 		$page = get_page_by_path( $parent_page_path );
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 	 * @see show_on_taxonomy_term()
391 391
 	 *
392 392
 	 * @param string $category_slug
393
-	 * @return object $this
393
+	 * @return Post_Meta_Container $this
394 394
 	 **/
395 395
 	public function show_on_category( $category_slug ) {
396 396
 		$this->settings['show_on']['category'] = $category_slug;
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 	 * Show the container only on pages whose template has filename $template_path.
403 403
 	 *
404 404
 	 * @param string|array $template_path
405
-	 * @return object $this
405
+	 * @return Post_Meta_Container $this
406 406
 	 **/
407 407
 	public function show_on_template( $template_path ) {
408 408
 		// Backwards compatibility where only pages support templates
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
 	 * Hide the container from pages whose template has filename $template_path.
428 428
 	 *
429 429
 	 * @param string|array $template_path
430
-	 * @return object $this
430
+	 * @return Post_Meta_Container $this
431 431
 	 **/
432 432
 	public function hide_on_template( $template_path ) {
433 433
 		if ( is_array( $template_path ) ) {
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 	 * Levels start from 1 (top level post)
448 448
 	 *
449 449
 	 * @param int $level
450
-	 * @return object $this
450
+	 * @return Post_Meta_Container $this
451 451
 	 **/
452 452
 	public function show_on_level( $level ) {
453 453
 		if ( $level < 0 ) {
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 	 *
465 465
 	 * @param string $taxonomy_slug
466 466
 	 * @param string $term_slug
467
-	 * @return object $this
467
+	 * @return Post_Meta_Container $this
468 468
 	 **/
469 469
 	public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) {
470 470
 		$term = get_term_by( 'slug', $term_slug, $taxonomy_slug );
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 	 * Learn more about {@link http://codex.wordpress.org/Post_Formats Post Formats (Codex)}
482 482
 	 *
483 483
 	 * @param string|array $post_format Name of the format as listed on Codex
484
-	 * @return object $this
484
+	 * @return Post_Meta_Container $this
485 485
 	 **/
486 486
 	public function show_on_post_format( $post_format ) {
487 487
 		if ( is_array( $post_format ) ) {
@@ -503,8 +503,8 @@  discard block
 block discarded – undo
503 503
 	/**
504 504
 	 * Show the container only on posts from the specified type(s).
505 505
 	 *
506
-	 * @param string|array $post_types
507
-	 * @return object $this
506
+	 * @param string $post_types
507
+	 * @return Post_Meta_Container $this
508 508
 	 **/
509 509
 	public function show_on_post_type( $post_types ) {
510 510
 		$post_types = (array) $post_types;
Please login to merge, or discard this patch.
core/Field/Checkbox_Field.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	/**
41 41
 	 * Return a differently formatted value for end-users
42 42
 	 *
43
-	 * @return mixed
43
+	 * @return boolean
44 44
 	 **/
45 45
 	public function get_formatted_value() {
46 46
 		return ( $this->get_value() === $this->option_value );
Please login to merge, or discard this patch.
core/Container/User_Meta_Container.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	/**
46 46
 	 * Checks whether the current request is valid
47 47
 	 *
48
-	 * @return bool
48
+	 * @return null|boolean
49 49
 	 **/
50 50
 	public function is_valid_save( $user_id = 0 ) {
51 51
 		if ( ! $this->verified_nonce_in_request() ) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 * Check container attachment rules against object id
97 97
 	 *
98 98
 	 * @param int $object_id
99
-	 * @return bool
99
+	 * @return null|boolean
100 100
 	 **/
101 101
 	public function is_valid_attach_for_object( $object_id = null ) {
102 102
 		$valid = true;
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 	 * Show the container only on users who have the $role role.
252 252
 	 *
253 253
 	 * @param string $role
254
-	 * @return object $this
254
+	 * @return User_Meta_Container $this
255 255
 	 **/
256 256
 	public function show_on_user_role( $role ) {
257 257
 		$this->settings['show_on']['role'] = (array) $role;
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 	 * Show the container only for users who have either capabilities or roles setup
264 264
 	 *
265 265
 	 * @param array $show_for
266
-	 * @return object $this
266
+	 * @return User_Meta_Container $this
267 267
 	 **/
268 268
 	public function show_for( $show_for ) {
269 269
 		$this->settings['show_for'] = $this->parse_show_for( $show_for );
Please login to merge, or discard this patch.
core/Field/Field.php 1 patch
Doc Comments   +13 added lines, -12 removed lines patch added patch discarded remove patch
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 	 * Set datastore instance
441 441
 	 *
442 442
 	 * @param Datastore_Interface $datastore
443
-	 * @return object $this
443
+	 * @return Field $this
444 444
 	 **/
445 445
 	public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) {
446 446
 		if ( $set_as_default && ! $this->has_default_datastore() ) {
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 	 * Assign the type of the container this field is in
465 465
 	 *
466 466
 	 * @param string
467
-	 * @return object $this
467
+	 * @return Field $this
468 468
 	 **/
469 469
 	public function set_context( $context ) {
470 470
 		$this->context = $context;
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
 	/**
505 505
 	 * Return a differently formatted value for end-users
506 506
 	 *
507
-	 * @return mixed
507
+	 * @return string
508 508
 	 **/
509 509
 	public function get_formatted_value() {
510 510
 		$value = $this->get_value();
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
 	 * Set additional text to be displayed during field render,
647 647
 	 * containing information and guidance for the user
648 648
 	 *
649
-	 * @return object $this
649
+	 * @return Field $this
650 650
 	 **/
651 651
 	public function set_help_text( $help_text ) {
652 652
 		$this->help_text = $help_text;
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
 	 * Alias for set_help_text()
658 658
 	 *
659 659
 	 * @see set_help_text()
660
-	 * @return object $this
660
+	 * @return Field $this
661 661
 	 **/
662 662
 	public function help_text( $help_text ) {
663 663
 		return $this->set_help_text( $help_text );
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 	/**
667 667
 	 * Return the field help text
668 668
 	 *
669
-	 * @return object $this
669
+	 * @return string $this
670 670
 	 **/
671 671
 	public function get_help_text() {
672 672
 		return $this->help_text;
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
 	 * Whether or not this value should be auto loaded. Applicable to theme options only.
677 677
 	 *
678 678
 	 * @param bool $autoload
679
-	 * @return object $this
679
+	 * @return Field $this
680 680
 	 **/
681 681
 	public function set_autoload( $autoload ) {
682 682
 		$this->autoload = $autoload;
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
 	 * Whether or not this field will be initialized when the field is in the viewport (visible).
697 697
 	 *
698 698
 	 * @param bool $lazyload
699
-	 * @return object $this
699
+	 * @return Field $this
700 700
 	 **/
701 701
 	public function set_lazyload( $lazyload ) {
702 702
 		$this->lazyload = $lazyload;
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 	 * Set the field width.
717 717
 	 *
718 718
 	 * @param int $width
719
-	 * @return object $this
719
+	 * @return Field $this
720 720
 	 **/
721 721
 	public function set_width( $width ) {
722 722
 		$this->width = (int) $width;
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
 	 *  Add custom CSS class to the field html container.
737 737
 	 *
738 738
 	 * @param string|array $classes
739
-	 * @return object $this
739
+	 * @return Field $this
740 740
 	 **/
741 741
 	public function add_class( $classes ) {
742 742
 		if ( ! is_array( $classes ) ) {
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
 	 * Whether this field is mandatory for the user
761 761
 	 *
762 762
 	 * @param bool $required
763
-	 * @return object $this
763
+	 * @return Field $this
764 764
 	 **/
765 765
 	public function set_required( $required = true ) {
766 766
 		$this->required = $required;
@@ -809,6 +809,7 @@  discard block
 block discarded – undo
809 809
 	/**
810 810
 	 * Cleans up an object class for usage as HTML class
811 811
 	 *
812
+	 * @param string $type
812 813
 	 * @return string
813 814
 	 */
814 815
 	protected function clean_type( $type ) {
@@ -826,7 +827,7 @@  discard block
 block discarded – undo
826 827
 	/**
827 828
 	 * Return an array of html classes to be used for the field container
828 829
 	 *
829
-	 * @return array
830
+	 * @return string[]
830 831
 	 */
831 832
 	public function get_html_class() {
832 833
 		$html_classes = array();
Please login to merge, or discard this patch.