Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

                    return static::phpParserClassConstFetchToAstClassConstFetch($n->scopeResolutionQualifier, $member_name, $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

      Avoid too many return statements within this method.
      Open

                      return static::phpParserNodeToAstNode($n->expression);
      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(
                            static::phpParserClassModifierToAstClassFlags($n->abstractOrFinalModifier),
                            static::tokenToString($n->name),
                            $base_class !== null ? static::phpParserNonValueNodeToAstNode($base_class) : null,
                            $n->classInterfaceClause,
        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

            Avoid too many return statements within this method.
            Open

                                return $label;
            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_FOREACH,
                                  0,
                                  [
                                      'expr' => static::phpParserNodeToAstNode($n->forEachCollectionName),
              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::phpParserStmtlistToAstNode($n->compoundStatement, $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 [];
                  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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language