Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                    return $this->removeFalseFromVariable($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 $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 IntType::instance(false)->asPHPDocUnionType();
        Severity: Major
        Found in src/Phan/Analysis/BinaryOperatorFlagVisitor.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                                  return $make_literal_union_type(
                                      is_int($value) ? LiteralIntType::instanceForValue($value, false)
                                                     : LiteralFloatType::instanceForValue($value, false),
                                      $real_int_or_float
                                  );
          Severity: Major
          Found in src/Phan/Analysis/BinaryOperatorFlagVisitor.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

                          return $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 $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 FloatType::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 self::STATUS_PROCEED;  // Assume this is a warning or notice?
                        Severity: Major
                        Found in src/Phan/Analysis/BlockExitStatusChecker.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

                                      return $left_type->withUnionType($right_type)->asNormalizedTypes();
                              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::STATUS_PROCEED;
                                Severity: Major
                                Found in src/Phan/Analysis/BlockExitStatusChecker.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                                    return [];
                                    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 $make_literal_union_type(
                                                                    LiteralIntType::instanceForValue($left_value ^ $right_value, false),
                                                                    $real_int
                                                                );
                                        Severity: Major
                                        Found in src/Phan/Analysis/BinaryOperatorFlagVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language