Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

                            return 'namespace\\' . $result;
    Severity: Major
    Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return implode('|', \array_map('self::toShortString', $node->children));
      Severity: Major
      Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                                return "list($string)";
        Severity: Major
        Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

                            return sprintf(
                                '(clone(%s))',
                                self::toShortString($node->children['expr'])
                            );
            Severity: Major
            Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return sprintf(
                                  '%s::%s%s',
                                  self::toShortString($node->children['class']),
                                  is_string($method_node) ? $method_node : self::toShortString($method_node),
                                  self::toShortString($node->children['args'])
              Severity: Major
              Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return implode(', ', \array_map('self::toShortString', $node->children));
                Severity: Major
                Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return sprintf(
                                      "(%s =& %s)",
                                      self::toShortString($node->children['var']),
                                      self::toShortString($node->children['expr'])
                                  );
                  Severity: Major
                  Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return sprintf(
                                        '%s?->%s',
                                        self::toShortString($node->children['expr']),
                                        $prop_node instanceof Node ? '{' . self::toShortString($prop_node) . '}' : (string)$prop_node
                                    );
                    Severity: Major
                    Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return sprintf(
                                          '(%s instanceof %s)',
                                          self::toShortString($node->children['expr']),
                                          self::toShortString($node->children['class'])
                                      );
                      Severity: Major
                      Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return sprintf(
                                            '...(%s)',
                                            self::toShortString($node->children['expr'])
                                        );
                        Severity: Major
                        Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $visitor->visitMagicMethod($this->node);
                          Severity: Major
                          Found in src/Phan/AST/Visitor/Element.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return $visitor->visitMagicNamespace($this->node);
                            Severity: Major
                            Found in src/Phan/AST/Visitor/Element.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return UnionType::empty();
                              Severity: Major
                              Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return $visitor->visitMagicTrait($this->node);
                                Severity: Major
                                Found in src/Phan/AST/Visitor/Element.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return UnionType::fromFullyQualifiedRealString('int|float');
                                  Severity: Major
                                  Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return true;

                                      Avoid too many return statements within this method.
                                      Open

                                              return false;

                                        Avoid too many return statements within this method.
                                        Open

                                                                return static::phpParserNodeToAstNode($n->rightOperand);
                                        Severity: Major
                                        Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language