Completed
Push — milestone/2.0 ( ba0b77...9a3493 )
by
unknown
02:37
created
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/Post_Meta_Container.php 1 patch
Doc Comments   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -178,6 +178,7 @@  discard block
 block discarded – undo
178 178
 	/**
179 179
 	 * Check container attachment rules against object id
180 180
 	 *
181
+	 * @param integer $object_id
181 182
 	 * @return bool
182 183
 	 **/
183 184
 	public function is_valid_attach_for_object( $object_id = null ) {
@@ -345,7 +346,7 @@  discard block
 block discarded – undo
345 346
 	 * Show the container only on particular page referenced by it's path.
346 347
 	 *
347 348
 	 * @param int|string $page page ID or page path
348
-	 * @return object $this
349
+	 * @return Post_Meta_Container $this
349 350
 	 **/
350 351
 	public function show_on_page( $page ) {
351 352
 		$page_id = absint( $page );
@@ -371,7 +372,7 @@  discard block
 block discarded – undo
371 372
 	 * Show the container only on pages whose parent is referenced by $parent_page_path.
372 373
 	 *
373 374
 	 * @param string $parent_page_path
374
-	 * @return object $this
375
+	 * @return Post_Meta_Container $this
375 376
 	 **/
376 377
 	public function show_on_page_children( $parent_page_path ) {
377 378
 		$page = get_page_by_path( $parent_page_path );
@@ -393,7 +394,7 @@  discard block
 block discarded – undo
393 394
 	 * @see show_on_taxonomy_term()
394 395
 	 *
395 396
 	 * @param string $category_slug
396
-	 * @return object $this
397
+	 * @return Post_Meta_Container $this
397 398
 	 **/
398 399
 	public function show_on_category( $category_slug ) {
399 400
 		$this->settings['show_on']['category'] = $category_slug;
@@ -405,7 +406,7 @@  discard block
 block discarded – undo
405 406
 	 * Show the container only on pages whose template has filename $template_path.
406 407
 	 *
407 408
 	 * @param string|array $template_path
408
-	 * @return object $this
409
+	 * @return Post_Meta_Container $this
409 410
 	 **/
410 411
 	public function show_on_template( $template_path ) {
411 412
 		// Backwards compatibility where only pages support templates
@@ -430,7 +431,7 @@  discard block
 block discarded – undo
430 431
 	 * Hide the container from pages whose template has filename $template_path.
431 432
 	 *
432 433
 	 * @param string|array $template_path
433
-	 * @return object $this
434
+	 * @return Post_Meta_Container $this
434 435
 	 **/
435 436
 	public function hide_on_template( $template_path ) {
436 437
 		if ( is_array( $template_path ) ) {
@@ -450,7 +451,7 @@  discard block
 block discarded – undo
450 451
 	 * Levels start from 1 (top level post)
451 452
 	 *
452 453
 	 * @param int $level
453
-	 * @return object $this
454
+	 * @return Post_Meta_Container $this
454 455
 	 **/
455 456
 	public function show_on_level( $level ) {
456 457
 		if ( $level < 0 ) {
@@ -467,7 +468,7 @@  discard block
 block discarded – undo
467 468
 	 *
468 469
 	 * @param string $taxonomy_slug
469 470
 	 * @param string $term_slug
470
-	 * @return object $this
471
+	 * @return Post_Meta_Container $this
471 472
 	 **/
472 473
 	public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) {
473 474
 		$term = get_term_by( 'slug', $term_slug, $taxonomy_slug );
@@ -484,7 +485,7 @@  discard block
 block discarded – undo
484 485
 	 * Learn more about {@link http://codex.wordpress.org/Post_Formats Post Formats (Codex)}
485 486
 	 *
486 487
 	 * @param string|array $post_format Name of the format as listed on Codex
487
-	 * @return object $this
488
+	 * @return Post_Meta_Container $this
488 489
 	 **/
489 490
 	public function show_on_post_format( $post_format ) {
490 491
 		if ( is_array( $post_format ) ) {
@@ -506,8 +507,8 @@  discard block
 block discarded – undo
506 507
 	/**
507 508
 	 * Show the container only on posts from the specified type(s).
508 509
 	 *
509
-	 * @param string|array $post_types
510
-	 * @return object $this
510
+	 * @param string $post_types
511
+	 * @return Post_Meta_Container $this
511 512
 	 **/
512 513
 	public function show_on_post_type( $post_types ) {
513 514
 		$post_types = (array) $post_types;
Please login to merge, or discard this patch.
core/Container/Term_Meta_Container.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,6 +96,7 @@  discard block
 block discarded – undo
96 96
 	/**
97 97
 	 * Check container attachment rules against object id
98 98
 	 *
99
+	 * @param integer $object_id
99 100
 	 * @return bool
100 101
 	 **/
101 102
 	public function is_valid_attach_for_object( $object_id = null ) {
@@ -141,7 +142,7 @@  discard block
 block discarded – undo
141 142
 	 * Show the container only on terms from the specified taxonomies.
142 143
 	 *
143 144
 	 * @param string|array $taxonomies
144
-	 * @return object $this
145
+	 * @return Term_Meta_Container $this
145 146
 	 **/
146 147
 	public function show_on_taxonomy( $taxonomies ) {
147 148
 		$taxonomies = (array) $taxonomies;
@@ -155,7 +156,7 @@  discard block
 block discarded – undo
155 156
 	 * Show the container only on particular term level.
156 157
 	 *
157 158
 	 * @param int $term_level
158
-	 * @return object $this
159
+	 * @return Term_Meta_Container $this
159 160
 	 */
160 161
 	public function show_on_level( $term_level ) {
161 162
 		$this->settings['show_on_level'] = $term_level;
Please login to merge, or discard this patch.
core/Container/User_Meta_Container.php 1 patch
Doc Comments   +5 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() ) {
@@ -95,7 +95,8 @@  discard block
 block discarded – undo
95 95
 	/**
96 96
 	 * Check container attachment rules against object id
97 97
 	 *
98
-	 * @return bool
98
+	 * @param integer $object_id
99
+	 * @return null|boolean
99 100
 	 **/
100 101
 	public function is_valid_attach_for_object( $object_id = null ) {
101 102
 		$valid = true;
@@ -250,7 +251,7 @@  discard block
 block discarded – undo
250 251
 	 * Show the container only on users who have the $role role.
251 252
 	 *
252 253
 	 * @param string $role
253
-	 * @return object $this
254
+	 * @return User_Meta_Container $this
254 255
 	 **/
255 256
 	public function show_on_user_role( $role ) {
256 257
 		$this->settings['show_on']['role'] = (array) $role;
@@ -262,7 +263,7 @@  discard block
 block discarded – undo
262 263
 	 * Show the container only for users who have either capabilities or roles setup
263 264
 	 *
264 265
 	 * @param array $show_for
265
-	 * @return object $this
266
+	 * @return User_Meta_Container $this
266 267
 	 **/
267 268
 	public function show_for( $show_for ) {
268 269
 		$this->settings['show_for'] = $this->parse_show_for( $show_for );
Please login to merge, or discard this patch.