Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return CallableArrayType::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 NonEmptyStringType::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 ResourceType::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(MixedType::instance(false), $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 NonEmptyListType::fromElementType(
                          MixedType::instance(false),
                          $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::fromEscapedLiteralScalar($type_name);
            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 $php70_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 null;
                  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 $this;
                      Severity: Major
                      Found in src/Phan/Language/UnionType.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return NonEmptyAssociativeArrayType::fromElementType(MixedType::instance(false), $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 ScalarRawType::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 TrueType::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 StaticType::instanceWithTemplateTypeList($is_nullable, $template_parameter_type_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 self::parseGenericArrayTypeFromTemplateParameterList($template_parameter_type_list, $is_nullable, $type_name === 'non-empty-array', 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 self::make(
                                                  $namespace,
                                                  $type_name,
                                                  $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 self::fromInternalTypeName($type_name, $is_nullable, $source, $template_parameter_type_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 MixedType::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 GenericArrayType::fromElementType(
                                                            Type::make(
                                                                $fqsen->getNamespace(),
                                                                $fqsen->getName(),
                                                                $template_parameter_type_list,
                                        Severity: Major
                                        Found in src/Phan/Language/Type.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language