Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

            return self::_IS_REASONABLE_CONDITION;
Severity: Major
Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return self::_IS_REASONABLE_CONDITION;
    Severity: Major
    Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return $union_type->floatTypes()->isEqualTo($union_type);
      Severity: Major
      Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $this->analyzePropAssignmentTarget($node);
        Severity: Major
        Found in src/Phan/Plugin/Internal/VariableTracker/VariableTrackerVisitor.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $node->kind !== \ast\AST_ECHO || !is_string($node->children['expr']);
          Severity: Major
          Found in src/Phan/Config/Initializer.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return $make_first_arg_checker(static function (UnionType $union_type) use ($condition): int {
                            if (!$union_type->containsNullableOrUndefined() && $condition($union_type)) {
                                return self::_IS_REDUNDANT;
                            }
                            return self::_IS_REASONABLE_CONDITION;
            Severity: Major
            Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return self::_IS_REASONABLE_CONDITION;
              Severity: Major
              Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return $this->analyzeDimAssignmentTarget($node);
                Severity: Major
                Found in src/Phan/Plugin/Internal/VariableTracker/VariableTrackerVisitor.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return self::_IS_IMPOSSIBLE;
                  Severity: Major
                  Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return self::_IS_IMPOSSIBLE;
                    Severity: Major
                    Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return $union_type->intTypes()->isEqualTo($union_type);
                      Severity: Major
                      Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return self::_IS_IMPOSSIBLE;
                        Severity: Major
                        Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return self::_IS_REASONABLE_CONDITION;
                          Severity: Major
                          Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $union_type->isExclusivelyBoolTypes();
                            Severity: Major
                            Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                  return self::_IS_REDUNDANT;
                              Severity: Major
                              Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return [
                                            // 'is_a' => $is_a_callback,
                                            'is_array' => $array_callback,
                                            'is_bool' => $bool_callback,
                                            'is_callable' => $callable_callback,
                                Severity: Major
                                Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return self::_IS_IMPOSSIBLE;
                                  Severity: Major
                                  Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return true;
                                    Severity: Major
                                    Found in src/Phan/Plugin/Internal/RedundantConditionVisitor.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return self::_IS_REDUNDANT;
                                      Severity: Major
                                      Found in src/Phan/Plugin/Internal/RedundantConditionCallPlugin.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return $result;
                                        Severity: Major
                                        Found in src/Phan/Plugin/Internal/LoopVariableReuseVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language