XoopsModules25x/apcal

View on GitHub

Showing 1,049 of 26,336 total issues

Function afterClose has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        afterClose: function () {
            this.a.className = this.a.className.replace('highslide-active-anchor', '');

            this.doShowHide('visible');

Severity: Minor
Found in assets/images/js/highslide/highslide-full.js - About 1 hr 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 fitOverlayBox has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        fitOverlayBox: function (ratio, changed) {
            var x = this.x, y = this.y;
            if (this.overlayBox && (this.isImage || this.allowHeightReduction)) {
                while (y.size > this.minHeight && x.size > this.minWidth
                && y.get('wsize') > y.get('fitsize')) {
Severity: Minor
Found in assets/images/js/highslide/highslide-full.js - About 1 hr 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 getPageSize has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        getPageSize: function () {
            var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat'
                    ? d.documentElement : d.body,
                ieLt9 = hs.ie && (hs.uaVersion < 9 || typeof pageXOffset == 'undefined');

Severity: Minor
Found in assets/images/js/highslide/highslide-with-gallery.js - About 1 hr 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 init has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        init: function () {
            if (!hs.container) {

                hs.ieLt7 = hs.ie && hs.uaVersion < 7;
                hs.ieLt9 = hs.ie && hs.uaVersion < 9;
Severity: Minor
Found in assets/images/js/highslide/highslide.js - About 1 hr 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 getPageSize has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        getPageSize: function () {
            var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat'
                    ? d.documentElement : d.body,
                ieLt9 = hs.ie && (hs.uaVersion < 9 || typeof pageXOffset == 'undefined');

Severity: Minor
Found in assets/images/js/highslide/highslide.js - About 1 hr 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 getPageSize has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        getPageSize: function () {
            var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat'
                    ? d.documentElement : d.body,
                ieLt9 = hs.ie && (hs.uaVersion < 9 || typeof pageXOffset == 'undefined');

Severity: Minor
Found in assets/images/js/highslide/highslide-with-html.js - About 1 hr 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 fitOverlayBox has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        fitOverlayBox: function (ratio, changed) {
            var x = this.x, y = this.y;
            if (this.overlayBox && (this.isImage || this.allowHeightReduction)) {
                while (y.size > this.minHeight && x.size > this.minWidth
                && y.get('wsize') > y.get('fitsize')) {
Severity: Minor
Found in assets/images/js/highslide/highslide-with-html.js - About 1 hr 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 init has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        init: function () {
            if (!hs.container) {

                hs.ieLt7 = hs.ie && hs.uaVersion < 7;
                hs.ieLt9 = hs.ie && hs.uaVersion < 9;
Severity: Minor
Found in assets/images/js/highslide/highslide-with-html.js - About 1 hr 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 close has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        close: function () {
            if (this.isClosing || !this.isExpanded) return;
            if (this.transitions[1] == 'crossfade' && hs.upcoming) {
                hs.getExpander(hs.upcoming).cancelLoading();
                hs.upcoming = null;
Severity: Minor
Found in assets/images/js/highslide/highslide-with-gallery.js - About 1 hr 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 render has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

    public function render()
    {
        $ret = '';

        if (count($this->_appendix) > 0) {
Severity: Minor
Found in admin/mygrouppermform.php - About 1 hr 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 render has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

    public function render()
    {
        global $xoopsGTicket;

        // load all child ids for javascript codes
Severity: Minor
Found in admin/mygrouppermform.php - About 1 hr 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 displayParsedTemplate has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

        public function displayParsedTemplate($name = '')
        {
            $name = strtoupper($name);

            //  if a name was given, parse and display it
Severity: Minor
Found in include/patTemplate.php - About 1 hr 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 ImageMagickVersion has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
Open

    public function ImageMagickVersion($returnRAW = false)
    {
        static $versionstring = null;
        if (is_null($versionstring)) {
            $versionstring = array(0 => false, 1 => false);
Severity: Minor
Found in thumbs/phpthumb.class.php - About 1 hr 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 onGraphicLoad has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        onGraphicLoad: function () {
            var o = this.offset = this.graphic.width / 4,
                pos = [[0, 0], [0, -4], [-2, 0], [0, -8], 0, [-2, -8], [0, -2], [0, -6], [-2, -2]],
                dim = {height: (2 * o) + 'px', width: (2 * o) + 'px'};
            for (var i = 0; i <= 8; i++) {
Severity: Minor
Found in assets/images/js/highslide/highslide-full.js - About 1 hr to fix

    Function getInline has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            getInline: function (types, addOverlay) {
                for (var i = 0; i < types.length; i++) {
                    var type = types[i], s = null;
                    if (!this[type + 'Id'] && this.thumbsUserSetId)
                        this[type + 'Id'] = type + '-for-' + this.thumbsUserSetId;
    Severity: Minor
    Found in assets/images/js/highslide/highslide.js - About 1 hr to fix

      Function onGraphicLoad has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              onGraphicLoad: function () {
                  var o = this.offset = this.graphic.width / 4,
                      pos = [[0, 0], [0, -4], [-2, 0], [0, -8], 0, [-2, -8], [0, -2], [0, -6], [-2, -2]],
                      dim = {height: (2 * o) + 'px', width: (2 * o) + 'px'};
                  for (var i = 0; i <= 8; i++) {
      Severity: Minor
      Found in assets/images/js/highslide/highslide-with-gallery.js - About 1 hr to fix

        Function onGraphicLoad has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                onGraphicLoad: function () {
                    var o = this.offset = this.graphic.width / 4,
                        pos = [[0, 0], [0, -4], [-2, 0], [0, -8], 0, [-2, -8], [0, -2], [0, -6], [-2, -2]],
                        dim = {height: (2 * o) + 'px', width: (2 * o) + 'px'};
                    for (var i = 0; i <= 8; i++) {
        Severity: Minor
        Found in assets/images/js/highslide/highslide.js - About 1 hr to fix

          Function createOverlay has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  createOverlay: function (o) {
                      var el = o.overlayId;
                      if (typeof el == 'string') el = hs.getNode(el);
                      if (o.html) el = hs.createElement('div', {innerHTML: o.html});
                      if (!el || typeof el == 'string') return;
          Severity: Minor
          Found in assets/images/js/highslide/highslide.js - About 1 hr to fix

            Function createOverlay has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    createOverlay: function (o) {
                        var el = o.overlayId;
                        if (typeof el == 'string') el = hs.getNode(el);
                        if (o.html) el = hs.createElement('div', {innerHTML: o.html});
                        if (!el || typeof el == 'string') return;
            Severity: Minor
            Found in assets/images/js/highslide/highslide-with-html.js - About 1 hr to fix

              Method render has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function render()
                  {
                      $ret = '';
              
                      if (count($this->_appendix) > 0) {
              Severity: Minor
              Found in admin/mygrouppermform.php - About 1 hr to fix
                Severity
                Category
                Status
                Source
                Language