Showing 4,939 of 4,939 total issues

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 $this->analyzeAndUpdateToBeCompared($node->children['left'], $node->children['right'], flags\BINARY_IS_SMALLER_OR_EQUAL);
    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($left);
      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_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 $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 $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 $this->removeLiteralScalarFromVariable($var_node, $context, $expr, true);
                Severity: Major
                Found in src/Phan/Analysis/ConditionVisitorUtil.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $condition->analyzeComplexCondition($this, $tmp, $expr_node);
                  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->withScopeVariable(
                                            $variable
                                        );
                    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)->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 $int_or_float ?? ($int_or_float = UnionType::fromFullyQualifiedPHPDocString('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 $make_literal_union_type(
                                                      LiteralIntType::instanceForValue($value, false),
                                                      $real_int
                                                  );
                          Severity: Major
                          Found in src/Phan/Analysis/BinaryOperatorFlagVisitor.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return (new BlockAnalysisVisitor($code_base, clone($context)))->__invoke(
                                            $definition_node
                                        );
                            Severity: Major
                            Found in src/Phan/Analysis/Analyzable.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 $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 [$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 [$type->withIsNullable(false)];
                                      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(
                                                                    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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language