Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

                    return static::astStmtCatch(
                        $catch_list_node,
                        $variableName !== null ? static::variableTokenToString($variableName) : null,
                        // @phan-suppress-next-line PhanTypeMismatchArgumentNullable return_null_on_empty is false.
                        static::phpParserStmtlistToAstNode($n->compoundStatement, $start_line, false),
    Severity: Major
    Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return \count($ast_echos) === 1 ? $ast_echos[0] : $ast_echos;
      Severity: Major
      Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

                          return \count($global_nodes) === 1 ? $global_nodes[0] : $global_nodes;
          Severity: Major
          Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return [];  // For the beginning/end of files
            Severity: Major
            Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

                                        return null;
                Severity: Major
                Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

                            return null;
                    Severity: Major
                    Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return [self::applyToStatementList($node)];
                      Severity: Major
                      Found in src/Phan/AST/ASTSimplifier.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

                                          return static::astNodeParam(
                                              $n->questionToken !== null,
                                              $n->byRefToken !== null,
                                              $n->dotDotDotToken !== null,
                                              static::phpParserUnionTypeToAstNode($n->typeDeclaration, $n->otherTypeDeclarations, $type_line),
                          Severity: Major
                          Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

                                              return new ast\Node($kind, 0, ['depth' => $breakout_level], $start_line);
                              Severity: Major
                              Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return null;
                                Severity: Major
                                Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                                    return new ast\Node(ast\AST_NAME, $ast_kind, ['name' => $imploded_parts], $start_line);
                                    Severity: Major
                                    Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                              return \intval($text, 8);
                                      Severity: Major
                                      Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                            return new ast\Node(ast\AST_SHELL_EXEC, 0, ['expr' => $inner_node], isset($children[0]) ? self::getStartLine($children[0]) : $start_line);
                                        Severity: Major
                                        Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language