Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return ArrayShapeType::fromFieldTypes(
                    self::shapeComponentStringsToTypes($shape_components, $context, $source, $code_base),
                    $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::parseListTypeFromTemplateParameterList($template_parameter_type_list, $is_nullable, 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 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 UnionType::fromStringInContext($type_name, $context, $source, $code_base);
        Severity: Major
        Found in src/Phan/Language/Type.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return GenericArrayType::fromElementType(
                          $element_type,
                          $is_nullable,
                          GenericArrayType::KEY_MIXED
                      );
          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)->canCastToAnyTypeInSetWithoutConfig($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 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 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 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 ClassStringType::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 NonZeroIntType::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 NullType::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 IterableType::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::parseListTypeFromTemplateParameterList($template_parameter_type_list, $is_nullable, $type_name === 'non-empty-list');
                            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 $result;
                                Severity: Major
                                Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                            return $php56_map;
                                    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::fromFullyQualifiedString('\\' . \get_class($object));
                                      Severity: Major
                                      Found in src/Phan/Language/Type.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

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