Skip to content

Commit 31b8d9b

Browse files
authored
Various minor documentation fixes (#1831)
Various minor documentation fixes
2 parents e7560d1 + a2a32d1 commit 31b8d9b

File tree

5 files changed

+34
-34
lines changed

5 files changed

+34
-34
lines changed

WordPress/AbstractFunctionParameterSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abstract class AbstractFunctionParameterSniff extends AbstractFunctionRestrictio
4040
protected $target_functions = array();
4141

4242
/**
43-
* Groups of function to restrict.
43+
* Groups of functions to restrict.
4444
*
4545
* @return array
4646
*/

WordPress/Sniff.php

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -954,14 +954,14 @@ public function strip_quotes( $string ) {
954954
*
955955
* @since 0.11.0
956956
*
957-
* @param string $message The message.
958-
* @param int $stackPtr The position of the token the message relates to.
959-
* @param bool $is_error Optional. Whether to report the message as an 'error' or 'warning'.
960-
* Defaults to true (error).
961-
* @param string $code Optional error code for the message. Defaults to 'Found'.
962-
* @param array $data Optional input for the data replacements.
963-
* @param int $severity Optional. Severity level. Defaults to 0 which will translate to
964-
* the PHPCS default severity level.
957+
* @param string $message The message.
958+
* @param int $stackPtr The position of the token the message relates to.
959+
* @param bool $is_error Optional. Whether to report the message as an 'error' or 'warning'.
960+
* Defaults to true (error).
961+
* @param string $code Optional error code for the message. Defaults to 'Found'.
962+
* @param array $data Optional input for the data replacements.
963+
* @param int $severity Optional. Severity level. Defaults to 0 which will translate to
964+
* the PHPCS default severity level.
965965
* @return bool
966966
*/
967967
protected function addMessage( $message, $stackPtr, $is_error = true, $code = 'Found', $data = array(), $severity = 0 ) {
@@ -973,14 +973,14 @@ protected function addMessage( $message, $stackPtr, $is_error = true, $code = 'F
973973
*
974974
* @since 0.11.0
975975
*
976-
* @param string $message The message.
977-
* @param int $stackPtr The position of the token the message relates to.
978-
* @param bool $is_error Optional. Whether to report the message as an 'error' or 'warning'.
979-
* Defaults to true (error).
980-
* @param string $code Optional error code for the message. Defaults to 'Found'.
981-
* @param array $data Optional input for the data replacements.
982-
* @param int $severity Optional. Severity level. Defaults to 0 which will translate to
983-
* the PHPCS default severity level.
976+
* @param string $message The message.
977+
* @param int $stackPtr The position of the token the message relates to.
978+
* @param bool $is_error Optional. Whether to report the message as an 'error' or 'warning'.
979+
* Defaults to true (error).
980+
* @param string $code Optional error code for the message. Defaults to 'Found'.
981+
* @param array $data Optional input for the data replacements.
982+
* @param int $severity Optional. Severity level. Defaults to 0 which will translate to
983+
* the PHPCS default severity level.
984984
* @return bool
985985
*/
986986
protected function addFixableMessage( $message, $stackPtr, $is_error = true, $code = 'Found', $data = array(), $severity = 0 ) {
@@ -992,15 +992,15 @@ protected function addFixableMessage( $message, $stackPtr, $is_error = true, $co
992992
*
993993
* @since 0.11.0
994994
*
995-
* @param string $message The message.
996-
* @param int $stackPtr The position of the token the message relates to.
997-
* @param bool $is_error Optional. Whether to report the message as an 'error' or 'warning'.
998-
* Defaults to true (error).
999-
* @param string $code Optional error code for the message. Defaults to 'Found'.
1000-
* @param array $data Optional input for the data replacements.
1001-
* @param int $severity Optional. Severity level. Defaults to 0 which will translate to
1002-
* the PHPCS default severity level.
1003-
* @param bool $fixable Optional. Whether this is a fixable error. Defaults to false.
995+
* @param string $message The message.
996+
* @param int $stackPtr The position of the token the message relates to.
997+
* @param bool $is_error Optional. Whether to report the message as an 'error' or 'warning'.
998+
* Defaults to true (error).
999+
* @param string $code Optional error code for the message. Defaults to 'Found'.
1000+
* @param array $data Optional input for the data replacements.
1001+
* @param int $severity Optional. Severity level. Defaults to 0 which will translate to
1002+
* the PHPCS default severity level.
1003+
* @param bool $fixable Optional. Whether this is a fixable error. Defaults to false.
10041004
* @return bool
10051005
*/
10061006
private function throwMessage( $message, $stackPtr, $is_error = true, $code = 'Found', $data = array(), $severity = 0, $fixable = false ) {
@@ -2931,7 +2931,7 @@ public function get_declared_namespace_name( $stackPtr ) {
29312931
*
29322932
* @since 0.14.0
29332933
*
2934-
* @param int $stackPtr The position in the stack of the T_CONST token to verify.
2934+
* @param int $stackPtr The position in the stack of the T_CONST token to verify.
29352935
*
29362936
* @return bool
29372937
*/
@@ -2955,7 +2955,7 @@ public function is_class_constant( $stackPtr ) {
29552955
*
29562956
* @since 0.14.0
29572957
*
2958-
* @param int $stackPtr The position in the stack of the T_VARIABLE token to verify.
2958+
* @param int $stackPtr The position in the stack of the T_VARIABLE token to verify.
29592959
*
29602960
* @return bool
29612961
*/
@@ -3044,8 +3044,8 @@ protected function valid_direct_scope( $stackPtr, array $valid_scopes ) {
30443044
*
30453045
* {@internal This method should probably be refactored.}}
30463046
*
3047-
* @param int $stackPtr The index of the $wpdb variable.
3048-
* @param array $target_methods Array of methods. Key(s) should be method name.
3047+
* @param int $stackPtr The index of the $wpdb variable.
3048+
* @param array $target_methods Array of methods. Key(s) should be method name.
30493049
*
30503050
* @return bool Whether this is a $wpdb method call.
30513051
*/

WordPress/Sniffs/NamingConventions/ValidHookNameSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ValidHookNameSniff extends AbstractFunctionParameterSniff {
6565
protected $punctuation_regex = '`[^\w%s]`';
6666

6767
/**
68-
* Groups of function to restrict.
68+
* Groups of functions to restrict.
6969
*
7070
* @since 0.11.0
7171
*

WordPress/Sniffs/Security/EscapeOutputSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class EscapeOutputSniff extends Sniff {
125125
);
126126

127127
/**
128-
* List of tokens which can be considered as a safe when directly part of the output.
128+
* List of tokens which can be considered as safe when directly part of the output.
129129
*
130130
* @since 0.12.0
131131
*

WordPress/Sniffs/WP/I18nSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,8 @@ protected function check_text( $context ) {
633633
/**
634634
* Check for the presence of a translators comment if one of the text strings contains a placeholder.
635635
*
636-
* @param int $stack_ptr The position of the gettext call token in the stack.
637-
* @param array $args The function arguments.
636+
* @param int $stack_ptr The position of the gettext call token in the stack.
637+
* @param array $args The function arguments.
638638
* @return void
639639
*/
640640
protected function check_for_translator_comment( $stack_ptr, $args ) {

0 commit comments

Comments
 (0)