Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                    return $expr;
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_CLONE, 0, ['expr' => static::phpParserNodeToAstNode($n->expression)], $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 sprintf(
                          'return %s;',
                          self::toShortString($node->children['expr'])
                      );
      Severity: Major
      Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $visitor->visitClassAnonymous($this->node);
        Severity: Major
        Found in src/Phan/AST/Visitor/Element.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return new ast\Node(
                              ast\AST_CAST,
                              $ast_kind,
                              ['expr' => static::phpParserNodeToAstNode($n->operand)],
                              static::getEndLine($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_NAME, flags\NAME_NOT_FQ, ['name' => $str], $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::astNodeCall(
                                      static::phpParserNonValueNodeToAstNode($callable_expression),
                                      $arg_list,
                                      $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 $result;
                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 $visitor->visitUnionTypeStatic($this->node);
                  Severity: Major
                  Found in src/Phan/AST/Visitor/Element.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return StaticType::instance(false)->asRealUnionType();
                    Severity: Major
                    Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return UnionType::empty();
                      Severity: Major
                      Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return $parent_type_option->get()->asRealUnionType();
                        Severity: Major
                        Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

                          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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language