Completed
Push — development ( ac53d5...51cd31 )
by Joro
15:34 queued 05:34
created
core/Container/Post_Meta_Container.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 	 *
268 268
 	 * @deprecated
269 269
 	 * @param int|string $page page ID or page path
270
-	 * @return object $this
270
+	 * @return Post_Meta_Container $this
271 271
 	 */
272 272
 	public function show_on_page( $page ) {
273 273
 		$page_id = absint( $page );
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 	 *
290 290
 	 * @deprecated
291 291
 	 * @param string $parent_page_path
292
-	 * @return object $this
292
+	 * @return Post_Meta_Container $this
293 293
 	 */
294 294
 	public function show_on_page_children( $parent_page_path ) {
295 295
 		$page = get_page_by_path( $parent_page_path );
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 	 *
304 304
 	 * @deprecated
305 305
 	 * @param string|array $template_path
306
-	 * @return object $this
306
+	 * @return Post_Meta_Container $this
307 307
 	 */
308 308
 	public function show_on_template( $template_path ) {
309 309
 		// Backwards compatibility where only pages support templates
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 	 *
322 322
 	 * @deprecated
323 323
 	 * @param string|array $template_path
324
-	 * @return object $this
324
+	 * @return Post_Meta_Container $this
325 325
 	 */
326 326
 	public function hide_on_template( $template_path ) {
327 327
 		$template_paths = is_array( $template_path ) ? $template_path : array( $template_path );
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 	 *
336 336
 	 * @deprecated
337 337
 	 * @param int $level
338
-	 * @return object $this
338
+	 * @return Post_Meta_Container $this
339 339
 	 */
340 340
 	public function show_on_level( $level ) {
341 341
 		$this->where( 'post_level', '=', intval( $level ) );
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	 *
349 349
 	 * @deprecated
350 350
 	 * @param string|array $post_format Name of the format as listed on Codex
351
-	 * @return object $this
351
+	 * @return Post_Meta_Container $this
352 352
 	 */
353 353
 	public function show_on_post_format( $post_format ) {
354 354
 		$post_formats = is_array( $post_format ) ? $post_format : array( $post_format );
@@ -360,8 +360,8 @@  discard block
 block discarded – undo
360 360
 	 * Show the container only on posts from the specified type(s).
361 361
 	 *
362 362
 	 * @deprecated
363
-	 * @param string|array $post_types
364
-	 * @return object $this
363
+	 * @param string $post_types
364
+	 * @return Post_Meta_Container $this
365 365
 	 */
366 366
 	public function show_on_post_type( $post_types ) {
367 367
 		$post_types = is_array( $post_types ) ? $post_types : array( $post_types );
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 	 *
377 377
 	 * @deprecated
378 378
 	 * @param string $category_slug
379
-	 * @return object $this
379
+	 * @return Post_Meta_Container $this
380 380
 	 */
381 381
 	public function show_on_category( $category_slug ) {
382 382
 		$this->where( 'post_term', '=', array(
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 	 * @deprecated
394 394
 	 * @param string $taxonomy_slug
395 395
 	 * @param string $term_slug
396
-	 * @return object $this
396
+	 * @return Post_Meta_Container $this
397 397
 	 */
398 398
 	public function show_on_taxonomy_term( $term_slug, $taxonomy_slug ) {
399 399
 		$this->where( 'post_term', '=', array(
Please login to merge, or discard this patch.
core/Field/Checkbox_Field.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
 	/**
55 55
 	 * {@inheritDoc}
56
+	 * @param string $value
56 57
 	 */
57 58
 	public function set_value( $value ) {
58 59
 		if ( is_bool( $value ) ) {
@@ -64,7 +65,7 @@  discard block
 block discarded – undo
64 65
 	/**
65 66
 	 * Return a differently formatted value for end-users
66 67
 	 *
67
-	 * @return mixed
68
+	 * @return boolean
68 69
 	 */
69 70
 	public function get_formatted_value() {
70 71
 		return ( $this->get_value() === $this->get_option_value() );
Please login to merge, or discard this patch.
core/Field/Predefined_Options_Field.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 	/**
93 93
 	 * Retrieve the current options.
94 94
 	 *
95
-	 * @return array
95
+	 * @return callable
96 96
 	 */
97 97
 	public function get_options() {
98 98
 		return $this->load_options();
Please login to merge, or discard this patch.
core/Field/Association_Field.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -514,7 +514,7 @@
 block discarded – undo
514 514
 	 * @access public
515 515
 	 *
516 516
 	 * @param  array  $fields
517
-	 * @return array
517
+	 * @return string[]
518 518
 	 */
519 519
 	public function get_term_options_sql_select_clause( $fields ) {
520 520
 		return array( '`t`.`term_id` AS `ID`', '`t`.`name` AS `title`', '\'term\' as `type`', '`tt`.`taxonomy` AS `subtype`' );
Please login to merge, or discard this patch.
core/Provider/Container_Condition_Provider.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	 *
277 277
 	 * @param  array<string>                     $condition_types
278 278
 	 * @param  \Carbon_Fields\Container\Container $container
279
-	 * @return array<string>
279
+	 * @return string[]
280 280
 	 */
281 281
 	public function filter_post_meta_container_static_condition_types( $condition_types, $container_type, $container ) {
282 282
 		return array_merge(
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 	 * @param  array<string>                      $condition_types
292 292
 	 * @param  string                             $container_type
293 293
 	 * @param  \Carbon_Fields\Container\Container $container
294
-	 * @return array<string>
294
+	 * @return string[]
295 295
 	 */
296 296
 	public function filter_post_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) {
297 297
 		return array_merge(
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 	 * @param  array<string>                      $condition_types
307 307
 	 * @param  string                             $container_type
308 308
 	 * @param  \Carbon_Fields\Container\Container $container
309
-	 * @return array<string>
309
+	 * @return string[]
310 310
 	 */
311 311
 	public function filter_term_meta_container_static_condition_types( $condition_types, $container_type, $container ) {
312 312
 		return array_merge(
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 	 * @param  array<string>                      $condition_types
322 322
 	 * @param  string                             $container_type
323 323
 	 * @param  \Carbon_Fields\Container\Container $container
324
-	 * @return array<string>
324
+	 * @return string[]
325 325
 	 */
326 326
 	public function filter_term_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) {
327 327
 		return array_merge(
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
 	 * @param  array<string>                      $condition_types
337 337
 	 * @param  string                             $container_type
338 338
 	 * @param  \Carbon_Fields\Container\Container $container
339
-	 * @return array<string>
339
+	 * @return string[]
340 340
 	 */
341 341
 	public function filter_user_meta_container_static_condition_types( $condition_types, $container_type, $container ) {
342 342
 		return array_merge(
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
 	 * @param  array<string>                      $condition_types
352 352
 	 * @param  string                             $container_type
353 353
 	 * @param  \Carbon_Fields\Container\Container $container
354
-	 * @return array<string>
354
+	 * @return string[]
355 355
 	 */
356 356
 	public function filter_user_meta_container_dynamic_condition_types( $condition_types, $container_type, $container ) {
357 357
 		return array_merge(
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 	 * @param  array<string>                      $condition_types
367 367
 	 * @param  string                             $container_type
368 368
 	 * @param  \Carbon_Fields\Container\Container $container
369
-	 * @return array<string>
369
+	 * @return string[]
370 370
 	 */
371 371
 	public function filter_theme_options_container_static_condition_types( $condition_types, $container_type, $container ) {
372 372
 		return array_merge(
Please login to merge, or discard this patch.
core/REST_API/Decorator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 * Get Post Meta Container visibility settings
81 81
 	 *
82 82
 	 * @param \Carbon_Fields\Container\Post_Meta_Container $container
83
-	 * @return array
83
+	 * @return string[]
84 84
 	 */
85 85
 	public static function get_post_meta_container_settings( $container ) {
86 86
 		return $container->get_post_type_visibility();
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 * Get Term Meta Container visibility settings
91 91
 	 *
92 92
 	 * @param \Carbon_Fields\Container\Term_Meta_Container $container
93
-	 * @return array
93
+	 * @return string[]
94 94
 	 */
95 95
 	public static function get_term_meta_container_settings( $container ) {
96 96
 		return $container->get_taxonomy_visibility();
Please login to merge, or discard this patch.