mambax7/extcal

View on GitHub

Showing 691 of 1,163 total issues

hs has 42 functions (exceeds 20 allowed). Consider refactoring.
Open

    var hs = {
// Language strings
        lang: {
            cssDirection: 'ltr',
            loadingText: 'Loading...',
Severity: Minor
Found in assets/js/highslide-with-gallery.js - About 5 hrs to fix

    Calendar_Decorator has 42 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Calendar_Decorator
    {
        /**
         * Subclass of Calendar being decorated.
         *
    Severity: Minor
    Found in class/pear/Calendar/Decorator.php - About 5 hrs to fix

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

          public function render()
          {
              $ret = '';
      
              $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
      Severity: Major
      Found in class/Form/FormRecurRules.php - About 5 hrs to fix

        Method getFormatedReccurRule has 140 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getFormatedReccurRule($event_recur_rules)
            {
                $eventOptions = \explode('|', $event_recur_rules);
        
                switch ($eventOptions[0]) {
        Severity: Major
        Found in class/Time.php - About 5 hrs to fix

          Function loadHTML has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
          Open

                  loadHTML: function () {
                      var s = this.cachedGet || this.xhr.responseText,
                          regBody;
                      if (this.pre) hs.cachedGets[this.src] = s;
                      if (!hs.ie || hs.uaVersion >= 5.5) {
          Severity: Minor
          Found in assets/js/highslide-full.js - About 5 hrs 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 showHideElements has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring.
          Open

                  showHideElements: function (tagName, visibility) {
                      var els = document.getElementsByTagName(tagName);
                      var prop = tagName == '*' ? 'overflow' : 'visibility';
                      for (var i = 0; i < els.length; i++) {
                          if (prop == 'visibility' || (document.defaultView.getComputedStyle(
          Severity: Minor
          Found in assets/js/highslide.js - About 5 hrs 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

          Method bExtcalMinicalShow has 134 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function bExtcalMinicalShow($options)
          {
              global $xoopsUser;
          
              extcal_getDefautminicalOption($options);
          Severity: Major
          Found in blocks/minical.php - About 5 hrs to fix

            prototype has 40 functions (exceeds 20 allowed). Consider refactoring.
            Open

                hs.Expander.prototype = {
                    error: function (e) {
                        if (hs.debug) alert('Line ' + e.lineNumber + ': ' + e.message);
                        else window.location.href = this.src;
                    },
            Severity: Minor
            Found in assets/js/highslide-with-gallery.js - About 5 hrs to fix

              Method PclTarHandleDelete has 132 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function PclTarHandleDelete($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode)
                  {
                      TrFctStart(__FILE__, __LINE__, 'PclTarHandleDelete', "archive='$p_tarname', list, tar_mode=$p_tar_mode");
                      $v_result = 1;
                      $v_nb     = 0;
              Severity: Major
              Found in class/pcltar.lib.php - About 5 hrs to fix

                Function crossfade has 128 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        crossfade: function (up, to, from) {
                            if (!up) return;
                            var exp = this,
                                last = this.last,
                                x = this.x,
                Severity: Major
                Found in assets/js/highslide-full.js - About 5 hrs to fix

                  Function justify has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
                  Open

                          justify: function (p, moveOnly) {
                              var tgtArr, tgt = p.target, dim = p == this.x ? 'x' : 'y';
                  
                              var hasMovedMin = false;
                  
                  
                  Severity: Minor
                  Found in assets/js/highslide.js - About 5 hrs 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 changeSize has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
                  Open

                          changeSize: function (up, to, dur) {
                  
                              if (this.outline && !this.outlineWhileAnimating) {
                                  if (up) this.outline.setPosition();
                                  else this.outline.destroy();
                  Severity: Minor
                  Found in assets/js/highslide.js - About 5 hrs 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 crossfade has 124 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          crossfade: function (up, to, from) {
                              if (!up) return;
                              var exp = this,
                                  last = this.last,
                                  x = this.x,
                  Severity: Major
                  Found in assets/js/highslide-with-gallery.js - About 4 hrs to fix

                    Function dragHandler has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
                    Open

                            dragHandler: function (e) {
                                if (!hs.dragArgs) return true;
                                if (!e) e = window.event;
                                var a = hs.dragArgs, exp = a.exp;
                                if (exp.iframe) {
                    Severity: Minor
                    Found in assets/js/highslide-full.js - About 4 hrs 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 Thumbstrip has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        hs.Thumbstrip = function (slideshow) {
                            function add(exp) {
                                hs.extend(options || {}, {
                                    overlayId: dom,
                                    hsId: 'thumbstrip',
                    Severity: Major
                    Found in assets/js/highslide-full.js - About 4 hrs to fix

                      Function Thumbstrip has 122 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          hs.Thumbstrip = function (slideshow) {
                              function add(exp) {
                                  hs.extend(options || {}, {
                                      overlayId: dom,
                                      hsId: 'thumbstrip',
                      Severity: Major
                      Found in assets/js/highslide-with-gallery.js - About 4 hrs to fix

                        hs has 37 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                            var hs = {
                        // Language strings
                                lang: {
                                    cssDirection: 'ltr',
                                    loadingText: 'Loading...',
                        Severity: Minor
                        Found in assets/js/highslide.js - About 4 hrs to fix

                          Function loadImg has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public static function loadImg($REQUEST, &$event_picture1, &$event_picture2)
                              {
                                  ///////////////////////////////////////////////////////////////////////////////
                                  $uploaddir_event = XOOPS_ROOT_PATH . '/uploads/extcal/';
                                  $uploadurl_event = XOOPS_URL . '/uploads/extcal/';
                          Severity: Minor
                          Found in class/Utility.php - About 4 hrs 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

                          Method PclTarHandleExtractFile has 117 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function PclTarHandleExtractFile($p_tar, &$v_header, $p_path, $p_remove_path, $p_tar_mode)
                              {
                                  TrFctStart(__FILE__, __LINE__, 'PclTarHandleExtractFile', "archive_descr='$p_tar', path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode");
                                  $v_result = 1;
                          
                          
                          Severity: Major
                          Found in class/pcltar.lib.php - About 4 hrs to fix

                            Calendar has 36 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class Calendar
                            {
                                /**
                                 * Instance of class implementing calendar engine interface.
                                 *
                            Severity: Minor
                            Found in class/pear/Calendar/Calendar.php - About 4 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language