Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                    return [ArrayType::instance($type->isNullable())];
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 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 false;
        Severity: Major
        Found in src/Phan/Analysis/ThrowsTypesAnalyzer.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $exception_class->isInterface();
          Severity: Major
          Found in src/Phan/Analysis/ThrowsTypesAnalyzer.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                                  return \get_class($type) === IntType::class;
              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 $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 false;
                    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;
                        Severity: Major
                        Found in src/Phan/Analysis/ArgumentType.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

                                    return $this->updateVariableWithConditionalFilter(
                                        $var_node,
                                        $context,
                                        static function (UnionType $union_type) use ($cb): bool {
                                            return $union_type->hasPhpdocOrRealTypeMatchingCallback($cb);
                            Severity: Major
                            Found in src/Phan/Analysis/ConditionVisitorUtil.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                  return $this->removeTrueFromVariable($var_node, $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 $probably_unknown_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 $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 $nullable_issue_type;
                                    Severity: Major
                                    Found in src/Phan/Analysis/ArgumentType.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 $this->analyzeAndUpdateToBeNotIdentical($node->children['left'], $node->children['right']);
                                        Severity: Major
                                        Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language