Completed
Push — milestone/2_0/react-ui ( 086f71...66ee30 )
by
unknown
04:02
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/Term_Meta_Container.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 	 *
211 211
 	 * @deprecated
212 212
 	 * @param string|array $taxonomies
213
-	 * @return object $this
213
+	 * @return Term_Meta_Container $this
214 214
 	 **/
215 215
 	public function show_on_taxonomy( $taxonomies ) {
216 216
 		$taxonomies = is_array( $taxonomies ) ? $taxonomies : array( $taxonomies );
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 	 *
224 224
 	 * @deprecated
225 225
 	 * @param int $term_level
226
-	 * @return object $this
226
+	 * @return Term_Meta_Container $this
227 227
 	 */
228 228
 	public function show_on_level( $term_level ) {
229 229
 		$this->and_when( 'term_level', '=', intval( $term_level ) );
Please login to merge, or discard this patch.
core/Container/User_Meta_Container.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
 	 *
207 207
 	 * @deprecated
208 208
 	 * @param string|array $role
209
-	 * @return object $this
209
+	 * @return User_Meta_Container $this
210 210
 	 **/
211 211
 	public function show_on_user_role( $role ) {
212 212
 		$roles = is_array( $role ) ? $role : array( $role );
Please login to merge, or discard this patch.
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.
core/Installer/Container_Condition_Installer.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 	 *
191 191
 	 * @param  array<string>                     $condition_types
192 192
 	 * @param  Carbon_Fields\Container\Container $container
193
-	 * @return array<string>
193
+	 * @return string[]
194 194
 	 */
195 195
 	public static function filter_post_meta_container_static_condition_types( $condition_types, $container_type, $container ) {
196 196
 		return array_merge(
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	 *
205 205
 	 * @param  array<string>                     $condition_types
206 206
 	 * @param  Carbon_Fields\Container\Container $container
207
-	 * @return array<string>
207
+	 * @return string[]
208 208
 	 */
209 209
 	public static function filter_post_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) {
210 210
 		return array_merge(
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	 *
219 219
 	 * @param  array<string>                     $condition_types
220 220
 	 * @param  Carbon_Fields\Container\Container $container
221
-	 * @return array<string>
221
+	 * @return string[]
222 222
 	 */
223 223
 	public static function filter_term_meta_container_static_condition_types( $condition_types, $container_type, $container ) {
224 224
 		return array_merge(
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 	 *
233 233
 	 * @param  array<string>                     $condition_types
234 234
 	 * @param  Carbon_Fields\Container\Container $container
235
-	 * @return array<string>
235
+	 * @return string[]
236 236
 	 */
237 237
 	public static function filter_term_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) {
238 238
 		return array_merge(
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	 *
247 247
 	 * @param  array<string>                     $condition_types
248 248
 	 * @param  Carbon_Fields\Container\Container $container
249
-	 * @return array<string>
249
+	 * @return string[]
250 250
 	 */
251 251
 	public static function filter_user_meta_container_static_condition_types( $condition_types, $container_type, $container ) {
252 252
 		return array_merge(
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	 *
261 261
 	 * @param  array<string>                     $condition_types
262 262
 	 * @param  Carbon_Fields\Container\Container $container
263
-	 * @return array<string>
263
+	 * @return string[]
264 264
 	 */
265 265
 	public static function filter_user_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) {
266 266
 		return array_merge(
Please login to merge, or discard this patch.
core/Container/Fulfillable/Fulfillable_Collection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@
 block discarded – undo
298 298
 	 * 
299 299
 	 * @param  array<string>          $condition_types
300 300
 	 * @param  array|boolean          $environment Environment array or a boolean value to force on conditions
301
-	 * @param  array                  $comparison_operators Array of comparison operators to evaluate regardless of condition type
301
+	 * @param  string[]                  $comparison_operators Array of comparison operators to evaluate regardless of condition type
302 302
 	 * @return Fulfillable_Collection
303 303
 	 */
304 304
 	public function evaluate( $condition_types, $environment, $comparison_operators = array() ) {
Please login to merge, or discard this patch.
core/Container/Post_Meta_Container.php 1 patch
Doc Comments   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -69,7 +69,6 @@  discard block
 block discarded – undo
69 69
 	 * Possible errors are triggering save() for autosave requests
70 70
 	 * or performing post save outside of the post edit page (like Quick Edit)
71 71
 	 *
72
-	 * @param int $post_id ID of the post against which save() is ran
73 72
 	 * @return bool
74 73
 	 **/
75 74
 	public function is_valid_save() {
@@ -269,7 +268,7 @@  discard block
 block discarded – undo
269 268
 	 *
270 269
 	 * @deprecated
271 270
 	 * @param int|string $page page ID or page path
272
-	 * @return object $this
271
+	 * @return Post_Meta_Container $this
273 272
 	 **/
274 273
 	public function show_on_page( $page ) {
275 274
 		$page_id = absint( $page );
@@ -291,7 +290,7 @@  discard block
 block discarded – undo
291 290
 	 *
292 291
 	 * @deprecated
293 292
 	 * @param string $parent_page_path
294
-	 * @return object $this
293
+	 * @return Post_Meta_Container $this
295 294
 	 **/
296 295
 	public function show_on_page_children( $parent_page_path ) {
297 296
 		$page = get_page_by_path( $parent_page_path );
@@ -305,7 +304,7 @@  discard block
 block discarded – undo
305 304
 	 *
306 305
 	 * @deprecated
307 306
 	 * @param string|array $template_path
308
-	 * @return object $this
307
+	 * @return Post_Meta_Container $this
309 308
 	 **/
310 309
 	public function show_on_template( $template_path ) {
311 310
 		// Backwards compatibility where only pages support templates
@@ -323,7 +322,7 @@  discard block
 block discarded – undo
323 322
 	 *
324 323
 	 * @deprecated
325 324
 	 * @param string|array $template_path
326
-	 * @return object $this
325
+	 * @return Post_Meta_Container $this
327 326
 	 **/
328 327
 	public function hide_on_template( $template_path ) {
329 328
 		$template_paths = is_array( $template_path ) ? $template_path : array( $template_path );
@@ -337,7 +336,7 @@  discard block
 block discarded – undo
337 336
 	 *
338 337
 	 * @deprecated
339 338
 	 * @param int $level
340
-	 * @return object $this
339
+	 * @return Post_Meta_Container $this
341 340
 	 **/
342 341
 	public function show_on_level( $level ) {
343 342
 		$this->and_when( 'post_level', '=', intval( $level ) );
@@ -350,7 +349,7 @@  discard block
 block discarded – undo
350 349
 	 *
351 350
 	 * @deprecated
352 351
 	 * @param string|array $post_format Name of the format as listed on Codex
353
-	 * @return object $this
352
+	 * @return Post_Meta_Container $this
354 353
 	 **/
355 354
 	public function show_on_post_format( $post_format ) {
356 355
 		$post_formats = is_array( $post_format ) ? $post_format : array( $post_format );
@@ -362,8 +361,8 @@  discard block
 block discarded – undo
362 361
 	 * Show the container only on posts from the specified type(s).
363 362
 	 *
364 363
 	 * @deprecated
365
-	 * @param string|array $post_types
366
-	 * @return object $this
364
+	 * @param string $post_types
365
+	 * @return Post_Meta_Container $this
367 366
 	 **/
368 367
 	public function show_on_post_type( $post_types ) {
369 368
 		$post_types = is_array( $post_types ) ? $post_types : array( $post_types );
@@ -378,7 +377,7 @@  discard block
 block discarded – undo
378 377
 	 *
379 378
 	 * @deprecated
380 379
 	 * @param string $category_slug
381
-	 * @return object $this
380
+	 * @return Post_Meta_Container $this
382 381
 	 **/
383 382
 	public function show_on_category( $category_slug ) {
384 383
 		$this->and_when( 'post_term', '=', array(
@@ -395,7 +394,7 @@  discard block
 block discarded – undo
395 394
 	 * @deprecated
396 395
 	 * @param string $taxonomy_slug
397 396
 	 * @param string $term_slug
398
-	 * @return object $this
397
+	 * @return Post_Meta_Container $this
399 398
 	 **/
400 399
 	public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) {
401 400
 		$this->and_when( 'post_term', '=', array(
Please login to merge, or discard this patch.