MatthewMi11er/wordpress-plugin-mi11er-utility

View on GitHub
includes/mi11er-utility/class-filters.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 10 of 10 total issues

Avoid unused parameters such as '$requested_url'.
Open

public function redirect_canonical_filter( $redirect_url, $requested_url ) {

Avoid unused parameters such as '$is_email'.
Open

public function is_email_filter( $is_email, $email, $context ) {

Avoid unused parameters such as '$context'.
Open

public function is_email_filter( $is_email, $email, $context ) {

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.

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.

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;

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 );
}

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.

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 );
}

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;
Category
Status