Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return static::phpParserListToAstList($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 StringType::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 new ast\Node(
                          ast\AST_PRINT,
                          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 Type::fromFullyQualifiedString('\stdClass')->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::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 new ast\Node(
                                ast\AST_UNARY_OP,
                                $ast_kind,
                                ['expr' => static::phpParserNodeToAstNode($n->operand)],
                                $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_UNARY_OP,
                                  flags\UNARY_SILENCE,
                                  ['expr' => static::phpParserNodeToAstNode($n->operand)],
                                  $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::phpParserArrayToAstArray($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 '(try statement)';
                  Severity: Major
                  Found in src/Phan/AST/ASTReverter.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 '(if statement element)';
                      Severity: Major
                      Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return new ast\Node(
                                            ast\AST_INCLUDE_OR_EVAL,
                                            flags\EXEC_EVAL,
                                            ['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 static::astNodeStaticCall(
                                                  static::phpParserNonValueNodeToAstNode($callable_expression->scopeResolutionQualifier),
                                                  static::phpParserNodeToAstNode($callable_expression->memberName),
                                                  $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 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::phpParserMemberAccessExpressionToAstProp($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 '(switch case list)';
                                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->visitUnionTypeLong($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 $visitor->visitUnionTypeString($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 $visitor->visitExecRequireOnce($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 static::astNodeAssignop($ast_kind, $n, $start_line);
                                        Severity: Major
                                        Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language