Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

        return [
            // commonly used functions where the return type depends on a passed in boolean
            'var_export'                  => $string_if_2_true,
            'print_r'                     => $string_if_2_true_else_true,
            'json_decode'                 => $json_decode_return_type_handler,
Severity: Major
Found in src/Phan/Plugin/Internal/DependentReturnTypeOverridePlugin.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $key_type->withRealTypeSet($int_or_string_or_null->getRealTypeSet());
    Severity: Major
    Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $key_type->withRealTypeSet($int_or_string_or_null->getRealTypeSet());
      Severity: Major
      Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $element_types->asNonEmptyGenericArrayTypes(GenericArrayType::KEY_INT);
        Severity: Major
        Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

                        return $possible_return_nodes;
            Severity: Major
            Found in src/Phan/Plugin/Internal/UseReturnValuePlugin/RedundantReturnVisitor.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

                                  return UnionType::fromFullyQualifiedPHPDocString('array<string,string>');
                  Severity: Major
                  Found in src/Phan/Plugin/Internal/DependentReturnTypeOverridePlugin.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

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

                      Avoid too many return statements within this method.
                      Open

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

                        Avoid too many return statements within this method.
                        Open

                                            return UnionType::fromFullyQualifiedPHPDocAndRealString(
                                                'list<string>',
                                                $is_php8 ? 'list<string>' : '?list<string>'
                                            );
                        Severity: Major
                        Found in src/Phan/Plugin/Internal/DependentReturnTypeOverridePlugin.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return UnionType::fromFullyQualifiedPHPDocAndRealString(
                                          'non-empty-list<string>',
                                          $is_php8 ? 'non-empty-list<string>' : '?non-empty-list<string>'
                                      );
                          Severity: Major
                          Found in src/Phan/Plugin/Internal/DependentReturnTypeOverridePlugin.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return NullType::instance(false)->asRealUnionType();
                            Severity: Major
                            Found in src/Phan/Plugin/Internal/ClosureReturnTypeOverridePlugin.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return ClosureType::instance(false)->asRealUnionType();
                              Severity: Major
                              Found in src/Phan/Plugin/Internal/ClosureReturnTypeOverridePlugin.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                                  return $int_or_string_or_null;
                                  Severity: Major
                                  Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.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/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                    return $key_union_type->asListTypes()->withRealTypeSet($nullable_list_type_set);
                                        Severity: Major
                                        Found in src/Phan/Plugin/Internal/ArrayReturnTypeOverridePlugin.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language