Showing 187 of 187 total issues
Avoid too many return
statements within this method. Open
return $clauses;
Avoid too many return
statements within this method. Open
return array();
Avoid too many return
statements within this method. Open
return null;
Avoid too many return
statements within this method. Open
return null;
Avoid too many return
statements within this method. Open
return $meta_value;
Avoid too many return
statements within this method. Open
return $objects[0];
Avoid too many return
statements within this method. Open
return $args_after;
Avoid too many return
statements within this method. Open
return array();
Avoid too many return
statements within this method. Open
return $objects;
Avoid too many return
statements within this method. Open
return true;
Avoid too many return
statements within this method. Open
return true;
Avoid too many return
statements within this method. Open
return array();
Avoid too many return
statements within this method. Open
return null;
Avoid too many return
statements within this method. Open
return null;
Avoid too many return
statements within this method. Open
return array();
Avoid too many return
statements within this method. Open
return null;
Function validate_meta_value
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
protected function validate_meta_value( $field, $meta_value, $meta_value_old ) {
$meta_value = $field->validate_meta_value( $meta_value );
$error = false;
$changed = false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function register
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function register( $parent_post_type = null ) {
if ( null === $parent_post_type ) {
$parent_post_type = $this->get_parent();
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function get_default_formatted
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public static function get_default_formatted( $type ) {
$formatted = true;
switch ( $type ) {
case 'checkbox':
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function hack_bulk_actions
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function hack_bulk_actions() {
$table_bulk_actions = $this->component->bulk_actions;
?>
<script type="text/javascript">
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"