Showing 3,272 of 4,939 total issues

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

                          Avoid too many return statements within this method.
                          Open

                                          return self::formatIncDec('--%s', $node->children['var']);
                          Severity: Major
                          Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return "${expr_str}[$dim_str]";
                            Severity: Major
                            Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return sprintf(
                                                  "(%s %s %s)",
                                                  self::toShortString($node->children['left']),
                                                  PostOrderAnalysisVisitor::NAME_FOR_BINARY_OP[$node->flags] ?? 'unknown',
                                                  self::toShortString($node->children['right'])
                              Severity: Major
                              Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return sprintf(
                                                    "(%s %s= %s)",
                                                    self::toShortString($node->children['var']),
                                                    PostOrderAnalysisVisitor::NAME_FOR_BINARY_OP[$node->flags] ?? 'unknown',
                                                    self::toShortString($node->children['expr'])
                                Severity: Major
                                Found in src/Phan/AST/ASTReverter.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $context;
                                  Severity: Major
                                  Found in src/Phan/Analysis/PostOrderAnalysisVisitor.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

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                return self::computeColumnForTokenAtIndex($tokens, $candidates[0], $desired_line);
                                        Severity: Major
                                        Found in src/Phan/AST/Parser.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language