Avoid unused parameters such as '$is_email'. Open
public function is_email_filter( $is_email, $email, $context ) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$context'. Open
public function is_email_filter( $is_email, $email, $context ) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$requested_url'. Open
public function redirect_canonical_filter( $redirect_url, $requested_url ) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
The parameter $redirect_url is not named in camelCase. Open
public function redirect_canonical_filter( $redirect_url, $requested_url ) {
/**
* Filter if we want to remove the 404 redirect guess.
*
* @param bool $prevent_guess Prevent the guess or not.
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $the_value is not named in camelCase. Open
public function https_local_ssl_verify_filter( $the_value ) {
if ( WP_ENV === 'development' ) {
$the_value = false;
}
return $the_value;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $is_email is not named in camelCase. Open
public function is_email_filter( $is_email, $email, $context ) {
return filter_var( $email, FILTER_VALIDATE_EMAIL );
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $requested_url is not named in camelCase. Open
public function redirect_canonical_filter( $redirect_url, $requested_url ) {
/**
* Filter if we want to remove the 404 redirect guess.
*
* @param bool $prevent_guess Prevent the guess or not.
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The method https_local_ssl_verify_filter is not named in camelCase. Open
public function https_local_ssl_verify_filter( $the_value ) {
if ( WP_ENV === 'development' ) {
$the_value = false;
}
return $the_value;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method is_email_filter is not named in camelCase. Open
public function is_email_filter( $is_email, $email, $context ) {
return filter_var( $email, FILTER_VALIDATE_EMAIL );
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method redirect_canonical_filter is not named in camelCase. Open
public function redirect_canonical_filter( $redirect_url, $requested_url ) {
/**
* Filter if we want to remove the 404 redirect guess.
*
* @param bool $prevent_guess Prevent the guess or not.
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}