Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return new ast\Node($type, 0, ['var' => static::phpParserNodeToAstNode($n->operand)], $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 $visitor->visitUnionTypeNull($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 sprintf(
                          '%s(%s)',
                          self::EXEC_NODE_FLAG_NAMES[$node->flags],
                          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 '`' . implode('', $parts) . '`';
        Severity: Major
        Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

                                  return static::astNodeAssign(
                                      $var_node,
                                      $expr_node,
                                      $start_line,
                                      $n->byRef !== 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::astNodeBinaryop($ast_kind, $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 static::astDeclClosure(
                                          $n->byRefToken !== null,
                                          $n->staticModifier !== null,
                                          static::phpParserParamsToAstParams($n->parameters, $start_line),
                                          static::phpParserClosureUsesToAstClosureUses($use_variable_name_list, $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 static::newASTDecl(
                                            ast\AST_ARROW_FUNC,
                                            ($n->byRefToken !== null ? flags\FUNC_RETURNS_REF : 0) | ($n->staticModifier !== null ? flags\MODIFIER_STATIC : null),
                                            [
                                                '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 static::phpParserListToAstList($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 StringType::instance(false)->asRealUnionType();
                            Severity: Major
                            Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return new ast\Node(
                                                  ast\AST_PRINT,
                                                  0,
                                                  ['expr' => static::phpParserNodeToAstNode($n->expression)],
                                                  $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 Type::fromFullyQualifiedString('\stdClass')->asRealUnionType();
                                Severity: Major
                                Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return static::phpParserNodeToAstNode($n->expression);
                                  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_UNARY_OP,
                                                        $ast_kind,
                                                        ['expr' => static::phpParserNodeToAstNode($n->operand)],
                                                        $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 new ast\Node(
                                                          ast\AST_UNARY_OP,
                                                          flags\UNARY_SILENCE,
                                                          ['expr' => static::phpParserNodeToAstNode($n->operand)],
                                                          $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 static::phpParserArrayToAstArray($n, $start_line);
                                        Severity: Major
                                        Found in src/Phan/AST/TolerantASTConverter/TolerantASTConverter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language