Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

        return $type instanceof CallableType ||
            $type instanceof MixedType ||
            $type instanceof TemplateType;
Severity: Major
Found in src/Phan/Language/Type/LiteralStringType.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return new self($type_list, true, $real_type_set);
    Severity: Major
    Found in src/Phan/Language/UnionType.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return true;
      Severity: Major
      Found in src/Phan/Language/Type/VoidType.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return !$context->isStrictTypes();
        Severity: Major
        Found in src/Phan/Language/Type/LiteralStringType.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return new self($type_list, false, $real_type_set);
          Severity: Major
          Found in src/Phan/Language/UnionType.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return true;
            Severity: Major
            Found in src/Phan/Language/UnionType.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return true;
              Severity: Major
              Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return false;
                Severity: Major
                Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return true;
                  Severity: Major
                  Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                            return false;
                    Severity: Major
                    Found in src/Phan/Language/Type/LiteralStringType.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return parent::canCastToNonNullableType($type);
                      Severity: Major
                      Found in src/Phan/Language/Type/LiteralStringType.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return !$union_type->isPossiblyUndefined();
                        Severity: Major
                        Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return true;
                          Severity: Major
                          Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return true;
                            Severity: Major
                            Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                      return false;
                              Severity: Major
                              Found in src/Phan/Language/Type/LiteralStringType.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return parent::canCastToNonNullableType($type);
                                Severity: Major
                                Found in src/Phan/Language/Type/LiteralStringType.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                          return false;
                                  Severity: Major
                                  Found in src/Phan/Language/Type/LiteralStringType.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return $source_type->withIsNullable(false)->canCastToAnyTypeInSetHandlingTemplates($target_type_set, $code_base);
                                    Severity: Major
                                    Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return true;
                                      Severity: Major
                                      Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return true;
                                        Severity: Major
                                        Found in src/Phan/Language/UnionType.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language