Skip to content

Commit 0a4ad95

Browse files
committed
Update the docblock for cmd_starts_with
1 parent 8604a07 commit 0a4ad95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

php/WP_CLI/Runner.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,12 @@ private static function guess_url( $assoc_args ) {
345345
}
346346

347347
/**
348-
* Checks if the command arguments start with a given prefix.
348+
* Checks if the arguments passed to the WP-CLI binary start with the specified prefix.
349349
*
350-
* @param array $prefix An array of strings representing the expected prefix of the command arguments.
351-
* For example, `['user', 'list']` would check if the command starts with `user list`.
350+
* @param array $prefix An array of strings specifying the expected start of the arguments passed to the WP-CLI binary.
351+
* For example, `['user', 'list']` checks if the arguments passed to the WP-CLI binary start with `user list`.
352352
*
353-
* @return bool `true` if the command arguments start with the given prefix, `false` otherwise.
353+
* @return bool `true` if the arguments passed to the WP-CLI binary start with the specified prefix, `false` otherwise.
354354
*/
355355
private function cmd_starts_with( $prefix ) {
356356
return array_slice( $this->arguments, 0, count( $prefix ) ) === $prefix;

0 commit comments

Comments
 (0)