Showing 3,272 of 4,939 total issues

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

                          Avoid too many return statements within this method.
                          Open

                                      return NullType::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 Variable::getUnionTypeOfHardcodedGlobalVariableWithName($variable_name);
                            Severity: Major
                            Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return IntType::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 null;
                                Severity: Major
                                Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                            return $union_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 NullType::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 $element_types;
                                        Severity: Major
                                        Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language