mambax7/extcal

View on GitHub

Showing 691 of 1,163 total issues

Method bExtcalNewEdit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function bExtcalNewEdit($options)
{
    global $xoopsUser;

    $helper = Helper::getInstance();
Severity: Minor
Found in blocks/new_events.php - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

                if (!hs.container) {
    
                    hs.ieLt7 = hs.ie && hs.uaVersion < 7;
                    hs.ieLt9 = hs.ie && hs.uaVersion < 9;
    
    
    Severity: Major
    Found in assets/js/highslide.js - About 1 hr to fix

      Method agenda_getEvents has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          $eventsArray,
          $ts,
          $hStart,
          $hEnd,
          $mPlage = 15,
      Severity: Major
      Found in include/agenda_fnc.php - About 1 hr to fix

        Method extcal_SendMail has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            $destinataires,
            $mail_fromname,
            $mail_fromemail,
            $mail_subject,
            $mail_body,
        Severity: Major
        Found in include/mail_fnc.php - About 1 hr to fix

          Method PclTarHandleExtractByIndex has 8 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  $p_tar,
                  &$p_index_current,
                  $p_index_start,
                  $p_index_stop,
                  &$p_list_detail,
          Severity: Major
          Found in class/pcltar.lib.php - About 1 hr to fix

            Method getSearchEvent3 has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    $queryarray,
                    $andor,
                    $limit,
                    $offset,
                    $userId,
            Severity: Major
            Found in class/EventHandler.php - About 1 hr to fix

              Function setStyles has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      setStyles: function (el, styles) {
                          for (var x in styles) {
                              if (hs.ieLt9 && x == 'opacity') {
                                  if (styles[x] > 0.99) el.style.removeAttribute('filter');
                                  else el.style.filter = 'alpha(opacity=' + (styles[x] * 100) + ')';
              Severity: Minor
              Found in assets/js/highslide-full.js - About 55 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 replaceLang has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      replaceLang: function (s) {
                          s = s.replace(/\s/g, ' ');
                          var re = /{hs\.lang\.([^}]+)\}/g,
                              matches = s.match(re),
                              lang;
              Severity: Minor
              Found in assets/js/highslide-with-gallery.js - About 55 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 getAdjacentAnchor has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      getAdjacentAnchor: function (op) {
                          var current = this.getAnchorIndex(), as = hs.anchors.groups[this.slideshowGroup || 'none'];
                          if (as && !as[current + op] && this.slideshow && this.slideshow.repeat) {
                              if (op == 1) return as[0];
                              else if (op == -1) return as[as.length - 1];
              Severity: Minor
              Found in assets/js/highslide-with-gallery.js - About 55 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 setStyles has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      setStyles: function (el, styles) {
                          for (var x in styles) {
                              if (hs.ieLt9 && x == 'opacity') {
                                  if (styles[x] > 0.99) el.style.removeAttribute('filter');
                                  else el.style.filter = 'alpha(opacity=' + (styles[x] * 100) + ')';
              Severity: Minor
              Found in assets/js/highslide-with-gallery.js - About 55 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 transit has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      transit: function (adj, exp) {
                          var last = exp || hs.getExpander();
                          exp = last;
                          if (hs.upcoming) return false;
                          else hs.last = last;
              Severity: Minor
              Found in assets/js/highslide.js - About 55 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 getAnchorIndex has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      getAnchorIndex: function () {
                          var arr = hs.getAnchors().groups[this.slideshowGroup || 'none'];
                          if (arr) for (var i = 0; i < arr.length; i++) {
                              if (arr[i] == this.a) return i;
                          }
              Severity: Minor
              Found in assets/js/highslide.js - About 55 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 checkFirstAndLast has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      checkFirstAndLast: function () {
                          if (this.repeat || !this.controls) return;
                          var exp = hs.expanders[this.expKey],
                              cur = exp.getAnchorIndex(),
                              re = /disabled$/;
              Severity: Minor
              Found in assets/js/highslide-with-gallery.js - About 55 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 getAnchorIndex has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      getAnchorIndex: function () {
                          var arr = hs.getAnchors().groups[this.slideshowGroup || 'none'];
                          if (arr) for (var i = 0; i < arr.length; i++) {
                              if (arr[i] == this.a) return i;
                          }
              Severity: Minor
              Found in assets/js/highslide-full.js - About 55 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 getAdjacentAnchor has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      getAdjacentAnchor: function (op) {
                          var current = this.getAnchorIndex(), as = hs.anchors.groups[this.slideshowGroup || 'none'];
                          if (as && !as[current + op] && this.slideshow && this.slideshow.repeat) {
                              if (op == 1) return as[0];
                              else if (op == -1) return as[as.length - 1];
              Severity: Minor
              Found in assets/js/highslide-full.js - About 55 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 replaceLang has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      replaceLang: function (s) {
                          s = s.replace(/\s/g, ' ');
                          var re = /{hs\.lang\.([^}]+)\}/g,
                              matches = s.match(re),
                              lang;
              Severity: Minor
              Found in assets/js/highslide-full.js - About 55 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 imageCreate has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      imageCreate: function () {
                          var exp = this;
              
                          var img = document.createElement('img');
                          this.content = img;
              Severity: Minor
              Found in assets/js/highslide-full.js - About 55 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 getAnchorIndex has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      getAnchorIndex: function () {
                          var arr = hs.getAnchors().groups[this.slideshowGroup || 'none'];
                          if (arr) for (var i = 0; i < arr.length; i++) {
                              if (arr[i] == this.a) return i;
                          }
              Severity: Minor
              Found in assets/js/highslide-with-gallery.js - About 55 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 checkFirstAndLast has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      checkFirstAndLast: function () {
                          if (this.repeat || !this.controls) return;
                          var exp = hs.expanders[this.expKey],
                              cur = exp.getAnchorIndex(),
                              re = /disabled$/;
              Severity: Minor
              Found in assets/js/highslide-full.js - About 55 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 imageCreate has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

                      imageCreate: function () {
                          var exp = this;
              
                          var img = document.createElement('img');
                          this.content = img;
              Severity: Minor
              Found in assets/js/highslide-with-gallery.js - About 55 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