XoopsModules25x/apcal

View on GitHub

Showing 1,049 of 26,336 total issues

Function positionOverlay has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        positionOverlay: function (overlay) {
            var p = overlay.position || 'middle center',
                offX = overlay.offsetX,
                offY = overlay.offsetY;
            if (overlay.parentNode != this.overlayBox) this.overlayBox.appendChild(overlay);
Severity: Major
Found in assets/images/js/highslide/highslide-with-html.js - About 2 hrs to fix

    Method get_flags_date_has_events has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public function get_flags_date_has_events($range_start_s, $range_end_s, $mode = '')
            {
                // ���餫����������������Ƥ���
                /* for ($time = $start ; $time < $end ; $time += 86400) {
            $ret[ date( 'j' , $time ) ] = 0 ;
    Severity: Major
    Found in class/APCal.php - About 2 hrs to fix

      Function print has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Date.prototype.print = function (str) {
          var m = this.getMonth();
          var d = this.getDate();
          var y = this.getFullYear();
          var wn = this.getWeekNumber();
      Severity: Major
      Found in assets/js/jscalendar/calendar.js - About 2 hrs to fix

        Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                init: function () {
                    if (!hs.container) {
        
                        hs.ieLt7 = hs.ie && hs.uaVersion < 7;
                        hs.ieLt9 = hs.ie && hs.uaVersion < 9;
        Severity: Major
        Found in assets/images/js/highslide/highslide-with-gallery.js - About 2 hrs to fix

          Method get_blockarray_new_event has 53 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public function get_blockarray_new_event($get_target = '', $num = 5)
                  {
                      // if( $get_target == '' ) $get_target = $_SERVER['SCRIPT_NAME'] ;
          
                      // tzoffset
          Severity: Major
          Found in class/APCal_xoops.php - About 2 hrs to fix

            Function custom has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                    custom: function (from, to, unit) {
                        this.startTime = (new Date()).getTime();
                        this.start = from;
                        this.end = to;
                        this.unit = unit;// || this.unit || "px";
            Severity: Minor
            Found in assets/images/js/highslide/highslide-full.js - About 2 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 close has a Cognitive Complexity of 16 (exceeds 5 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/images/js/highslide/highslide-full.js - About 2 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 custom has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                    custom: function (from, to, unit) {
                        this.startTime = (new Date()).getTime();
                        this.start = from;
                        this.end = to;
                        this.unit = unit;// || this.unit || "px";
            Severity: Minor
            Found in assets/images/js/highslide/highslide-with-html.js - About 2 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 custom has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                    custom: function (from, to, unit) {
                        this.startTime = (new Date()).getTime();
                        this.start = from;
                        this.end = to;
                        this.unit = unit;// || this.unit || "px";
            Severity: Minor
            Found in assets/images/js/highslide/highslide-with-gallery.js - About 2 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 afterExpand has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                    afterExpand: function () {
                        this.isExpanded = true;
                        this.focus();
            
                        if (this.isHtml && this.objectLoadTime == 'after') this.writeExtendedContent();
            Severity: Minor
            Found in assets/images/js/highslide/highslide-with-html.js - About 2 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 custom has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                    custom: function (from, to, unit) {
                        this.startTime = (new Date()).getTime();
                        this.start = from;
                        this.end = to;
                        this.unit = unit;// || this.unit || "px";
            Severity: Minor
            Found in assets/images/js/highslide/highslide.js - About 2 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 rebuild_cat_tree has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

            function rebuild_cat_tree($cat_table)
            {
                global $conn, $xoopsDB;
            
                $rs      = $GLOBALS['xoopsDB']->query("SELECT cid,pid FROM $cat_table ORDER BY pid ASC,weight DESC");
            Severity: Minor
            Found in admin/categories.php - About 2 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 get_blockarray_new_event has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                    public function get_blockarray_new_event($get_target = '', $num = 5)
                    {
                        // if( $get_target == '' ) $get_target = $_SERVER['SCRIPT_NAME'] ;
            
                        // tzoffset
            Severity: Minor
            Found in class/APCal_xoops.php - About 2 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 get_date_schedule has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                    public function get_date_schedule($get_target = '')
                    {
                        // if( $get_target == '' ) $get_target = $_SERVER['SCRIPT_NAME'] ;
            
                        $ret = '';
            Severity: Minor
            Found in class/APCal.php - About 2 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 HistogramOverlay has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                public function HistogramOverlay(
                    &$gdimg,
                    $bands = '*',
                    $colors = '',
                    $width = 0.25,
            Severity: Minor
            Found in thumbs/phpthumb.filters.php - About 2 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 get_monthly has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public function get_monthly($get_target = '', $query_string = '', $for_print = false)
                    {
                        // $PHP_SELF = $_SERVER['SCRIPT_NAME'] ;
                        // if( $get_target == '' ) $get_target = $PHP_SELF ;
            
            
            Severity: Major
            Found in class/APCal.php - About 2 hrs to fix

              Method GenerateThumbnail has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function GenerateThumbnail()
                  {
                      $this->setOutputFormat();
                      $this->phpThumbDebug('8a');
                      $this->ResolveSource();
              Severity: Major
              Found in thumbs/phpthumb.class.php - About 2 hrs to fix

                File onupdate.php has 252 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /*
                 * You may not change or alter any portion of this comment or credits
                 * of supporting developers from this source code or any supporting source code
                 * which is considered copyrighted (c) material of the original comment or credit authors.
                Severity: Minor
                Found in include/onupdate.php - About 2 hrs to fix

                  Function mouseClickHandler has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          mouseClickHandler: function (e) {
                              if (!e) e = window.event;
                              if (e.button > 1) return true;
                              if (!e.target) e.target = e.srcElement;
                  
                  
                  Severity: Major
                  Found in assets/images/js/highslide/highslide-with-gallery.js - About 2 hrs to fix

                    Function mouseClickHandler has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            mouseClickHandler: function (e) {
                                if (!e) e = window.event;
                                if (e.button > 1) return true;
                                if (!e.target) e.target = e.srcElement;
                    
                    
                    Severity: Major
                    Found in assets/images/js/highslide/highslide.js - About 2 hrs to fix
                      Severity
                      Category
                      Status
                      Source
                      Language