@@ -251,9 +251,14 @@ private function validate_args( $args ) {
251251 }
252252 }
253253
254+ /**
255+ * @param string $path
256+ *
257+ * @phpstan-ignore method.unused
258+ */
254259 private function check_dir ( $ path ) {
255260 if ( empty ( $ path ) ) {
256- $ path = getcwd ();
261+ $ path = ( string ) getcwd ();
257262 } elseif ( ! is_dir ( $ path ) ) {
258263 WP_CLI ::error ( sprintf ( "The directory '%s' does not exist. " , $ path ) );
259264 } elseif ( ! is_writable ( $ path ) ) {
@@ -265,6 +270,11 @@ private function check_dir( $path ) {
265270 return true ;
266271 }
267272
273+ /**
274+ * @param string $date
275+ *
276+ * @phpstan-ignore method.unused
277+ */
268278 private function check_start_date ( $ date ) {
269279 if ( null === $ date ) {
270280 return true ;
@@ -279,6 +289,11 @@ private function check_start_date( $date ) {
279289 return true ;
280290 }
281291
292+ /**
293+ * @param string $date
294+ *
295+ * @phpstan-ignore method.unused
296+ */
282297 private function check_end_date ( $ date ) {
283298 if ( null === $ date ) {
284299 return true ;
@@ -293,6 +308,11 @@ private function check_end_date( $date ) {
293308 return true ;
294309 }
295310
311+ /**
312+ * @param string $post_type
313+ *
314+ * @phpstan-ignore method.unused
315+ */
296316 private function check_post_type ( $ post_type ) {
297317 if ( null === $ post_type || 'any ' === $ post_type ) {
298318 return true ;
@@ -317,6 +337,11 @@ private function check_post_type( $post_type ) {
317337 return true ;
318338 }
319339
340+ /**
341+ * @param string $post_type
342+ *
343+ * @phpstan-ignore method.unused
344+ */
320345 private function check_post_type__not_in ( $ post_type ) {
321346 if ( null === $ post_type ) {
322347 return true ;
@@ -341,6 +366,11 @@ private function check_post_type__not_in( $post_type ) {
341366 return true ;
342367 }
343368
369+ /**
370+ * @param string $post__in
371+ *
372+ * @phpstan-ignore method.unused
373+ */
344374 private function check_post__in ( $ post__in ) {
345375 if ( null === $ post__in ) {
346376 return true ;
@@ -357,6 +387,11 @@ private function check_post__in( $post__in ) {
357387 return true ;
358388 }
359389
390+ /**
391+ * @param string $start_id
392+ *
393+ * @phpstan-ignore method.unused
394+ */
360395 private function check_start_id ( $ start_id ) {
361396 if ( null === $ start_id ) {
362397 return true ;
@@ -374,6 +409,11 @@ private function check_start_id( $start_id ) {
374409 return true ;
375410 }
376411
412+ /**
413+ * @param string $author
414+ *
415+ * @phpstan-ignore method.unused
416+ */
377417 private function check_author ( $ author ) {
378418 if ( null === $ author ) {
379419 return true ;
@@ -418,6 +458,11 @@ private function check_max_num_posts( $num ) {
418458 return true ;
419459 }
420460
461+ /**
462+ * @param string $category
463+ *
464+ * @phpstan-ignore method.unused
465+ */
421466 private function check_category ( $ category ) {
422467 if ( null === $ category ) {
423468 return true ;
@@ -436,6 +481,11 @@ private function check_category( $category ) {
436481 return true ;
437482 }
438483
484+ /**
485+ * @param string $status
486+ *
487+ * @phpstan-ignore method.unused
488+ */
439489 private function check_post_status ( $ status ) {
440490 if ( null === $ status ) {
441491 return true ;
@@ -455,6 +505,11 @@ private function check_post_status( $status ) {
455505 return true ;
456506 }
457507
508+ /**
509+ * @param string|null $shkip
510+ *
511+ * @phpstan-ignore method.unused
512+ */
458513 private function check_skip_comments ( $ skip ) {
459514 if ( null === $ skip ) {
460515 return true ;
@@ -468,6 +523,11 @@ private function check_skip_comments( $skip ) {
468523 return true ;
469524 }
470525
526+ /**
527+ * @param string $size
528+ *
529+ * @phpstan-ignore method.unused
530+ */
471531 private function check_max_file_size ( $ size ) {
472532 if ( ! is_numeric ( $ size ) ) {
473533 WP_CLI ::warning ( 'max_file_size should be numeric. ' );
@@ -479,6 +539,11 @@ private function check_max_file_size( $size ) {
479539 return true ;
480540 }
481541
542+ /**
543+ * @param string $once
544+ *
545+ * @phpstan-ignore method.unused
546+ */
482547 private function check_include_once ( $ once ) {
483548 if ( null === $ once ) {
484549 return true ;
@@ -497,6 +562,11 @@ private function check_include_once( $once ) {
497562 return true ;
498563 }
499564
565+ /**
566+ * @param string $allow_orphan_terms
567+ *
568+ * @phpstan-ignore method.unused
569+ */
500570 private function check_allow_orphan_terms ( $ allow_orphan_terms ) {
501571 if ( null === $ allow_orphan_terms ) {
502572 return true ;
0 commit comments