Showing 4,939 of 4,939 total issues

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 $probably_array_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;
      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 (new AssignmentVisitor(
                      $this->code_base,
                      $this->context,
                      $node,
                      $new_type
          Severity: Major
          Found in src/Phan/Analysis/AssignOperatorAnalysisVisitor.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 $right_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 $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 $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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language