Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return sprintf(
                    '%s?->%s%s',
                    self::toShortString($node->children['expr']),
                    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;
    Severity: Major
    Found in src/Phan/Analysis/PostOrderAnalysisVisitor.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return self::toShortString($node->children['class']) . '::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 (string)$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 sprintf(
                              '%s%s',
                              self::toShortString($node->children['expr']),
                              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 sprintf(
                                'new %s%s',
                                self::toShortString($node->children['class']),
                                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 sprintf('match (%s) {%s}', ASTReverter::toShortString($cond), $stmts->children ? ' ' . ASTReverter::toShortString($stmts) . ' ' : '');
              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(
                                    'isset(%s)',
                                    self::toShortString($node->children['var'])
                                );
                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(
                                      'print(%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 'echo ' . ASTReverter::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 $this->context->withScope($scope);
                      Severity: Major
                      Found in src/Phan/Analysis/ContextMergeVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return self::formatIncDec('%s--', $node->children['var']);
                        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['expr']),
                                              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 sprintf(
                                                'empty(%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 null;
                              Severity: Major
                              Found in src/Phan/Analysis/PostOrderAnalysisVisitor.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                                  return self::toShortString($node->children['class']) . '::' . $node->children['const'];
                                  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::class . '::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 null;
                                      Severity: Major
                                      Found in src/Phan/Analysis/PostOrderAnalysisVisitor.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return self::formatIncDec('++%s', $node->children['var']);
                                        Severity: Major
                                        Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language