Showing 5,566 of 7,504 total issues
Avoid too many return
statements within this method. Open
Open
return $return;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return apply_filters('post_link', $permalink, $post, $leavename);
Avoid too many return
statements within this method. Open
Open
return $element;
Avoid too many return
statements within this method. Open
Open
return $_revision;
Avoid too many return
statements within this method. Open
Open
return apply_filters( 'get_edit_post_link', admin_url("$file.php?{$action}$var=$post->ID"), $post->ID, $context );
Avoid too many return
statements within this method. Open
Open
return apply_filters( 'get_delete_post_link', wp_nonce_url( admin_url("$file.php?{$action}$var=$post->ID"), "trash-{$file}_" . $post->ID ), $context );
Avoid too many return
statements within this method. Open
Open
return '"'.$ascii.'"';
Avoid too many return
statements within this method. Open
Open
return $absolute_path . '/' . ltrim( $path, '/' );
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return $response;
Avoid too many return
statements within this method. Open
Open
return apply_filters( 'get_edit_post_link', '', $post->ID, $context );;
Avoid too many return
statements within this method. Open
Open
return '';
Avoid too many return
statements within this method. Open
Open
return $return;
Avoid too many return
statements within this method. Open
Open
return $obj;
Avoid too many return
statements within this method. Open
Open
return $obj;
Avoid too many return
statements within this method. Open
Open
return '';
Function rotate
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
dw_Rotator.prototype.rotate = function() {
this.clearTimer();
var imgObj = document.getElementById(this.id);
if ( this.bRand ) {
this.setRandomCtr();
- 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 getInputs
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
getInputs: function(form, typeName, name) {
form = $(form);
var inputs = form.getElementsByTagName('input');
if (!typeName && !name) return $A(inputs).map(Element.extend);
- 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"