Showing 506 of 851 total issues
Function addWidget
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
addWidget: function(pos, node, scroll, vert, horiz) {
Function updateLines
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function updateLines(from, to, newText, selFrom, selTo) {
Function Manage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function Manage(ID, Type, Action, NeedToConfirm, TargetTag) {
Function Reply
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function Reply(UserName, PostFloor, PostID, FormHash, TopicID) {
Function parseJS
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function parseJS(state, style, type, content, stream) {
Function Manage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function Manage(ID, Type, Action, NeedToConfirm, TargetTag) {
Function popup
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function popup(url, name, width, height, options)
Method success_validate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function success_validate($challenge, $validate, $seccode,$param, $json_format=1) {
Method mailPassthru
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private function mailPassthru($to, $subject, $body, $header, $params)
Method addStringAttachment
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
$string,
$filename,
$encoding = 'base64',
$type = '',
$disposition = 'attachment'
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($Host, $DBPort, $DBName, $DBUser, $DBPassword)
Method addAttachment
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
Method _deep_analysis_cn
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
private function _deep_analysis_cn(&$str, $lastec, $spos, $slen, $optimize = true)
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct($fileField, $config, $type, $CurUserName, $DB = '')
Function CheckUserName
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function CheckUserName() {
if ($("#UserName").val() && $("#UserName").val().length >= 4 && $("#UserName").val().length <= 20) {
$.ajax({
url: WebsitePath + '/json/user_exist',
data: {
- 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 SaveTopicDraft
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function SaveTopicDraft() {
try {
var TagsList = JSON.stringify($("input[name='Tag[]']").map(function () {
return $(this).val();
}).get());
- 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 createTab
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
(function createTab(content) {
for (var i = 0, ci; ci = content[i++];) {
var span = document.createElement("span");
span.setAttribute("tabSrc", ci.name);
span.innerHTML = ci.title;
- 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 getManageInfo
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function getManageInfo($manageType)
{
global $CurUserID;
switch ($manageType) {
case 'topic':
- 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 toArray
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
baidu.lang.toArray = function (source) {
if (source === null || source === undefined)
return [];
if (baidu.lang.isArray(source))
return source;
- 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 ArrayColumn
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function ArrayColumn($Input, $ColumnKey)
{
if (version_compare(PHP_VERSION, '5.5.0') < 0) {
$Result = array();
if ($Input) {
- 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"