Showing 4,939 of 4,939 total issues

Avoid too many return statements within this method.
Open

        return [
            'count' => $zero_count_callback,
            'is_null' => $remove_null_cb,
            'is_array' => $remove_array_callback,
            'is_bool' => $remove_bool_callback,
Severity: Major
Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                        return $code_base->getGlobalConstantByFQSEN($fqsen);
    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 $context->withScopeVariable(new Variable(
                        $context->withLineNumberStart($node->lineno ?? 0),
                        $var_name,
                        $new_type,  // can be array or (unlikely) ArrayAccess
                        0
        Severity: Major
        Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

                                return [];
            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;  // $old_fqsen was not an alternative
              Severity: Major
              Found in src/Phan/Analysis/ReferenceCountsAnalyzer.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 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 NonZeroIntType::instance($type->isNullable());
                    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->analyzeCall($this, $var_node, $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 $condition->analyzeVar($this, $var, $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 $this->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 is_string($var_name) ? $var_name : 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 $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_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 $string_array_type;
                                  Severity: Major
                                  Found in src/Phan/Analysis/RegexAnalyzer.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                                return true;
                                    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->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 $this->analyzeAndUpdateToBeCompared($node->children['left'], $node->children['right'], flags\BINARY_IS_GREATER_OR_EQUAL);
                                        Severity: Major
                                        Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language