Completed
Push — milestone/2.0 ( c8c0f3...e03107 )
by
unknown
06:41
created
core/Field/Field.php 1 patch
Doc Comments   +15 added lines, -14 removed lines patch added patch discarded remove patch
@@ -405,8 +405,8 @@  discard block
 block discarded – undo
405 405
 	/**
406 406
 	 * Assign DataStore instance for use during load, save and delete
407 407
 	 *
408
-	 * @param object $datastore
409
-	 * @return object $this
408
+	 * @param Datastore_Interface $datastore
409
+	 * @return Field $this
410 410
 	 **/
411 411
 	public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) {
412 412
 		if ( $set_as_default && !$this->has_default_datastore() ) {
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 	/**
421 421
 	 * Return the DataStore instance used by the field
422 422
 	 *
423
-	 * @return object $datastore
423
+	 * @return Datastore_Interface $datastore
424 424
 	 **/
425 425
 	public function get_datastore() {
426 426
 		return $this->datastore;
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 	 * Assign the type of the container this field is in
431 431
 	 *
432 432
 	 * @param string
433
-	 * @return object $this
433
+	 * @return Field $this
434 434
 	 **/
435 435
 	public function set_context( $context ) {
436 436
 		$this->context = $context;
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 	/**
468 468
 	 * Return a differently formatted value for end-users
469 469
 	 *
470
-	 * @return mixed
470
+	 * @return string
471 471
 	 **/
472 472
 	public function get_formatted_value() {
473 473
 		$value = $this->get_value();
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
 	 * Set additional text to be displayed during field render,
588 588
 	 * containing information and guidance for the user
589 589
 	 *
590
-	 * @return object $this
590
+	 * @return Field $this
591 591
 	 **/
592 592
 	public function set_help_text( $help_text ) {
593 593
 		$this->help_text = $help_text;
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
 	 * Alias for set_help_text()
599 599
 	 *
600 600
 	 * @see set_help_text()
601
-	 * @return object $this
601
+	 * @return Field $this
602 602
 	 **/
603 603
 	public function help_text( $help_text ) {
604 604
 		return $this->set_help_text( $help_text );
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
 	/**
608 608
 	 * Return the field help text
609 609
 	 *
610
-	 * @return object $this
610
+	 * @return string $this
611 611
 	 **/
612 612
 	public function get_help_text() {
613 613
 		return $this->help_text;
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
 	 * Whether or not this value should be auto loaded. Applicable to theme options only.
618 618
 	 *
619 619
 	 * @param bool $autoload
620
-	 * @return object $this
620
+	 * @return Field $this
621 621
 	 **/
622 622
 	public function set_autoload( $autoload ) {
623 623
 		$this->autoload = $autoload;
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
 	 * Whether or not this field will be initialized when the field is in the viewport (visible).
638 638
 	 *
639 639
 	 * @param bool $lazyload
640
-	 * @return object $this
640
+	 * @return Field $this
641 641
 	 **/
642 642
 	public function set_lazyload( $lazyload ) {
643 643
 		$this->lazyload = $lazyload;
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
 	 * Set the field width.
658 658
 	 *
659 659
 	 * @param int $width
660
-	 * @return object $this
660
+	 * @return Field $this
661 661
 	 **/
662 662
 	public function set_width( $width ) {
663 663
 		$this->width = (int) $width;
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
 	 *  Add custom CSS class to the field html container.
678 678
 	 *
679 679
 	 * @param string|array $classes
680
-	 * @return object $this
680
+	 * @return Field $this
681 681
 	 **/
682 682
 	public function add_class( $classes ) {
683 683
 		if ( ! is_array( $classes ) ) {
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
 	 * Whether this field is mandatory for the user
702 702
 	 *
703 703
 	 * @param bool $required
704
-	 * @return object $this
704
+	 * @return Field $this
705 705
 	 **/
706 706
 	public function set_required( $required = true ) {
707 707
 		$this->required = $required;
@@ -750,6 +750,7 @@  discard block
 block discarded – undo
750 750
 	/**
751 751
 	 * Cleans up an object class for usage as HTML class
752 752
 	 *
753
+	 * @param string $type
753 754
 	 * @return string
754 755
 	 */
755 756
 	protected function clean_type( $type ) {
@@ -767,7 +768,7 @@  discard block
 block discarded – undo
767 768
 	/**
768 769
 	 * Return an array of html classes to be used for the field container
769 770
 	 *
770
-	 * @return array
771
+	 * @return string[]
771 772
 	 */
772 773
 	public function get_html_class() {
773 774
 		$html_classes = array();
Please login to merge, or discard this patch.
core/Service/Legacy_Storage_Service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -345,7 +345,7 @@
 block discarded – undo
345 345
 	/**
346 346
 	 * Convert field data to a new storage key
347 347
 	 * 
348
-	 * @param  array  $hierarchy
348
+	 * @param  array  $full_hierarchy
349 349
 	 * @param  array  $hierarchy_index
350 350
 	 * @param  integer $value_index
351 351
 	 * @param  string  $value_key
Please login to merge, or discard this patch.
core/Service/Meta_Query_Service.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -54,6 +54,7 @@
 block discarded – undo
54 54
 	/**
55 55
 	 * Recursive function to replace meta keys in meta_query arrays
56 56
 	 *
57
+	 * @param string $container_type
57 58
 	 * @return array
58 59
 	 */
59 60
 	protected function filter_meta_query_array( $condition, $container_type ) {
Please login to merge, or discard this patch.