Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return [];
Severity: Major
Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return (float)$text;
    Severity: Major
    Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return self::normalizeIfStatement($node);
      Severity: Major
      Found in src/Phan/AST/ASTSimplifier.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return self::isExpressionWithoutSideEffects($node->children['class']);
        Severity: Major
        Found in src/Phan/AST/ASTSimplifier.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return new ast\Node(
                              ast\AST_NAME,
                              flags\NAME_NOT_FQ,
                              ['name' => static::tokenToString($n->children)],
                              $start_line
          Severity: Major
          Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return \octdec(substr($text, 0, \strcspn($text, '89')));
            Severity: Major
            Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return static::astStmtDeclare(
                                  static::phpParserDeclareListToAstDeclares($directive, $start_line, $doc_comment),
                                  $n->statements !== null ? static::phpParserStmtlistToAstNode($n->statements, $start_line, true) : null,
                                  $start_line
                              );
              Severity: Major
              Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return new ast\Node(ast\AST_RETURN, 0, ['expr' => $expr_node], $start_line);
                Severity: Major
                Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return [$label, $statement];
                  Severity: Major
                  Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                            return \bindec($text);
                    Severity: Major
                    Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return static::astStmtClass(
                                          flags\CLASS_TRAIT,
                                          static::tokenToString($n->name),
                                          null,
                                          null,
                      Severity: Major
                      Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return new ast\Node(
                                            ast\AST_DO_WHILE,
                                            0,
                                            [
                                                'stmts' => static::phpParserStmtlistToAstNode($n->statement, $start_line, false),
                        Severity: Major
                        Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return static::astDeclFunction(
                                              $n->byRefToken !== null,
                                              static::tokenToString($name),
                                              static::phpParserParamsToAstParams($n->parameters, $start_line),
                                              $ast_return_type,
                          Severity: Major
                          Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return new ast\Node(ast\AST_TRAIT_PRECEDENCE, 0, $children, $start_line);
                            Severity: Major
                            Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return static::astNodeWhile(
                                                  static::phpParserNodeToAstNode($n->expression),
                                                  // @phan-suppress-next-line PhanTypeMismatchArgumentNullable return_null_on_empty is false.
                                                  static::phpParserStmtlistToAstNode($n->statements, $start_line, false),
                                                  $start_line
                              Severity: Major
                              Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                    return $statement;
                                Severity: Major
                                Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return $inner_node;
                                  Severity: Major
                                  Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return static::phpParserThrowToASTThrow($n, $start_line);
                                    Severity: Major
                                    Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return new ast\Node(
                                                          ast\AST_USE_TRAIT,
                                                          0,
                                                          [
                                                              'traits' => static::phpParserNameListToAstNameList($n->traitNameList->children ?? [], $start_line),
                                      Severity: Major
                                      Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                            return null;
                                        Severity: Major
                                        Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language