Showing 4,939 of 4,939 total issues

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

                  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 $probably_int_or_float_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 $result;
                      Severity: Major
                      Found in src/Phan/Analysis/ContextMergeVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $probably_int_or_float_type;
                        Severity: Major
                        Found in src/Phan/Analysis/AssignOperatorFlagVisitor.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 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 $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(
                                                            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 $type_list[0] ?? UnionType::empty();
                                  Severity: Major
                                  Found in src/Phan/Analysis/ContextMergeVisitor.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

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

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                        return;
                                        Severity: Major
                                        Found in src/Phan/Analysis/PostOrderAnalysisVisitor.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language