Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

                    return $code_base->getPropertyByFQSEN($fqsen);
Severity: Major
Found in src/Phan/Analysis/ReferenceCountsAnalyzer.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                          return UnionType::fromFullyQualifiedPHPDocAndRealString('int', 'int|string');
              Severity: Major
              Found in src/Phan/Analysis/BinaryOperatorFlagVisitor.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                        return ArrayShapeType::fromFieldTypes($new_field_types, $type->isNullable());
                Severity: Major
                Found in src/Phan/Analysis/ContextMergeVisitor.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                          return "[$string]";
                  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)', self::toShortString($cond), 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 null;
                      Severity: Major
                      Found in src/Phan/Analysis/ReferenceCountsAnalyzer.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $context->getScope()->getVariableByName(
                                    $variable_name
                                );
                        Severity: Major
                        Found in src/Phan/Analysis/ConditionVisitorUtil.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return ArrayType::combineArrayTypesOverriding($left, $right, false);
                          Severity: Major
                          Found in src/Phan/Analysis/BinaryOperatorFlagVisitor.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return (self::$closure_map[$node->kind] ?? self::$noop)($node);
                            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;
                              Severity: Major
                              Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                              return self::STATUS_THROW;
                                  Severity: Major
                                  Found in src/Phan/Analysis/BlockExitStatusChecker.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return \in_array($parent_kind, self::READ_AND_WRITE_KINDS, true);
                                    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 $node->children['name'] . ': ' . self::toShortString($node->children['expr']);
                                        Severity: Major
                                        Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language