Showing 164 of 164 total issues
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Blank line found at end of control structure Open
Open
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Blank line found at start of control structure Open
Open
foreach ($this->inputElement->childNodes as $tag) {
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Function callback
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
public function callback()
{
foreach ($this->inputElement->childNodes as $tag) {
- 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
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
There must be one blank line after the last USE statement; 2 found; Open
Open
use DOMXPath;
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Avoid too many return
statements within this method. Open
Open
return $this->oembed['height'] ? $this->oembed['height'] : 400;
Avoid too many return
statements within this method. Open
Open
return 315;
Avoid too many return
statements within this method. Open
Open
return null;