Showing 3,272 of 4,939 total issues

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

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