Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                        return self::parseGenericIterableTypeFromTemplateParameterList($template_parameter_type_list, $is_nullable);
Severity: Major
Found in src/Phan/Language/Type.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 ResourceType::instance(false);  // For inferring the type of constants STDIN, etc.
      Severity: Major
      Found in src/Phan/Language/Type.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return FloatType::instance($is_nullable);
        Severity: Major
        Found in src/Phan/Language/Type.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return $source_type->withIsNullable(false)->canCastToAnyTypeInSet($target_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 $type->getValue();
            Severity: Major
            Found in src/Phan/Language/UnionType.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return CallableType::instance($is_nullable);
              Severity: Major
              Found in src/Phan/Language/Type.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                        return self::parseGenericArrayTypeFromTemplateParameterList($template_parameter_type_list, $is_nullable, $type_name === 'non-empty-array', true);
                Severity: Major
                Found in src/Phan/Language/Type.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return GenericArrayTemplateKeyType::fromTemplateAndElementType(
                                      // @phan-suppress-next-line PhanPossiblyFalseTypeArgument
                                      \reset($types),
                                      $is_nullable,
                                      $template_parameter_type_list[0]
                  Severity: Major
                  Found in src/Phan/Language/Type.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return new GenericMultiArrayType(
                                    $types,
                                    $is_nullable,
                                    GenericArrayType::KEY_INT,
                                    $always_has_elements,
                    Severity: Major
                    Found in src/Phan/Language/Type.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 CallableObjectType::instance($is_nullable);
                        Severity: Major
                        Found in src/Phan/Language/Type.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return FalseType::instance($is_nullable);
                          Severity: Major
                          Found in src/Phan/Language/Type.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $make(\reset($types), $key_type);
                            Severity: Major
                            Found in src/Phan/Language/Type.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 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 ObjectType::instance($is_nullable);
                                    Severity: Major
                                    Found in src/Phan/Language/Type.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                              return self::parseGenericArrayTypeFromTemplateParameterList($template_parameter_type_list, $is_nullable, false, false);
                                      Severity: Major
                                      Found in src/Phan/Language/Type.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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language