XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

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

    function apcal_after_schedule_edit($options)
    {
        global $xoopsDB, $xoopsConfig;

        $moduleDirName = empty($options[0]) ? basename(dirname(__DIR__)) : $options[0];
Severity: Minor
Found in blocks/apcal_after_schedule.php - About 1 hr to fix

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

        public function skipExt(&$data, &$extLen)
        {
            $extLen = 0;
    
            $b    = ord($data{0});
    Severity: Minor
    Found in thumbs/phpthumb.gif.php - About 1 hr to fix

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

          public function GD2BMPstring(&$gd_image)
          {
              $imageX = imagesx($gd_image);
              $imageY = imagesy($gd_image);
      
      
      Severity: Minor
      Found in thumbs/phpthumb.bmp.php - About 1 hr to fix

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

        function myblocksadmin_update_blockinstance(
            $id,
            $bside,
            $bweight,
            $bvisible,
        Severity: Minor
        Found in include/blocksadmin.inc.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

        Method myblocksadmin_update_block has 10 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            $bid,
            $bside,
            $bweight,
            $bvisible,
            $btitle,
        Severity: Major
        Found in include/blocksadmin.inc.php - About 1 hr to fix

          Function parseDependencies has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

                  public function parseDependencies($name, &$temp, $mode = 'w')
                  {
                      $name = strtoupper($name);
                      if (is_array($this->dependencies[$name])) {
                          for ($i = 0, $iMax = count($this->dependencies[$name]); $i < $iMax; ++$i) {
          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 set_date has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

                  public function set_date($setdate)
                  {
                      if (!(preg_match("/^([0-9][0-9]+)[-.\/]?([0-1]?[0-9])[-.\/]?([0-3]?[0-9])$/", $setdate, $regs)
                            && checkdate($regs[2], $regs[3], $regs[1]))
                      ) {
          Severity: Minor
          Found in class/APCal.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 get_plugins has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

                  public function get_plugins($type)
                  {
                      global $xoopsDB, $xoopsUser;
          
                      // MyTextSanitizer
          Severity: Minor
          Found in class/APCal_xoops.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