Showing 4,939 of 4,939 total issues

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

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