@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | /** |
427 | 427 | * Check if all conditions pass for object |
428 | 428 | * |
429 | - * @param $object_id |
|
429 | + * @param integer $object_id |
|
430 | 430 | * @return bool |
431 | 431 | */ |
432 | 432 | protected function all_conditions_pass( $object_id ) { |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | * Set datastore instance |
588 | 588 | * |
589 | 589 | * @param Datastore_Interface $datastore |
590 | - * @return object $this |
|
590 | + * @return Container $this |
|
591 | 591 | */ |
592 | 592 | public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) { |
593 | 593 | if ( $set_as_default && ! $this->has_default_datastore() ) { |
@@ -745,7 +745,7 @@ discard block |
||
745 | 745 | * Set CSS classes that the container should use. |
746 | 746 | * |
747 | 747 | * @param string|array<string> $classes |
748 | - * @return object $this |
|
748 | + * @return Container $this |
|
749 | 749 | */ |
750 | 750 | public function set_classes( $classes ) { |
751 | 751 | $this->classes = Helper::sanitize_classes( $classes ); |
@@ -797,7 +797,7 @@ discard block |
||
797 | 797 | * assigned to them instead. |
798 | 798 | * |
799 | 799 | * @param array $fields |
800 | - * @return object $this |
|
800 | + * @return Container $this |
|
801 | 801 | */ |
802 | 802 | public function add_fields( $fields ) { |
803 | 803 | foreach ( $fields as $field ) { |
@@ -827,7 +827,7 @@ discard block |
||
827 | 827 | * |
828 | 828 | * @param string $tab_name |
829 | 829 | * @param array $fields |
830 | - * @return object $this |
|
830 | + * @return Container $this |
|
831 | 831 | */ |
832 | 832 | public function add_tab( $tab_name, $fields ) { |
833 | 833 | $this->add_fields( $fields ); |
@@ -16,6 +16,7 @@ discard block |
||
16 | 16 | * @param int $object_id Object id to get value for (e.g. post_id, term_id etc.) |
17 | 17 | * @param string $container_type Container type to search in |
18 | 18 | * @param string $field_name Field name |
19 | + * @param string $container_id |
|
19 | 20 | * @return mixed |
20 | 21 | */ |
21 | 22 | public static function get_field_clone( $object_id, $container_type, $container_id, $field_name ) { |
@@ -214,7 +215,7 @@ discard block |
||
214 | 215 | * |
215 | 216 | * @param array &$array The input array. |
216 | 217 | * @param int $sort_flags Flags for controlling sorting behavior. |
217 | - * @return array Sorted array. |
|
218 | + * @return boolean Sorted array. |
|
218 | 219 | */ |
219 | 220 | public static function ksort_recursive( &$array, $sort_flags = SORT_REGULAR ) { |
220 | 221 | if ( ! is_array( $array ) ) { |