Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return '(switch 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 $visitor->visitUnionTypeFalse($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 UnionType::fromFullyQualifiedRealString('int');
      Severity: Major
      Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $str;
        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_VAR, 0, ['name' => $name_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 '(fn)';
            Severity: Major
            Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

                        return $this->context->getClassFQSEN()->asType()->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_EMPTY, 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 new ast\Node(ast\AST_NEW, 0, [
                                        'class' => $class_node,
                                        'args' => static::phpParserArgListToAstArgList($n->argumentExpressionList, $start_line),
                                    ], $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 '(function)';
                      Severity: Major
                      Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                            return static::astNodeMethodCall(
                                                $callable_expression->arrowToken->kind === TokenKind::QuestionArrowToken ? ast\AST_NULLSAFE_METHOD_CALL : ast\AST_METHOD_CALL,
                                                static::phpParserNonValueNodeToAstNode($callable_expression->dereferencableExpression),
                                                static::phpParserNodeToAstNode($callable_expression->memberName),
                                                $arg_list,
                        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 '(for loop)';
                          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->visitMagicLine($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 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 new ast\Node(
                                                        ast\AST_STATIC_PROP,
                                                        0,
                                                        [
                                                            'class' => static::phpParserNonValueNodeToAstNode($n->scopeResolutionQualifier),
                                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_EXIT, 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 '(foreach loop)';
                                    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->visitUnionTypeObject($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 $method->getUnionType();
                                        Severity: Major
                                        Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language