Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

            return $type->withRealTypeSet(UnionType::typeSetFromString(ConditionVisitor::DEFAULTS_FOR_ACCESS_TYPE[$access_type]));
Severity: Major
Found in src/Phan/Analysis/ConditionVisitorUtil.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return (new AssignmentVisitor(
                    $this->code_base,
                    // We clone the original context to avoid affecting the original context for the elseif.
                    // AssignmentVisitor modifies the provided context in place.
                    //
    Severity: Major
    Found in src/Phan/Analysis/ConditionVisitorUtil.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

                                    return IntType::instance(false)->asRealUnionType();
        Severity: Major
        Found in src/Phan/Analysis/BinaryOperatorFlagVisitor.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $probably_int_or_float_type;
          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::computeTriggerErrorStatusCodeForConstant($node->children['args']->children[1] ?? null);
            Severity: Major
            Found in src/Phan/Analysis/BlockExitStatusChecker.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

                                    return $type->isNullableLabeled() ? MixedType::instance(true) : NonNullMixedType::instance(false);
                Severity: Major
                Found in src/Phan/Analysis/PostOrderAnalysisVisitor.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $type;
                  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;
                      Severity: Major
                      Found in src/Phan/Analysis/PostOrderAnalysisVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return '(' . implode(', ', \array_map('self::toShortString', $node->children)) . ')';
                        Severity: Major
                        Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                          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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language