XoopsModules25x/apcal

View on GitHub

Showing 1,049 of 26,336 total issues

Avoid too many return statements within this method.
Open

        return true;
Severity: Major
Found in thumbs/phpthumb.class.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return true;
    Severity: Major
    Found in thumbs/phpthumb.class.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return $this->ErrorImage('Image (JPEG) is too large for PHP-GD memory_limit, please install ImageMagick or increase php.ini memory_limit setting');
      Severity: Major
      Found in thumbs/phpthumb.class.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return -1;
        Severity: Major
        Found in thumbs/phpthumb.functions.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return 1;
          Severity: Major
          Found in thumbs/phpthumb.functions.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                            return false;
            Severity: Major
            Found in thumbs/phpthumb.class.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return $this->ErrorImage('Invalid hex color string "' . $this->config_background_hexcolor . '" for parameter "bg"');
              Severity: Major
              Found in thumbs/phpthumb.class.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                        return $this->ErrorImage($this->ImageMagickVersion() ? 'ImageMagick failed on BMP source conversion' : 'phpthumb_bmp2gd() failed');
                Severity: Major
                Found in thumbs/phpthumb.class.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                                      return false;
                  Severity: Major
                  Found in thumbs/phpthumb.class.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return $this->ErrorImage($this->ImageMagickVersion() ? 'ImageMagick failed on WMF source conversion' : 'ImageMagick is unavailable and phpThumb() does not support WMF source images without it');
                    Severity: Major
                    Found in thumbs/phpthumb.class.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return (int)($version1 != $version2);
                      Severity: Major
                      Found in thumbs/phpthumb.functions.php - About 30 mins to fix

                        Function display has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                        function display(v) {
                            var container = document.getElementById('APContainer');
                            var t = '<dl>';
                            var e = v[0];
                            var d = v[1];
                        Severity: Minor
                        Found in assets/api/APscript.js - About 25 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 doShowHide has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                                doShowHide: function (visibility) {
                                    if (hs.hideSelects) this.showHideElements('SELECT', visibility);
                                    if (hs.hideIframes) this.showHideElements('IFRAME', visibility);
                                    if (hs.geckoMac) this.showHideElements('*', visibility);
                                },
                        Severity: Minor
                        Found in assets/images/js/highslide/highslide-full.js - About 25 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 Dimension has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            hs.Dimension = function (exp, dim) {
                                this.exp = exp;
                                this.dim = dim;
                                this.ucwh = dim == 'x' ? 'Width' : 'Height';
                                this.wh = this.ucwh.toLowerCase();
                        Severity: Minor
                        Found in assets/images/js/highslide/highslide-full.js - About 25 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 Dimension has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            hs.Dimension = function (exp, dim) {
                                this.exp = exp;
                                this.dim = dim;
                                this.ucwh = dim == 'x' ? 'Width' : 'Height';
                                this.wh = this.ucwh.toLowerCase();
                        Severity: Minor
                        Found in assets/images/js/highslide/highslide-with-gallery.js - About 25 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 afterExpand has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                                afterExpand: function () {
                                    this.isExpanded = true;
                                    this.focus();
                                    if (this.dimmingOpacity) hs.dim(this);
                                    if (hs.upcoming && hs.upcoming == this.a) hs.upcoming = null;
                        Severity: Minor
                        Found in assets/images/js/highslide/highslide-with-gallery.js - About 25 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 Dimension has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                            hs.Dimension = function (exp, dim) {
                                this.exp = exp;
                                this.dim = dim;
                                this.ucwh = dim == 'x' ? 'Width' : 'Height';
                                this.wh = this.ucwh.toLowerCase();
                        Severity: Minor
                        Found in assets/images/js/highslide/highslide.js - About 25 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 getPosition has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                                getPosition: function (el) {
                                    var p = {x: el.offsetLeft, y: el.offsetTop};
                                    while (el.offsetParent) {
                                        el = el.offsetParent;
                                        p.x += el.offsetLeft;
                        Severity: Minor
                        Found in assets/images/js/highslide/highslide.js - About 25 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 afterClose has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                                afterClose: function () {
                                    this.a.className = this.a.className.replace('highslide-active-anchor', '');
                        
                                    this.doShowHide('visible');
                                    if (this.outline && this.outlineWhileAnimating) this.outline.destroy();
                        Severity: Minor
                        Found in assets/images/js/highslide/highslide-with-gallery.js - About 25 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 getPosition has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                        Open

                                getPosition: function (el) {
                                    var p = {x: el.offsetLeft, y: el.offsetTop};
                                    while (el.offsetParent) {
                                        el = el.offsetParent;
                                        p.x += el.offsetLeft;
                        Severity: Minor
                        Found in assets/images/js/highslide/highslide-with-html.js - About 25 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