Completed
Push — development ( 33ac70...bbbd3d )
by
unknown
07:47
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/Post_Meta_Container.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
 	 * Show the container only on pages whose parent is referenced by $parent_page_path.
440 440
 	 *
441 441
 	 * @param string $parent_page_path
442
-	 * @return object $this
442
+	 * @return Post_Meta_Container $this
443 443
 	 **/
444 444
 	public function show_on_page_children( $parent_page_path ) {
445 445
 		$page = get_page_by_path( $parent_page_path );
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
 	 * Show the container only on particular page referenced by it's path.
459 459
 	 *
460 460
 	 * @param int|string $page page ID or page path
461
-	 * @return object $this
461
+	 * @return Post_Meta_Container $this
462 462
 	 **/
463 463
 	public function show_on_page( $page ) {
464 464
 		if ( is_int( $page ) ) {
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 	 * @see show_on_taxonomy_term()
484 484
 	 *
485 485
 	 * @param string $category_slug
486
-	 * @return object $this
486
+	 * @return Post_Meta_Container $this
487 487
 	 **/
488 488
 	public function show_on_category( $category_slug ) {
489 489
 		$this->settings['show_on']['category'] = $category_slug;
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 	 * Show the container only on pages whose template has filename $template_path.
496 496
 	 *
497 497
 	 * @param string|array $template_path
498
-	 * @return object $this
498
+	 * @return Post_Meta_Container $this
499 499
 	 **/
500 500
 	public function show_on_template( $template_path ) {
501 501
 		$this->show_on_post_type( 'page' );
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
 	 * Hide the container from pages whose template has filename $template_path.
518 518
 	 *
519 519
 	 * @param string|array $template_path
520
-	 * @return object $this
520
+	 * @return Post_Meta_Container $this
521 521
 	 **/
522 522
 	public function hide_on_template( $template_path ) {
523 523
 		if ( is_array( $template_path ) ) {
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
 	 * Levels start from 1 (top level post)
538 538
 	 *
539 539
 	 * @param int $level
540
-	 * @return object $this
540
+	 * @return Post_Meta_Container $this
541 541
 	 **/
542 542
 	public function show_on_level( $level ) {
543 543
 		if ( $level < 0 ) {
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
 	 *
555 555
 	 * @param string $taxonomy_slug
556 556
 	 * @param string $term_slug
557
-	 * @return object $this
557
+	 * @return Post_Meta_Container $this
558 558
 	 **/
559 559
 	public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) {
560 560
 		$term = get_term_by( 'slug', $term_slug, $taxonomy_slug );
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
 	 * Learn more about {@link http://codex.wordpress.org/Post_Formats Post Formats (Codex)}
572 572
 	 *
573 573
 	 * @param string|array $post_format Name of the format as listed on Codex
574
-	 * @return object $this
574
+	 * @return Post_Meta_Container $this
575 575
 	 **/
576 576
 	public function show_on_post_format( $post_format ) {
577 577
 		if ( is_array( $post_format ) ) {
@@ -593,8 +593,8 @@  discard block
 block discarded – undo
593 593
 	/**
594 594
 	 * Show the container only on posts from the specified type(s).
595 595
 	 *
596
-	 * @param string|array $post_types
597
-	 * @return object $this
596
+	 * @param string $post_types
597
+	 * @return Post_Meta_Container $this
598 598
 	 **/
599 599
 	public function show_on_post_type( $post_types ) {
600 600
 		$post_types = (array) $post_types;
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
@@ -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/Nav_Menu_Container.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@  discard block
 block discarded – undo
22 22
 	/**
23 23
 	 * Create a new nav menu item fields container
24 24
 	 *
25
-	 * @param string $id ID of the container
26 25
 	 **/
27 26
 	public function __construct( $title ) {
28 27
 		parent::__construct( $title );
@@ -42,7 +41,6 @@  discard block
 block discarded – undo
42 41
 	 * Perform instance initialization after calling setup()
43 42
 	 *
44 43
 	 * @param int $menu_id Used to pass the correct menu_item_id to the Container object
45
-	 * @param bool $render Whether the container will render the fields.
46 44
 	 */
47 45
 	public function init( $menu_id = 0 ) {
48 46
 		$this->set_menu_id( $menu_id );
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
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 	 *
303 303
 	 * @see init()
304 304
 	 * @param array $settings
305
-	 * @return object $this
305
+	 * @return Container $this
306 306
 	 **/
307 307
 	public function setup( $settings = array() ) {
308 308
 		if ( $this->setup_ready ) {
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 	 * assigned to them instead.
468 468
 	 *
469 469
 	 * @param array $fields
470
-	 * @return object $this
470
+	 * @return Container $this
471 471
 	 **/
472 472
 	public function add_fields( $fields ) {
473 473
 		foreach ( $fields as $field ) {
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
 	 *
494 494
 	 * @param string $tab_name
495 495
 	 * @param array $fields
496
-	 * @return object $this
496
+	 * @return Container $this
497 497
 	 */
498 498
 	public function add_tab( $tab_name, $fields ) {
499 499
 		$this->add_template( 'tabs', array( $this, 'template_tabs' ) );
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
 	 * Assign datastore instance for use by the container fields
692 692
 	 *
693 693
 	 * @param Datastore_Interface $datastore
694
-	 * @return object $this
694
+	 * @return Container $this
695 695
 	 **/
696 696
 	public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) {
697 697
 		if ( $set_as_default && !$this->has_default_datastore() ) {
Please login to merge, or discard this patch.
core/Field/Field.php 1 patch
Doc Comments   +15 added lines, -14 removed lines patch added patch discarded remove patch
@@ -326,8 +326,8 @@  discard block
 block discarded – undo
326 326
 	/**
327 327
 	 * Assign DataStore instance for use during load, save and delete
328 328
 	 *
329
-	 * @param object $datastore
330
-	 * @return object $this
329
+	 * @param Datastore_Interface $datastore
330
+	 * @return Field $this
331 331
 	 **/
332 332
 	public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) {
333 333
 		if ( $set_as_default && !$this->has_default_datastore() ) {
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 	/**
342 342
 	 * Return the DataStore instance used by the field
343 343
 	 *
344
-	 * @return object $datastore
344
+	 * @return Datastore_Interface $datastore
345 345
 	 **/
346 346
 	public function get_datastore() {
347 347
 		return $this->datastore;
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
 	 * Assign the type of the container this field is in
352 352
 	 *
353 353
 	 * @param string
354
-	 * @return object $this
354
+	 * @return Field $this
355 355
 	 **/
356 356
 	public function set_context( $context ) {
357 357
 		$this->context = $context;
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 	 * name and the conditional logic fields.
455 455
 	 *
456 456
 	 * @param string $prefix
457
-	 * @return object $this
457
+	 * @return Field $this
458 458
 	 **/
459 459
 	public function set_prefix( $prefix ) {
460 460
 		$escaped_prefix = preg_quote( $this->name_prefix, '~' );
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
 	 * Set additional text to be displayed during field render,
500 500
 	 * containing information and guidance for the user
501 501
 	 *
502
-	 * @return object $this
502
+	 * @return Field $this
503 503
 	 **/
504 504
 	public function set_help_text( $help_text ) {
505 505
 		$this->help_text = $help_text;
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
 	 * Alias for set_help_text()
511 511
 	 *
512 512
 	 * @see set_help_text()
513
-	 * @return object $this
513
+	 * @return Field $this
514 514
 	 **/
515 515
 	public function help_text( $help_text ) {
516 516
 		return $this->set_help_text( $help_text );
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
 	/**
520 520
 	 * Return the field help text
521 521
 	 *
522
-	 * @return object $this
522
+	 * @return string $this
523 523
 	 **/
524 524
 	public function get_help_text() {
525 525
 		return $this->help_text;
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
 	 * Whether or not this value should be auto loaded. Applicable to theme options only.
530 530
 	 *
531 531
 	 * @param bool $autoload
532
-	 * @return object $this
532
+	 * @return Field $this
533 533
 	 **/
534 534
 	public function set_autoload( $autoload ) {
535 535
 		$this->autoload = $autoload;
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 	 * Whether or not this field will be initialized when the field is in the viewport (visible).
550 550
 	 *
551 551
 	 * @param bool $lazyload
552
-	 * @return object $this
552
+	 * @return Field $this
553 553
 	 **/
554 554
 	public function set_lazyload( $lazyload ) {
555 555
 		$this->lazyload = $lazyload;
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
 	 * Set the field width.
570 570
 	 *
571 571
 	 * @param int $width
572
-	 * @return object $this
572
+	 * @return Field $this
573 573
 	 **/
574 574
 	public function set_width( $width ) {
575 575
 		$this->width = (int) $width;
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
 	 *  Add custom CSS class to the field html container.
590 590
 	 *
591 591
 	 * @param string|array $classes
592
-	 * @return object $this
592
+	 * @return Field $this
593 593
 	 **/
594 594
 	public function add_class( $classes ) {
595 595
 		if ( ! is_array( $classes ) ) {
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
 	 * Whether this field is mandatory for the user
614 614
 	 *
615 615
 	 * @param bool $required
616
-	 * @return object $this
616
+	 * @return Field $this
617 617
 	 **/
618 618
 	public function set_required( $required = true ) {
619 619
 		$this->required = $required;
@@ -662,6 +662,7 @@  discard block
 block discarded – undo
662 662
 	/**
663 663
 	 * Cleans up an object class for usage as HTML class
664 664
 	 *
665
+	 * @param string $type
665 666
 	 * @return string
666 667
 	 */
667 668
 	protected function clean_type( $type ) {
@@ -679,7 +680,7 @@  discard block
 block discarded – undo
679 680
 	/**
680 681
 	 * Return an array of html classes to be used for the field container
681 682
 	 *
682
-	 * @return array
683
+	 * @return string[]
683 684
 	 */
684 685
 	public function get_html_class() {
685 686
 		$html_classes = array();
Please login to merge, or discard this patch.