Completed
Push — master ( c7ca0b...326b37 )
by Marin
02:31
created
core/Container/User_Meta_Container.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	/**
59 59
 	 * Checks whether the current request is valid
60 60
 	 *
61
-	 * @return bool
61
+	 * @return null|boolean
62 62
 	 **/
63 63
 	function is_valid_save($user_id = 0) {
64 64
 		if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 * Perform checks whether the current save() request is valid
77 77
 	 *
78 78
 	 * @param int $user_id ID of the user against which save() is ran
79
-	 * @return bool
79
+	 * @return null|boolean
80 80
 	 **/
81 81
 	function is_valid_save_conditions($user_id) {
82 82
 		$valid = true;
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 * Show the container only on users who have the $role role.
107 107
 	 *
108 108
 	 * @param string $role
109
-	 * @return object $this
109
+	 * @return User_Meta_Container $this
110 110
 	 **/
111 111
 	function show_on_user_role($role) {
112 112
 		$this->settings['show_on']['role'] = (array) $role;
Please login to merge, or discard this patch.
core/Container/Term_Meta_Container.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 	 * Show the container only on terms from the specified taxonomies.
189 189
 	 *
190 190
 	 * @param string|array $taxonomies
191
-	 * @return object $this
191
+	 * @return Term_Meta_Container $this
192 192
 	 **/
193 193
 	public function show_on_taxonomy( $taxonomies ) {
194 194
 		$taxonomies = (array) $taxonomies;
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	 * Show the container only on particular term level. 
203 203
 	 *
204 204
 	 * @param int $term_level 
205
-	 * @return object $this 
205
+	 * @return Term_Meta_Container $this 
206 206
 	 */ 
207 207
 	public function show_on_level( $term_level ) {                    
208 208
 		$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   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 	 * Show the container only on pages whose parent is referenced by $parent_page_path.
435 435
 	 *
436 436
 	 * @param string $parent_page_path
437
-	 * @return object $this
437
+	 * @return Post_Meta_Container $this
438 438
 	 **/
439 439
 	public function show_on_page_children( $parent_page_path ) {
440 440
 		$page = get_page_by_path( $parent_page_path );
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 	 * Show the container only on particular page referenced by it's path.
453 453
 	 *
454 454
 	 * @param int|string $page page ID or page path
455
-	 * @return object $this
455
+	 * @return Post_Meta_Container $this
456 456
 	 **/
457 457
 	public function show_on_page( $page ) {
458 458
 		if ( is_int( $page ) ) {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
 	 * @see show_on_taxonomy_term()
477 477
 	 *
478 478
 	 * @param string $category_slug
479
-	 * @return object $this
479
+	 * @return Post_Meta_Container $this
480 480
 	 **/
481 481
 	public function show_on_category( $category_slug ) {
482 482
 		$this->settings['show_on']['category'] = $category_slug;
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
 	 * Show the container only on pages whose template has filename $template_path.
489 489
 	 *
490 490
 	 * @param string|array $template_path
491
-	 * @return object $this
491
+	 * @return Post_Meta_Container $this
492 492
 	 **/
493 493
 	public function show_on_template( $template_path ) {
494 494
 		if ( is_array( $template_path ) ) {
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 	 * Hide the container from pages whose template has filename $template_path.
508 508
 	 *
509 509
 	 * @param string|array $template_path
510
-	 * @return object $this
510
+	 * @return Post_Meta_Container $this
511 511
 	 **/
512 512
 	public function hide_on_template( $template_path ) {
513 513
 		if ( is_array( $template_path ) ) {
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
 	 * Levels start from 1 (top level post)
528 528
 	 *
529 529
 	 * @param int $level
530
-	 * @return object $this
530
+	 * @return Post_Meta_Container $this
531 531
 	 **/
532 532
 	public function show_on_level( $level ) {
533 533
 		if ( $level < 0 ) {
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
 	 *
545 545
 	 * @param string $taxonomy_slug
546 546
 	 * @param string $term_slug
547
-	 * @return object $this
547
+	 * @return Post_Meta_Container $this
548 548
 	 **/
549 549
 	public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) {
550 550
 		$term = get_term_by( 'slug', $term_slug, $taxonomy_slug );
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
 	 * Learn more about {@link http://codex.wordpress.org/Post_Formats Post Formats (Codex)}
562 562
 	 *
563 563
 	 * @param string|array $post_format Name of the format as listed on Codex
564
-	 * @return object $this
564
+	 * @return Post_Meta_Container $this
565 565
 	 **/
566 566
 	public function show_on_post_format( $post_format ) {
567 567
 		if ( is_array( $post_format ) ) {
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
 	 * Show the container only on posts from the specified type(s).
585 585
 	 *
586 586
 	 * @param string|array $post_types
587
-	 * @return object $this
587
+	 * @return Post_Meta_Container $this
588 588
 	 **/
589 589
 	public function show_on_post_type( $post_types ) {
590 590
 		$post_types = (array) $post_types;
Please login to merge, or discard this patch.