diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2024-03-02 12:53:53 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2024-03-02 12:53:53 +0000 |
commit | 0efafc1dfd46bf370450595b63f4440cba04de81 (patch) | |
tree | d7a64d35bddb3885a9191068c8cabce630b4103c /tests/phpunit/includes | |
parent | 3d8f3aa61088cb98b160d1faf2868dc07897d3e9 (diff) | |
download | wordpress-0efafc1dfd46bf370450595b63f4440cba04de81.tar.gz wordpress-0efafc1dfd46bf370450595b63f4440cba04de81.zip |
Build/Test Tools: Use a consistent parameter name between `rand_str()` and `rand_long_str()`.
Follow-up to [36272], [50265].
Props harsh175, sabernhardt.
Fixes #60401.
git-svn-id: https://develop.svn.wordpress.org/trunk@57749 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes')
-rw-r--r-- | tests/phpunit/includes/utils.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index 7c0d4e4b19..ead788f996 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -6,17 +6,17 @@ * Returns a string of the required length containing random characters. Note that * the maximum possible string length is 32. * - * @param int $len Optional. The required length. Default 32. + * @param int $length Optional. The required length. Default 32. * @return string The string. */ -function rand_str( $len = 32 ) { - return substr( md5( uniqid( rand() ) ), 0, $len ); +function rand_str( $length = 32 ) { + return substr( md5( uniqid( rand() ) ), 0, $length ); } /** * Returns a string of the required length containing random characters. * - * @param int $len The required length. + * @param int $length The required length. * @return string The string. */ function rand_long_str( $length ) { |