Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                        return [];
Severity: Major
Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return [];
    Severity: Major
    Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return MixedType::instance(false)->asRealUnionType();
      Severity: Major
      Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $expr_type->withRealType(ObjectType::instance(false));
        Severity: Major
        Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return ObjectType::instance(false)->asRealUnionType();
          Severity: Major
          Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return [];
            Severity: Major
            Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return self::literalStringUnionType('');
              Severity: Major
              Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return VoidType::instance(false)->asRealUnionType();
                Severity: Major
                Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return UnionType::of($type_set, $real_type_set);
                  Severity: Major
                  Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                            return $element_types;
                    Severity: Major
                    Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return $class->getMethodByName($this->code_base, '__get')->getUnionType();
                      Severity: Major
                      Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $node->hash ?? ($node->hash = self::computeHash($node));
                        Severity: Major
                        Found in src/Phan/AST/ASTHasher.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return self::literalStringUnionType(\ltrim($this->context->getClassFQSEN()->__toString(), '\\'));
                          Severity: Major
                          Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return $resulting_element_type;
                            Severity: Major
                            Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return NullType::instance(false)->asRealUnionType();
                              Severity: Major
                              Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return $this->methodFQSENListFromParts($node[0], $node[1]);
                                Severity: Major
                                Found in src/Phan/AST/UnionTypeVisitor.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return (string)$name_node_type->asSingleScalarValueOrNull();
                                  Severity: Major
                                  Found in src/Phan/AST/ContextNode.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $this->returnStubOrThrowUndeclaredFunctionIssueException(
                                                    $function_fqsen,
                                                    $not_fully_qualified,
                                                    $not_fully_qualified ? FullyQualifiedFunctionName::make($namespace, $function_name) : $function_fqsen,
                                                    $return_placeholder_for_undefined
                                    Severity: Major
                                    Found in src/Phan/AST/ContextNode.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return array_keys(iterator_to_array($iterator));
                                      Severity: Major
                                      Found in internal/lib/IncompatibleRealStubsSignatureDetector.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $new_node;
                                        Severity: Major
                                        Found in src/Phan/AST/ContextNode.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language