Showing 235 of 1,771 total issues
Avoid too many return
statements within this function. Open
Open
return false;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return elem[ name ];
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if("illegal"===r.type&&""===o)return 1
;if(R>1e5&&R>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return value(currentNode);
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return check && result.indexOf( check ) > -1;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return check && result.slice( -check.length ) === check;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return parsed && parsed.getTime() === dateToCheck.getTime()
? bool
: !bool;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return bool;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return [];
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return ( " " + result.replace( rwhitespace, " " ) + " " )
.indexOf( check ) > -1;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return false;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return sortInput ?
( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
0;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return bool;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return this.isComponent;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return result === check || result.slice( 0, check.length + 1 ) === check + "-";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return bool;
- Create a ticketCreate a ticket
The method url() has an NPath complexity of 864. The configured NPath complexity threshold is 200. Open
Open
public function url($page = [], array $extraRequestUrlArgs = []): string
{
if (is_string($page)) {
$pageExploded = explode('?', $page, 2);
parse_str($pageExploded[1] ?? '', $page);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method _typecastLoadField() has an NPath complexity of 1260. The configured NPath complexity threshold is 200. Open
Open
protected function _typecastLoadField(Field $field, $value)
{
switch ($field->type) {
case 'boolean':
if (is_string($value)) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}