Showing 905 of 905 total issues
Avoid deeply nested control flow statements. Open
Open
if (this.tryMatch('%=')) {
this.aspTagMode = true;
this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO, 3).nextINITIAL();
break;
} else {
Function Foreach
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var Foreach = Statement.extends(function Foreach(source, key, value, body, shortForm, location) {
Avoid deeply nested control flow statements. Open
Open
if (lLevel && rLevel && rLevel <= lLevel) {
buffer = result.right;
result.right = result.right.test;
buffer.test = this.resolvePrecedence(result);
result = buffer;
Avoid deeply nested control flow statements. Open
Open
} else if (this.is_NUM()) {
this.consume_LNUM();
return this.tok.T_DNUMBER;
} else {
this.unput(ch ? 2 : 1);
Avoid deeply nested control flow statements. Open
Open
if (value[value.length-2] === '\r') {
// windows style
value = value.substring(0, value.length - 2);
} else {
// linux style
Avoid deeply nested control flow statements. Open
Open
if (this.yytext.length > this.offset - yyoffset + 2) {
this.appendToken(next, this.offset - yyoffset + 2);
this.unput(this.offset - yyoffset + 2);
return this.tok.T_ENCAPSED_AND_WHITESPACE;
} else {
Avoid deeply nested control flow statements. Open
Open
} else if (lastCh === '\r') {
// mac style
value = value.substring(0, value.length - 1);
}
Avoid deeply nested control flow statements. Open
Open
if (ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r') {
this.unput(1).appendToken(this.tok.T_OPEN_TAG, 6).nextINITIAL();
break;
}
Avoid deeply nested control flow statements. Open
Open
if (this.yytext.length > 2) {
this.appendToken(this.tok.T_CURLY_OPEN, 1);
this.unput(2);
return this.tok.T_ENCAPSED_AND_WHITESPACE;
} else {
Avoid deeply nested control flow statements. Open
Open
} else if (this.token === '{') {
var expr = this.next().read_expr();
this.expect('}') && this.next();
what = this.node('encapsed')(
[what, expr],
Avoid deeply nested control flow statements. Open
Open
} else if (this.is_LABEL_START()) {
// start of $var...
var yyoffset = this.offset;
var next = this.consume_VARIABLE();
if (this.yytext.length > this.offset - yyoffset + 2) {
Avoid deeply nested control flow statements. Open
Open
if (ch === '$') {
// start of {$...
this.begin('ST_IN_SCRIPTING');
if (this.yytext.length > 2) {
this.appendToken(this.tok.T_CURLY_OPEN, 1);
Avoid deeply nested control flow statements. Open
Open
if (this.yytext.length > this.offset - yyoffset + 2) {
this.appendToken(next, this.offset - yyoffset + 2);
this.unput(this.offset - yyoffset + 2);
return this.tok.T_ENCAPSED_AND_WHITESPACE;
} else {
Function _createListEntry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function _createListEntry(name, args, type, level, line, ch) {
Avoid deeply nested control flow statements. Open
Open
if (this.yytext.length > 2) {
this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES, 2);
this.unput(2);
return this.tok.T_ENCAPSED_AND_WHITESPACE;
}else {
Avoid deeply nested control flow statements. Open
Open
if (c === '\r') {
c = this.yytext[++i];
this.yyprevcol = this.yylloc.last_column;
this.yylloc.last_line ++;
this.yylloc.last_column = 0;
Avoid deeply nested control flow statements. Open
Open
if (ch) this.unput(1);
Function fn
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var fn = Declaration.extends(function _Function(name, args, byref, type, nullable, location) {
Avoid deeply nested control flow statements. Open
Open
if (this.is_NUM()) {
this.consume_LNUM();
return this.tok.T_DNUMBER;
} else {
this.unput(ch ? 3 : 2);
Avoid deeply nested control flow statements. Open
Open
if (this.yytext.length > 2) {
this.appendToken(this.tok.T_CURLY_OPEN, 1);
this.unput(2);
return this.tok.T_ENCAPSED_AND_WHITESPACE;
} else {