Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return $visitor->visitMagicMethod($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 $visitor->visitMagicNamespace($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 UnionType::empty();
      Severity: Major
      Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $visitor->visitMagicTrait($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 UnionType::fromFullyQualifiedRealString('int|float');
          Severity: Major
          Found in src/Phan/AST/FallbackUnionTypeVisitor.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return true;

              Avoid too many return statements within this method.
              Open

                      return false;

                Avoid too many return statements within this method.
                Open

                                        return static::phpParserNodeToAstNode($n->rightOperand);
                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($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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language