Showing 3,272 of 4,939 total issues
Avoid too many return
statements within this method. Open
Open
return new ast\Node(
ast\AST_MAGIC_CONST,
self::MAGIC_CONST_LOOKUP[\strtoupper($imploded_parts)],
[],
self::getStartLine($part)
Avoid too many return
statements within this method. Open
Open
return \hexdec($text);
Avoid too many return
statements within this method. Open
Open
return static::phpParserClassConstToAstNode($n, $start_line);
Avoid too many return
statements within this method. Open
Open
return [self::normalizeTryStatement($node)];
Avoid too many return
statements within this method. Open
Open
return new ast\Node(
$kind,
0,
$children,
$start_line
Avoid too many return
statements within this method. Open
Open
return self::phpParserMatchToAstMatch($n, $start_line);
Avoid too many return
statements within this method. Open
Open
return \count($stmts) === 1 ? $stmts[0] : $stmts;
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return static::newAstDecl(
ast\AST_METHOD,
static::phpParserVisibilityToAstVisibility($n->modifiers) | ($n->byRefToken !== null ? flags\FUNC_RETURNS_REF : 0),
[
'params' => static::phpParserParamsToAstParams($n->parameters, $start_line),
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return static::astNodeTry(
// @phan-suppress-next-line PhanTypeMismatchArgumentNullable return_null_on_empty is false.
static::phpParserStmtlistToAstNode($n->compoundStatement, $start_line, false), // $n->try
static::phpParserCatchlistToAstCatchlist($n->catchClauses ?? [], $start_line),
$finally_clause !== null ? static::phpParserStmtlistToAstNode($finally_clause->compoundStatement, self::getStartLine($finally_clause), false) : null,
Avoid too many return
statements within this method. Open
Open
return null;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return static::astStmtCatch(
$catch_list_node,
$variableName !== null ? static::variableTokenToString($variableName) : null,
// @phan-suppress-next-line PhanTypeMismatchArgumentNullable return_null_on_empty is false.
static::phpParserStmtlistToAstNode($n->compoundStatement, $start_line, false),
Avoid too many return
statements within this method. Open
Open
return \count($ast_echos) === 1 ? $ast_echos[0] : $ast_echos;
Avoid too many return
statements within this method. Open
Open
return $result;
Avoid too many return
statements within this method. Open
Open
return \count($global_nodes) === 1 ? $global_nodes[0] : $global_nodes;
Avoid too many return
statements within this method. Open
Open
return []; // For the beginning/end of files
Avoid too many return
statements within this method. Open
Open
return $closures;
Avoid too many return
statements within this method. Open
Open
return null;