Showing 326 of 326 total issues
The method plugin_deactivated is not named in camelCase. Open
Open
private function plugin_deactivated() {
}
- Read upRead up
- 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 get_excluded_taxonomies is not named in camelCase. Open
Open
private function get_excluded_taxonomies() {
$excluded_taxonomies = array();
$excluded_taxonomies[] = 'link_category';
return apply_filters( 'wp_sweep_excluded_taxonomies', $excluded_taxonomies );
- Read upRead up
- 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 get_excluded_termids is not named in camelCase. Open
Open
private function get_excluded_termids() {
$default_term_ids = $this->get_default_taxonomy_termids();
if ( ! is_array( $default_term_ids ) ) {
$default_term_ids = array();
}
- Read upRead up
- 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 get_parent_termids is not named in camelCase. Open
Open
private function get_parent_termids() {
global $wpdb;
return $wpdb->get_col( $wpdb->prepare( "SELECT tt.parent FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.parent > %d", 0 ) );
}
- Read upRead up
- 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 format_percentage is not named in camelCase. Open
Open
public function format_percentage( $current, $total ) {
return ( $total > 0 ? round( ( $current / $total ) * 100, 2 ) : 0 ) . '%';
}
- Read upRead up
- 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 plugin_deactivation is not named in camelCase. Open
Open
public function plugin_deactivation( $network_wide ) {
if ( is_multisite() && $network_wide ) {
$ms_sites = (array) get_sites();
if ( 0 < count( $ms_sites ) ) {
- Read upRead up
- 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() {
}
}