Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return static::phpParserPropertyToAstNode($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 \count($static_nodes) === 1 ? $static_nodes[0] : $static_nodes;
    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::phpParserSwitchListToAstSwitch($n);
      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::phpParserThrowToASTThrow($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 $children;
          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::phpParserIfStmtToAstIfStmt($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_FOR,
                                  0,
                                  [
                                      'init' => $n->forInitializer !== null ? static::phpParserExprListToExprList($n->forInitializer, $start_line) : null,
              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_GOTO, 0, ['label' => static::tokenToString($n->name)], $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::astStmtClass(
                                      flags\CLASS_INTERFACE,
                                      static::tokenToString($n->name),
                                      static::interfaceBaseClauseToNode($n->interfaceBaseClause),
                                      null,
                  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::phpParserConstToAstNode($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_ECHO,
                                          0,
                                          ['expr' => static::tokenToRawString($n->text)],
                                          $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_NAMESPACE,
                                            0,
                                            [
                                                'name' => $name_node !== null ? static::phpParserNameToString($name_node) : null,
                        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_TRAIT_ALIAS, $flags, $children, $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 $doc_comment;
                            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 UnionTypeVisitor::unionTypeFromNode(
                                                  $this->code_base,
                                                  $this->context,
                                                  $arg_node
                                              );
                              Severity: Major
                              Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return $object_type->asRealUnionType();
                                Severity: Major
                                Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $resulting_element_type;
                                  Severity: Major
                                  Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return ObjectType::instance(false)->asRealUnionType();
                                    Severity: Major
                                    Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return NullType::instance(false)->asRealUnionType()->withIsDefinitelyUndefined();
                                      Severity: Major
                                      Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return Type::fromObject($node)->asRealUnionType();
                                        Severity: Major
                                        Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language