mambax7/extcal

View on GitHub

Showing 691 of 1,163 total issues

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/js/highslide.js - About 1 hr to fix

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

    function _makeXMLSlideshowConf($options)
    {
        // create a  new \XML document
        $doc               = new DomDocument('1.0');
        $doc->formatOutput = true;
    Severity: Minor
    Found in blocks/minical.php - 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/js/highslide.js - About 1 hr to fix

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

            public function __construct($form, $startTS = 0, $endTS = 0)
            {
                $startTS       = (int)$startTS;
                $startTS       = ($startTS > 0) ? $startTS : \time();
                $startDatetime = \getdate($startTS);
        Severity: Minor
        Found in class/Form/FormDateTime.php - About 1 hr to fix

          Method getSearchEvents has 11 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  $year = 0,
                  $month = 0,
                  $day = 0,
                  $cat = 0,
                  $queryarray = null,
          Severity: Major
          Found in class/EventHandler.php - About 1 hr to fix

            Method TrFctStart has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function TrFctStart($p_file, $p_line, $p_name, $p_param = '', $p_message = '')
                {
                    global $g_pcl_trace_level;
                    global $g_pcl_trace_mode;
                    global $g_pcl_trace_filename;
            Severity: Minor
            Found in class/pcltrace.lib.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: Critical
              Found in assets/js/highslide-with-gallery.js - About 1 hr to fix

                Function dragHandler has 33 lines of code (exceeds 25 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 1 hr to fix

                  Method bExtcalUpcomingByCategoryShow has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function bExtcalUpcomingByCategoryShow($options)
                  {
                      global $xoopsUser;
                  
                      /** @var Helper $helper */
                  Severity: Minor
                  Found in blocks/category_events.php - About 1 hr to fix

                    Method updateBlock has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups)
                        {
                            $moduleDirName      = \basename(\dirname(__DIR__));
                            $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
                    
                    
                    Severity: Minor
                    Found in admin/blocksadmin.php - About 1 hr to fix

                      Function transit has a Cognitive Complexity of 11 (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-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 setPosition has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                              setPosition: function (pos, offset, vis, dur, easing) {
                                  var exp = this.exp,
                                      stl = exp.wrapper.style,
                                      offset = offset || 0,
                                      pos = pos || {
                      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 focusTopmost has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                              focusTopmost: function () {
                                  var topZ = 0,
                                      topmostKey = -1,
                                      expanders = hs.expanders,
                                      exp,
                      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 focusTopmost has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                              focusTopmost: function () {
                                  var topZ = 0,
                                      topmostKey = -1,
                                      expanders = hs.expanders,
                                      exp,
                      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 transit has a Cognitive Complexity of 11 (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-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 setPosition has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                              setPosition: function (pos, offset, vis, dur, easing) {
                                  var exp = this.exp,
                                      stl = exp.wrapper.style,
                                      offset = offset || 0,
                                      pos = pos || {
                      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 calcExpanded has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                              calcExpanded: function () {
                                  var exp = this.exp;
                                  this.justify = 'auto';
                      
                      
                      
                      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 focusTopmost has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                              focusTopmost: function () {
                                  var topZ = 0,
                                      topmostKey = -1,
                                      expanders = hs.expanders,
                                      exp,
                      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 setPosition has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                              setPosition: function (pos, offset, vis, dur, easing) {
                                  var exp = this.exp,
                                      stl = exp.wrapper.style,
                                      offset = offset || 0,
                                      pos = pos || {
                      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 setSelection has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function setSelection($events)
                          {
                              $daysInMonth = $this->cE->getDaysInMonth($this->year, $this->month);
                              for ($i = 1; $i <= $daysInMonth; ++$i) {
                                  $stamp1 = $this->cE->dateToStamp($this->year, $this->month, $i);
                      Severity: Minor
                      Found in class/pear/Calendar/docs/examples/20.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

                      Severity
                      Category
                      Status
                      Source
                      Language