Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

            return $type->isInBoolFamily();
Severity: Major
Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

                return (new ContextMergeVisitor($context, [$left_false_context, $right_false_context]))->combineChildContextList();
        Severity: Major
        Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

                                return ArrayType::combineArrayShapeTypesWithField(
                                    $union_type,
                                    $dim_value,
                                    $dim_union_type->nonNullableClone()->withIsPossiblyUndefined(false)
                                );
                    Severity: Major
                    Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return UnionType::of($new_type_set, $old_type->getRealTypeSet());
                      Severity: Major
                      Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

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

                                Avoid too many return statements within this method.
                                Open

                                        return UnionType::of($new_type_set, $new_real_type_set);
                                Severity: Major
                                Found in src/Phan/Analysis/AssignmentVisitor.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return $this->analyzeAndUpdateToBeNotEqual($node->children['left'], $node->children['right']);
                                  Severity: Major
                                  Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                            return $null_type_set ?? ($null_type_set = UnionType::typeSetFromString('null'));
                                    Severity: Major
                                    Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $this->context;
                                        Severity: Major
                                        Found in src/Phan/Analysis/AssignmentVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language