Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

        return parent::canCastToNonNullableTypeWithoutConfig($type);
Severity: Major
Found in src/Phan/Language/Type/ArrayShapeType.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/LiteralFloatType.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $this->genericArrayElementUnionType()->canCastToUnionType($type->genericArrayElementUnionType());
      Severity: Major
      Found in src/Phan/Language/Type/GenericArrayType.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $this->canCastToGenericIterableType($type);
        Severity: Major
        Found in src/Phan/Language/Type/GenericArrayType.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/ArrayShapeType.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                                  return (bool)$this->value;
              Severity: Major
              Found in src/Phan/Language/Type/LiteralIntType.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/LiteralFloatType.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/GenericArrayType.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                            return $type->getValue() == $this->getValue();
                    Severity: Major
                    Found in src/Phan/Language/Type/LiteralIntType.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/NonZeroIntType.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/NonZeroIntType.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/NonZeroIntType.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/NonEmptyStringType.php - About 30 mins to fix

                              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/NonEmptyStringType.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/LiteralIntType.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/FunctionLikeDeclarationType.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $this->key_type !== self::KEY_STRING;
                                    Severity: Major
                                    Found in src/Phan/Language/Type/GenericArrayType.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/FunctionLikeDeclarationType.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/NonEmptyStringType.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language