XoopsModules25x/apcal

View on GitHub

Showing 1,049 of 26,336 total issues

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

        setPosition: function (pos, offset, vis, dur, easing) {
Severity: Minor
Found in assets/images/js/highslide/highslide-with-gallery.js - About 35 mins to fix

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

            setPosition: function (pos, offset, vis, dur, easing) {
    Severity: Minor
    Found in assets/images/js/highslide/highslide-with-html.js - About 35 mins to fix

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

              createElement: function (tag, attribs, styles, parent, nopad) {
      Severity: Minor
      Found in assets/images/js/highslide/highslide-with-gallery.js - About 35 mins to fix

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

                createElement: function (tag, attribs, styles, parent, nopad) {
        Severity: Minor
        Found in assets/images/js/highslide/highslide-with-html.js - About 35 mins to fix

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

              public function _diag($xoff, $xlim, $yoff, $ylim, $nchunks)
          Severity: Minor
          Found in include/Text_Diff.php - About 35 mins to fix

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

                    public function startElementHandler($fname, $tagname, $attributes, $line, $lineno)
            Severity: Minor
            Found in include/patTemplate.php - About 35 mins to fix

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

                  public function _block($xbeg, $xlen, $ybeg, $ylen, &$edits)
              Severity: Minor
              Found in include/Text_Diff_Renderer.php - About 35 mins to fix

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

                        public function get_xoops_search_result($keywords, $andor, $limit, $offset, $uid)
                Severity: Minor
                Found in class/APCal_xoops.php - About 35 mins to fix

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

                              $event,
                              $tzoffset,
                              $border_for_2400,
                              $justify = true,
                              $admission = true
                  Severity: Minor
                  Found in class/APCal.php - About 35 mins to fix

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

                        public static function ImageColorAllocateAlphaSafe(&$gdimg_hexcolorallocate, $R, $G, $B, $alpha = false)
                    Severity: Minor
                    Found in thumbs/phpthumb.functions.php - About 35 mins to fix

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

                              &$gdimg_source,
                              $rotate_angle = 0,
                              $config_background_hexcolor = 'FFFFFF',
                              $bg = null,
                              &$phpThumbObject
                      Severity: Minor
                      Found in thumbs/phpthumb.filters.php - About 35 mins to fix

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

                            public function Crop(&$gdimg, $left = 0, $right = 0, $top = 0, $bottom = 0)
                        Severity: Minor
                        Found in thumbs/phpthumb.filters.php - About 35 mins to fix

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

                              public function ImageBorder(&$gdimg, $border_width, $radius_x, $radius_y, $hexcolor_border)
                          Severity: Minor
                          Found in thumbs/phpthumb.filters.php - About 35 mins to fix

                            Function htmlGetSize has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                                    htmlGetSize: function () {
                                        if (this.iframe && !this.objectHeight) { // loadtime before
                                            this.iframe.style.height = this.body.style.height = this.getIframePageHeight() + 'px';
                                        }
                                        this.innerContent.appendChild(hs.clearing);
                            Severity: Minor
                            Found in assets/images/js/highslide/highslide-full.js - About 35 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function isRelated has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            Calendar.isRelated = function (el, evt) {
                                var related = evt.relatedTarget;
                                if (!related) {
                                    var type = evt.type;
                                    if (type == "mouseover") {
                            Severity: Minor
                            Found in assets/js/jscalendar/calendar.js - About 35 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function showMonthsCombo has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            Calendar.showMonthsCombo = function () {
                                var cal = Calendar._C;
                                if (!cal) {
                                    return false;
                                }
                            Severity: Minor
                            Found in assets/js/jscalendar/calendar.js - About 35 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function destroyObject has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                                    destroyObject: function () {
                                        if (hs.ie && this.iframe)
                                            try {
                                                this.iframe.contentWindow.document.body.innerHTML = '';
                                            } catch (e) {
                            Severity: Minor
                            Found in assets/images/js/highslide/highslide-full.js - About 35 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function deletePic has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                            function deletePic(url, p, e, m, n) {
                                var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); //IF ie7+, FF, Chrome, Opera, Safari, ... ELSE IE6, IE5
                            
                                xmlhttp.onreadystatechange = function () {
                                    if (xmlhttp.readyState == 4 && xmlhttp.status == 200 && xmlhttp.responseText > -1) {
                            Severity: Minor
                            Found in ajax/pictures.js - About 35 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function getExpander has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                                    getExpander: function (el, expOnly) {
                                        if (typeof el == 'undefined') return hs.expanders[hs.focusKey] || null;
                                        if (typeof el == 'number') return hs.expanders[el] || null;
                                        if (typeof el == 'string') el = hs.$(el);
                                        return hs.expanders[hs.getWrapperKey(el, expOnly)] || null;
                            Severity: Minor
                            Found in assets/images/js/highslide/highslide-full.js - About 35 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function getParam has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                            Open

                                    getParam: function (a, param) {
                                        a.getParams = a.onclick;
                                        var p = a.getParams ? a.getParams() : null;
                                        a.getParams = null;
                            
                            
                            Severity: Minor
                            Found in assets/images/js/highslide/highslide-full.js - About 35 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Severity
                            Category
                            Status
                            Source
                            Language