bitslip6/bitfire

View on GitHub

Showing 117 of 749 total issues

Method insert_stmt has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    protected function insert_stmt(string $table, array $data, int $on_duplicate = DB_DUPLICATE_IGNORE, ?array $no_update = null, ?array $if_null = null) : string {
Severity: Minor
Found in firewall/src/db.php - About 35 mins to fix

    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function __construct(string $os, string $browser, string $ver, bool $whitelist, bool $bot)
    Severity: Minor
    Found in firewall/src/botfilter.php - About 35 mins to fix

      Function executeBound has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        function executeBound(sourceFunc, boundFunc, context, callingContext, args) {
      Severity: Minor
      Found in public/underscore.js - About 35 mins to fix

        Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function __construct(int $type, string $key, $value, int $block_time, MatchType $chain = null) {
        Severity: Minor
        Found in firewall/src/bitfire.php - About 35 mins to fix

          Method file_recurse has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function file_recurse(string $dirname, callable $fn, string $regex_filter = NULL, array $result = array(), $max_results = 20000) : array {
          Severity: Minor
          Found in firewall/src/util.php - About 35 mins to fix

            Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                protected function __construct(int $ip_int, int $valid, int $ua_crc, int $exp_time, $answer)
            Severity: Minor
            Found in firewall/src/botfilter.php - About 35 mins to fix

              Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public function __construct(int $code = 0, string $uuid = 'x', ?string $parameter = NULL, ?string $url = NULL, ?string $host = NULL) {
              Severity: Minor
              Found in firewall/src/bitfire.php - About 35 mins to fix

                Method on_err has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function on_err($errno, $errstr, $err_file, $err_line, $context = null): bool {
                Severity: Minor
                Found in error_handler.php - About 35 mins to fix

                  Method http_response has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  function http_response(string $content, string $url, array $headers, int $len, bool $success) : HttpResponse {
                  Severity: Minor
                  Found in firewall/src/http.php - About 35 mins to fix

                    Method cuckoo_write has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function cuckoo_write(array &$ctx, string $key, int $ttl_sec, array $item, int $priority = CUCKOO_LOW): bool
                    Severity: Minor
                    Found in firewall/src/cuckoo.php - About 35 mins to fix

                      Method cuckoo_read_or_set has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function cuckoo_read_or_set(array $ctx, string $key, int $ttl, callable $fn, int $priority = CUCKOO_LOW)
                      Severity: Minor
                      Found in firewall/src/cuckoo.php - About 35 mins to fix

                        Method onerr has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        function onerr($errno, $errstr, $errfile, $errline, $context = NULL) : bool {
                        Severity: Minor
                        Found in bin/bitfire-install.php - About 35 mins to fix

                          Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public function __construct(string $user, string $pass, string $host, string $db_name, string $pre = "") {
                          Severity: Minor
                          Found in firewall/src/db.php - About 35 mins to fix

                            Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                public function __construct(int $code, string $parameter, string $value, string $pattern, int $block_time = 0) {
                            Severity: Minor
                            Found in firewall/src/bitfire.php - About 35 mins to fix

                              Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  public function __construct(string $filename, string $content, int $write_mode = 0, int $mod_time = 0, bool $append = false) {
                              Severity: Minor
                              Found in firewall/src/util.php - About 35 mins to fix

                                Function d has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                "use strict";function c(){}function d(a,b,c,d,e){for(var f=0,g=b.length,h=0,i=0;f<g;f++){var j=b[f];if(j.removed){
                                Severity: Minor
                                Found in firewall/views/diff.min.js - About 35 mins to fix

                                  Function f has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  function f(a,b,c,d,e){b=b||[],c=c||[],d&&(a=d(e,a));var h=/*istanbul ignore start*/void 0;for(h=0;h<b.length;h+=1)if(b[h]===a)return c[h];var i=/*istanbul ignore start*/void 0;if("[object Array]"===k.call(a)){for(b.push(a),i=new Array(a.length),c.push(i),h=0;h<a.length;h+=1)i[h]=f(a[h],b,c,d,e);return b.pop(),c.pop(),i}if(a&&a.toJSON&&(a=a.toJSON()),/*istanbul ignore start*/"object"===("undefined"==typeof/*istanbul ignore end*/a?"undefined":g(a))&&null!==a){b.push(a),i={},c.push(i);var j=[],l=/*istanbul ignore start*/void 0;for(l in a)/* istanbul ignore else */
                                  Severity: Minor
                                  Found in firewall/views/diff.min.js - About 35 mins to fix

                                    Method new has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        public static function new(string $ip_str, int $valid, string $ua_str, int $exp_time, $answer)
                                    Severity: Minor
                                    Found in firewall/src/botfilter.php - About 35 mins to fix

                                      Function l has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      return(0,w.structuredPatch)(void 0,void 0,b,a)}return a}function h(a){return a.newFileName&&a.newFileName!==a.oldFileName}function i(a,b,c){return b===c?b:(a.conflict=!0,{mine:b,theirs:c})}function j(a,b){return a.oldStart<b.oldStart&&a.oldStart+a.oldLines<b.oldStart}function k(a,b){return{oldStart:a.oldStart,oldLines:a.oldLines,newStart:a.newStart+b,newLines:a.newLines,lines:a.lines}}function l(a,b,c,f,g){
                                      Severity: Minor
                                      Found in firewall/views/diff.min.js - About 35 mins to fix

                                        Method file_recurse has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        function file_recurse(string $dirname, callable $fn, string $regex_filter = NULL, array $result = array(), $max_results = 20000) : array {
                                        Severity: Minor
                                        Found in bin/bitfire-install.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language