mambax7/extcal

View on GitHub

Showing 691 of 1,163 total issues

Function close has 29 lines of code (exceeds 25 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/js/highslide-with-gallery.js - About 1 hr to fix

    Method bExtcalMinicalAddEventToArray has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function bExtcalMinicalAddEventToArray($event, &$eventsArray, $timeHandler, $startMonth, $endMonth, $cats)
    {
        // Utility::echoArray($event);
        // exit;
        // $d1 = date("j, m, Y", $startMonth);
    Severity: Minor
    Found in blocks/minical.php - About 1 hr to fix

      Method PclTarExtractIndex has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function PclTarExtractIndex($p_tarname, $p_index, $p_path = './', $p_remove_path = '', $p_mode = '')
          {
              TrFctStart(__FILE__, __LINE__, 'PclTarExtractIndex', "tar=$p_tarname, index='$p_index', path=$p_path, remove_path='$p_remove_path', mode='$p_mode'");
              $v_result = 1;
      
      
      Severity: Minor
      Found in class/pcltar.lib.php - About 1 hr to fix

        Method getServerStats has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public static function getServerStats()
            {
                //mb    $wfdownloads = WfdownloadsWfdownloads::getInstance();
                $moduleDirName      = \basename(\dirname(__DIR__, 2));
                $moduleDirNameUpper = mb_strtoupper($moduleDirName);
        Severity: Minor
        Found in class/Common/ServerStats.php - About 1 hr to fix

          Method updateBlock has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              function updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups)
          Severity: Major
          Found in admin/blocksadmin.php - About 1 hr to fix

            Function initSlideshow has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    initSlideshow: function () {
                        if (!this.last) {
                            for (var i = 0; i < hs.slideshows.length; i++) {
                                var ss = hs.slideshows[i], sg = ss.slideshowGroup;
                                if (typeof sg == 'undefined' || sg === null || sg === this.slideshowGroup)
            Severity: Minor
            Found in assets/js/highslide-full.js - About 1 hr to fix

              Function initSlideshow has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      initSlideshow: function () {
                          if (!this.last) {
                              for (var i = 0; i < hs.slideshows.length; i++) {
                                  var ss = hs.slideshows[i], sg = ss.slideshowGroup;
                                  if (typeof sg == 'undefined' || sg === null || sg === this.slideshowGroup)
              Severity: Minor
              Found in assets/js/highslide-with-gallery.js - About 1 hr to fix

                Function setSize has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        setSize: function (i) {
                            var exp = this.exp;
                            if (exp.isImage && (exp.useBox || hs.padToMinWidth)) {
                                this.imgSize = i;
                                this.size = Math.max(this.size, this.imgSize);
                Severity: Minor
                Found in assets/js/highslide-full.js - About 1 hr to fix

                  Method loadSampleData has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function loadSampleData()
                  {
                      global $xoopsConfig;
                      $moduleDirName      = \basename(\dirname(__DIR__));
                      $moduleDirNameUpper = mb_strtoupper($moduleDirName);
                  Severity: Minor
                  Found in testdata/index.php - About 1 hr to fix

                    Method createFile has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function createFile($eventId)
                        {
                            $userId = $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('uid') : 0;
                    
                            $allowedMimeType = [];
                    Severity: Minor
                    Found in class/FileHandler.php - About 1 hr to fix

                      Method PclTarAddList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function PclTarAddList($p_tarname, $p_filelist, $p_add_dir = '', $p_remove_dir = '', $p_mode = '')
                          {
                              TrFctStart(__FILE__, __LINE__, 'PclTarAddList', "tar=$p_tarname, file=$p_filelist, p_add_dir='$p_add_dir', p_remove_dir='$p_remove_dir', mode=$p_mode");
                              $v_result      = 1;
                              $p_list_detail = [];
                      Severity: Minor
                      Found in class/pcltar.lib.php - About 1 hr to fix

                        Method getMax has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function getMax(\CriteriaCompo $criteria = null, $max = '*')
                            {
                                $field   = '';
                                $groupby = false;
                                if (isset($criteria) && null !== $criteria) {
                        Severity: Minor
                        Found in class/ExtcalPersistableObjectHandler.php - About 1 hr to fix

                          Method getSum has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function getSum(\CriteriaCompo $criteria = null, $sum = '*')
                              {
                                  $field   = '';
                                  $groupby = false;
                                  if (isset($criteria) && null !== $criteria) {
                          Severity: Minor
                          Found in class/ExtcalPersistableObjectHandler.php - About 1 hr to fix

                            Method getCount has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function getCount(\CriteriaElement $criteria = null)
                                {
                                    $field   = '';
                                    $groupby = false;
                                    if (isset($criteria) && null !== $criteria) {
                            Severity: Minor
                            Found in class/ExtcalPersistableObjectHandler.php - About 1 hr to fix

                              Function undim has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                      undim: function (key) {
                                          if (!hs.dimmer) return;
                                          if (typeof key != 'undefined') hs.dimmer.owner = hs.dimmer.owner.replace('|' + key, '');
                              
                                          if (
                              Severity: Minor
                              Found in assets/js/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 dim has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                      dim: function (exp) {
                                          if (!hs.dimmer) {
                                              isNew = true;
                                              hs.dimmer = hs.createElement('div', {
                                                  className: 'highslide-dimming highslide-viewport-size',
                              Severity: Minor
                              Found in assets/js/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 undim has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                      undim: function (key) {
                                          if (!hs.dimmer) return;
                                          if (typeof key != 'undefined') hs.dimmer.owner = hs.dimmer.owner.replace('|' + key, '');
                              
                                          if (
                              Severity: Minor
                              Found in assets/js/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 animate has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                      animate: function (el, prop, opt) {
                                          var start,
                                              end,
                                              unit;
                                          if (typeof opt != 'object' || opt === null) {
                              Severity: Minor
                              Found in assets/js/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 animate has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                      animate: function (el, prop, opt) {
                                          var start,
                                              end,
                                              unit;
                                          if (typeof opt != 'object' || opt === null) {
                              Severity: Minor
                              Found in assets/js/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 addSlideshow has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                              Open

                                      addSlideshow: function (options) {
                                          var sg = options.slideshowGroup;
                                          if (typeof sg == 'object') {
                                              for (var i = 0; i < sg.length; i++) {
                                                  var o = {};
                              Severity: Minor
                              Found in assets/js/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

                              Severity
                              Category
                              Status
                              Source
                              Language