mambax7/extcal

View on GitHub

Showing 1,163 of 1,163 total issues

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

    public function __construct()
    {
        $this->initVar('event_id', \XOBJ_DTYPE_INT, null, false);
        $this->initVar('cat_id', \XOBJ_DTYPE_INT, null, true);
        $this->initVar('event_title', \XOBJ_DTYPE_TXTBOX, null, true, 255);
Severity: Minor
Found in class/Event.php - About 1 hr to fix

    Method addDate2 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function addDate2($date, $number, $interval = 'd')
        {
            $date_time_array = \getdate($date);
            $hours           = $date_time_array['hours'];
            $minutes         = $date_time_array['minutes'];
    Severity: Minor
    Found in class/Utility.php - About 1 hr to fix

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

        Function dim has 36 lines of code (exceeds 25 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

          Function getInline has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  getInline: function (types, addOverlay) {
                      for (var i = 0; i < types.length; i++) {
                          var type = types[i], s = null;
                          if (!this[type + 'Id'] && this.thumbsUserSetId)
                              this[type + 'Id'] = type + '-for-' + this.thumbsUserSetId;
          Severity: Minor
          Found in assets/js/highslide-with-gallery.js - About 1 hr to fix

            Method PclTarHandleCreate has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function PclTarHandleCreate($p_tarname, $p_list, $p_mode, $p_add_dir = '', $p_remove_dir = '')
                {
                    TrFctStart(__FILE__, __LINE__, 'PclTarHandleCreate', "tar=$p_tarname, list, mode=$p_mode, add_dir='$p_add_dir', remove_dir='$p_remove_dir'");
                    $v_result      = 1;
                    $v_list_detail = [];
            Severity: Minor
            Found in class/pcltar.lib.php - About 1 hr to fix

              Method TrFctEnd has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function TrFctEnd($p_file, $p_line, $p_return = 1, $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

                Function getPageSize has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                        getPageSize: function () {
                            var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat'
                                    ? d.documentElement : d.body,
                                ieLt9 = hs.ie && (hs.uaVersion < 9 || typeof pageXOffset == 'undefined');
                
                
                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 afterClose has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                        afterClose: function () {
                            this.a.className = this.a.className.replace('highslide-active-anchor', '');
                
                            this.doShowHide('visible');
                
                
                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 getPageSize has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                        getPageSize: function () {
                            var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat'
                                    ? d.documentElement : d.body,
                                ieLt9 = hs.ie && (hs.uaVersion < 9 || typeof pageXOffset == 'undefined');
                
                
                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 fitOverlayBox has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                        fitOverlayBox: function (ratio, changed) {
                            var x = this.x, y = this.y;
                            if (this.overlayBox && (this.isImage || this.allowHeightReduction)) {
                                while (y.size > this.minHeight && x.size > this.minWidth
                                && y.get('wsize') > y.get('fitsize')) {
                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 init has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                        init: function () {
                            if (!hs.container) {
                
                                hs.ieLt7 = hs.ie && hs.uaVersion < 7;
                                hs.ieLt9 = hs.ie && hs.uaVersion < 9;
                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 close has a Cognitive Complexity of 12 (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/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 getPageSize has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                        getPageSize: function () {
                            var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat'
                                    ? d.documentElement : d.body,
                                ieLt9 = hs.ie && (hs.uaVersion < 9 || typeof pageXOffset == 'undefined');
                
                
                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 12 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function setSelection($sDates)
                    {
                        foreach ($sDates as $sDate) {
                            if ($this->year == $sDate->thisYear() && $this->month == $sDate->thisMonth()) {
                                $key = $sDate->thisDay();
                Severity: Minor
                Found in class/pear/Calendar/Month.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 getEventsRecurents has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function getEventsRecurents($criteres)
                    {
                        //        while (list($k, $v) = each($criteres)) {
                        foreach ($criteres as $k => $v) {
                            ${$k} = $v;
                Severity: Minor
                Found in class/EventHandler.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 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-full.js - About 1 hr to fix

                  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-with-gallery.js - About 1 hr to fix

                    Function getInline has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            getInline: function (types, addOverlay) {
                                for (var i = 0; i < types.length; i++) {
                                    var type = types[i], s = null;
                                    if (!this[type + 'Id'] && this.thumbsUserSetId)
                                        this[type + 'Id'] = type + '-for-' + this.thumbsUserSetId;
                    Severity: Minor
                    Found in assets/js/highslide.js - About 1 hr to fix

                      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
                        Severity
                        Category
                        Status
                        Source
                        Language