Showing 4,939 of 4,939 total issues

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

                  Avoid too many return statements within this method.
                  Open

                                          return self::parseClassStringTypeFromTemplateParameterList($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 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 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 ListType::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 $make(MixedType::instance(false), 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 $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 new GenericMultiArrayType(
                                              $types,
                                              $is_nullable,
                                              $key_type,
                                              $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 Type::make(
                                                $fqsen->getNamespace(),
                                                $fqsen->getName(),
                                                $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 $object ? TrueType::instance(false) : FalseType::instance(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 IntType::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 NonEmptyGenericArrayType::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 StringType::instance($is_nullable);
                                        Severity: Major
                                        Found in src/Phan/Language/Type.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language