Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations.
See #47632 Built from https://develop.svn.wordpress.org/trunk@45580 git-svn-id: http://core.svn.wordpress.org/trunk@45391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -5631,7 +5631,7 @@ function get_file_data( $file, $default_headers, $context = '' ) {
|
||||
*
|
||||
* @return true True.
|
||||
*/
|
||||
function __return_true() {
|
||||
function __return_true() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -5646,7 +5646,7 @@ function __return_true() {
|
||||
*
|
||||
* @return false False.
|
||||
*/
|
||||
function __return_false() {
|
||||
function __return_false() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -5659,7 +5659,7 @@ function __return_false() {
|
||||
*
|
||||
* @return int 0.
|
||||
*/
|
||||
function __return_zero() {
|
||||
function __return_zero() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -5672,7 +5672,7 @@ function __return_zero() {
|
||||
*
|
||||
* @return array Empty array.
|
||||
*/
|
||||
function __return_empty_array() {
|
||||
function __return_empty_array() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore
|
||||
return array();
|
||||
}
|
||||
|
||||
@@ -5685,7 +5685,7 @@ function __return_empty_array() {
|
||||
*
|
||||
* @return null Null value.
|
||||
*/
|
||||
function __return_null() {
|
||||
function __return_null() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -5700,7 +5700,7 @@ function __return_null() {
|
||||
*
|
||||
* @return string Empty string.
|
||||
*/
|
||||
function __return_empty_string() {
|
||||
function __return_empty_string() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user