Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return new ast\Node($type, 0, ['var' => 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 sprintf(
                        '(throw %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 UnionType::fromFullyQualifiedRealString('-1|0|1');
      Severity: Major
      Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return ArrayType::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_INSTANCEOF, 0, [
                                  'expr'  => static::phpParserNodeToAstNode($n->leftOperand),
                                  'class' => static::phpParserNonValueNodeToAstNode($n->rightOperand),
                              ], $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_INCLUDE_OR_EVAL,
                                $flags,
                                ['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 $e;
              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 '"' . implode('', $parts) . '"';
                Severity: Major
                Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

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