Showing 540 of 47,256 total issues
Function openWithSelfMain
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function openWithSelfMain(url,name,width,height,returnwindow) {
Function xoopsCodeCode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function xoopsCodeCode(id, enterCodePhrase, enterCodeLangPhrase, CodeLangTypePhrase, errorCodeLangPhrase){
Function TCBuildCell
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function TCBuildCell (R, G, B, w, h) {
Function showImgSelected
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function showImgSelected(imgId, selectId, imgDir, extra, xoopsUrl) {
Function xoopsCodeImg
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function xoopsCodeImg(id, enterImgUrlPhrase, enterImgPosPhrase, imgPosRorLPhrase, errorImgPosPhrase){
Function filter_preview
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function filter_preview(id,xurl,img,width,height){
Method xoFormFieldCharset
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function xoFormFieldCharset($name, $value, $label, $link, $help = '') {
Method xoFormField
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function xoFormField( $name, $value, $label, $maxlength, $help = '' )
Method icmsFormField
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function icmsFormField( $name, $value, $label, $maxlength, $help = '' )
Method xoFormField
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function xoFormField($name, $value, $label, $maxlength, $help = '') {
Method redirect_header
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function redirect_header($url, $time = 3, $message = '', $addredirect = true, $allowExternalLink = false)
Method xoFormField
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function xoFormField( $name, $value, $label, $help = '', $type='text') {
Function TCPaint
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function TCPaint(c, b_noPref) {
c = (b_noPref ? '' : '#') + c.toUpperCase();
if (this.o_samp)
this.o_samp.innerHTML = '<font face=Tahoma size=2>' + c +' <font color=white>' + c + '</font></font>'
if(this.doc.layers)
- 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 write_mainfile
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function write_mainfile($vars) {
if (empty($vars)) {
return 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 xoopsInsertText
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function xoopsInsertText(domobj, text)
{
if (domobj.createTextRange && domobj.caretPos){
var caretPos = domobj.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1)
- 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 icms_ExternalLinks
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function icms_ExternalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
- 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 request
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
request: function(form, options) {
form = $(form), options = Object.clone(options || { });
var params = options.parameters, action = form.readAttribute('action') || '';
if (action.blank()) action = window.location.href;
- 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 getDbCharsets
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function getDbCharsets()
{
$charsets = array();
$charsets["utf8"] = array();
- 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 cleaning_write_folders
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function cleaning_write_folders() {
$dir = array();
$dir['templates_c'] = XOOPS_ROOT_PATH . "/templates_c/";
$dir['cache'] = XOOPS_ROOT_PATH . "/cache/";
- 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 getPos
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
$.keynav.getPos = function (e)
{
var l = 0;
var t = 0;
var w = $.intval($.css(e,'width'));
- 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"