Showing 3,272 of 4,939 total issues

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 $parent_type_option->get()->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 $field_types;
      Severity: Major
      Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $this->typeAfterCastToObject($expr_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 $resulting_element_type->withRealTypeSet(
                          \is_object($resulting_real_element_type) ? $resulting_real_element_type->getRealTypeSet() : []
                      );
          Severity: Major
          Found in src/Phan/AST/UnionTypeVisitor.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/UnionTypeVisitor.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return UnionType::of($types, $types);
              Severity: Major
              Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

                                  return IterableType::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 StringType::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 Type::fromType($type, $template_type_list);
                      Severity: Major
                      Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

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

                            Avoid too many return statements within this method.
                            Open

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

                                  Avoid too many return statements within this method.
                                  Open

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