Completed
Push — milestone/2_0/react-ui ( af63da...dbca16 )
by
unknown
12:41 queued 02:15
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
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	/**
47 47
 	 * Checks whether the current save request is valid
48 48
 	 *
49
-	 * @return bool
49
+	 * @return null|boolean
50 50
 	 **/
51 51
 	public function is_valid_save( $user_id = 0 ) {
52 52
 		if ( ! $this->verified_nonce_in_request() ) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 * Check container attachment rules against object id
98 98
 	 *
99 99
 	 * @param int $object_id
100
-	 * @return bool
100
+	 * @return null|boolean
101 101
 	 **/
102 102
 	public function is_valid_attach_for_object( $object_id = null ) {
103 103
 		$valid = true;
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 	 * Show the container only on users who have the $role role.
242 242
 	 *
243 243
 	 * @param string $role
244
-	 * @return object $this
244
+	 * @return User_Meta_Container $this
245 245
 	 **/
246 246
 	public function show_on_user_role( $role ) {
247 247
 		$this->settings['show_on']['role'] = (array) $role;
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 	 * Show the container only for users who have either capabilities or roles setup
254 254
 	 *
255 255
 	 * @param array $show_for
256
-	 * @return object $this
256
+	 * @return User_Meta_Container $this
257 257
 	 **/
258 258
 	public function show_for( $show_for ) {
259 259
 		$this->settings['show_for'] = $this->parse_show_for( $show_for );
Please login to merge, or discard this patch.
core/Container/Container.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 	 * Set datastore instance
496 496
 	 *
497 497
 	 * @param Datastore_Interface $datastore
498
-	 * @return object $this
498
+	 * @return Container $this
499 499
 	 **/
500 500
 	public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) {
501 501
 		if ( $set_as_default && ! $this->has_default_datastore() ) {
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
 	 * Set CSS classes that the container should use.
663 663
 	 *
664 664
 	 * @param string|array $classes
665
-	 * @return object $this
665
+	 * @return Container $this
666 666
 	 */
667 667
 	public function set_classes( $classes ) {
668 668
 		$this->classes = Helper::sanitize_classes( $classes );
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
 	 * assigned to them instead.
714 714
 	 *
715 715
 	 * @param array $fields
716
-	 * @return object $this
716
+	 * @return Container $this
717 717
 	 **/
718 718
 	public function add_fields( $fields ) {
719 719
 		foreach ( $fields as $field ) {
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
 	 *
740 740
 	 * @param string $tab_name
741 741
 	 * @param array $fields
742
-	 * @return object $this
742
+	 * @return Container $this
743 743
 	 */
744 744
 	public function add_tab( $tab_name, $fields ) {
745 745
 		$this->add_fields( $fields );
Please login to merge, or discard this patch.
core/Field/Field.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 	 * Set datastore instance
449 449
 	 *
450 450
 	 * @param Datastore_Interface $datastore
451
-	 * @return object $this
451
+	 * @return Field $this
452 452
 	 **/
453 453
 	public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) {
454 454
 		if ( $set_as_default && ! $this->has_default_datastore() ) {
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
 	 * Assign the type of the container this field is in
473 473
 	 *
474 474
 	 * @param string
475
-	 * @return object $this
475
+	 * @return Field $this
476 476
 	 **/
477 477
 	public function set_context( $context ) {
478 478
 		$this->context = $context;
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
 	/**
665 665
 	 * Return the field help text
666 666
 	 *
667
-	 * @return object $this
667
+	 * @return string $this
668 668
 	 **/
669 669
 	public function get_help_text() {
670 670
 		return $this->help_text;
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
 	 * Set additional text to be displayed during field render,
675 675
 	 * containing information and guidance for the user
676 676
 	 *
677
-	 * @return object $this
677
+	 * @return Field $this
678 678
 	 **/
679 679
 	public function set_help_text( $help_text ) {
680 680
 		$this->help_text = $help_text;
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 	 * Alias for set_help_text()
686 686
 	 *
687 687
 	 * @see set_help_text()
688
-	 * @return object $this
688
+	 * @return Field $this
689 689
 	 **/
690 690
 	public function help_text( $help_text ) {
691 691
 		return $this->set_help_text( $help_text );
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
 	 * Whether or not this value should be auto loaded. Applicable to theme options only.
705 705
 	 *
706 706
 	 * @param bool $autoload
707
-	 * @return object $this
707
+	 * @return Field $this
708 708
 	 **/
709 709
 	public function set_autoload( $autoload ) {
710 710
 		$this->autoload = $autoload;
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
 	 * Whether or not this field will be initialized when the field is in the viewport (visible).
725 725
 	 *
726 726
 	 * @param bool $lazyload
727
-	 * @return object $this
727
+	 * @return Field $this
728 728
 	 **/
729 729
 	public function set_lazyload( $lazyload ) {
730 730
 		$this->lazyload = $lazyload;
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
 	 * Set the field width.
745 745
 	 *
746 746
 	 * @param int $width
747
-	 * @return object $this
747
+	 * @return Field $this
748 748
 	 **/
749 749
 	public function set_width( $width ) {
750 750
 		$this->width = (int) $width;
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
 	 * Set CSS classes that the container should use.
765 765
 	 *
766 766
 	 * @param string|array $classes
767
-	 * @return object $this
767
+	 * @return Field $this
768 768
 	 */
769 769
 	public function set_classes( $classes ) {
770 770
 		$this->classes = Helper::sanitize_classes( $classes );
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
 	 * Whether this field is mandatory for the user
776 776
 	 *
777 777
 	 * @param bool $required
778
-	 * @return object $this
778
+	 * @return Field $this
779 779
 	 **/
780 780
 	public function set_required( $required = true ) {
781 781
 		$this->required = $required;
Please login to merge, or discard this patch.