Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                            return new ast\Node(
                                ast\AST_MAGIC_CONST,
                                self::MAGIC_CONST_LOOKUP[\strtoupper($imploded_parts)],
                                [],
                                self::getStartLine($part)
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 \hexdec($text);
    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 static::phpParserClassConstToAstNode($n, $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 [self::normalizeTryStatement($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 new ast\Node(
                              $kind,
                              0,
                              $children,
                              $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 self::phpParserMatchToAstMatch($n, $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 \count($stmts) === 1 ? $stmts[0] : $stmts;
              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 static::newAstDecl(
                                      ast\AST_METHOD,
                                      static::phpParserVisibilityToAstVisibility($n->modifiers) | ($n->byRefToken !== null ? flags\FUNC_RETURNS_REF : 0),
                                      [
                                          'params' => static::phpParserParamsToAstParams($n->parameters, $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 static::astNodeTry(
                                          // @phan-suppress-next-line PhanTypeMismatchArgumentNullable return_null_on_empty is false.
                                          static::phpParserStmtlistToAstNode($n->compoundStatement, $start_line, false), // $n->try
                                          static::phpParserCatchlistToAstCatchlist($n->catchClauses ?? [], $start_line),
                                          $finally_clause !== null ? static::phpParserStmtlistToAstNode($finally_clause->compoundStatement, self::getStartLine($finally_clause), false) : 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 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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language