Showing 4,939 of 4,939 total issues

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 "${expr_str}[$dim_str]";
    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['left']),
                          PostOrderAnalysisVisitor::NAME_FOR_BINARY_OP[$node->flags] ?? 'unknown',
                          self::toShortString($node->children['right'])
      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['var']),
                            PostOrderAnalysisVisitor::NAME_FOR_BINARY_OP[$node->flags] ?? 'unknown',
                            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 $context;
          Severity: Major
          Found in src/Phan/Analysis/PostOrderAnalysisVisitor.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;
              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::computeColumnForTokenAtIndex($tokens, $candidates[0], $desired_line);
                Severity: Major
                Found in src/Phan/AST/Parser.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $str;
                  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 false;
                      Severity: Major
                      Found in src/Phan/Analysis/PostOrderAnalysisVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return false;
                        Severity: Major
                        Found in src/Phan/Analysis/PostOrderAnalysisVisitor.php - About 30 mins to fix

                          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 sprintf("%s(%s)", $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('(%s ? %s : %s)', self::toShortString($cond), self::toShortString($true), self::toShortString($false));
                              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', $cond !== null ? ASTReverter::toShortString($cond) : 'default', ASTReverter::toShortString($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 $result->asNormalizedTypes();
                                  Severity: Major
                                  Found in src/Phan/Analysis/ContextMergeVisitor.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return $unknown_type;
                                    Severity: Major
                                    Found in src/Phan/Analysis/AssignOperatorFlagVisitor.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return $probably_array_type;
                                      Severity: Major
                                      Found in src/Phan/Analysis/AssignOperatorFlagVisitor.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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language