Completed
Push — milestone/2_0/container-condit... ( 446b23...9b81fb )
by
unknown
04:50
created
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.
core/Container/Container.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -371,6 +371,7 @@  discard block
 block discarded – undo
371 371
 	/**
372 372
 	 * Check if all conditions pass for object
373 373
 	 *
374
+	 * @param integer $object_id
374 375
 	 * @return bool
375 376
 	 */
376 377
 	protected function all_conditions_pass( $object_id ) {
@@ -538,7 +539,7 @@  discard block
 block discarded – undo
538 539
 	 * Set datastore instance
539 540
 	 *
540 541
 	 * @param Datastore_Interface $datastore
541
-	 * @return object $this
542
+	 * @return Container $this
542 543
 	 */
543 544
 	public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) {
544 545
 		if ( $set_as_default && ! $this->has_default_datastore() ) {
@@ -705,7 +706,7 @@  discard block
 block discarded – undo
705 706
 	 * Set CSS classes that the container should use.
706 707
 	 *
707 708
 	 * @param string|array $classes
708
-	 * @return object $this
709
+	 * @return Container $this
709 710
 	 */
710 711
 	public function set_classes( $classes ) {
711 712
 		$this->classes = Helper::sanitize_classes( $classes );
@@ -765,7 +766,7 @@  discard block
 block discarded – undo
765 766
 	 * assigned to them instead.
766 767
 	 *
767 768
 	 * @param array $fields
768
-	 * @return object $this
769
+	 * @return Container $this
769 770
 	 */
770 771
 	public function add_fields( $fields ) {
771 772
 		foreach ( $fields as $field ) {
@@ -791,7 +792,7 @@  discard block
 block discarded – undo
791 792
 	 *
792 793
 	 * @param string $tab_name
793 794
 	 * @param array $fields
794
-	 * @return object $this
795
+	 * @return Container $this
795 796
 	 */
796 797
 	public function add_tab( $tab_name, $fields ) {
797 798
 		$this->add_fields( $fields );
Please login to merge, or discard this patch.