mambax7/extcal

View on GitHub

Showing 691 of 1,163 total issues

Method insert has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function insert(\XoopsObject $obj, $force = false, $checkObject = true)
    {
        if (false !== $checkObject) {
            if (!\is_object($obj)) {
                //                var_dump($obj);
Severity: Major
Found in class/ExtcalPersistableObjectHandler.php - About 2 hrs to fix

    Calendar_Engine_Interface has 24 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Calendar_Engine_Interface
    {
        /**
         * Provides a mechansim to make sure parsing of timestamps
         * into human dates is only performed once per timestamp.
    Severity: Minor
    Found in class/pear/Calendar/Engine/Interface.php - About 2 hrs to fix

      Calendar_Engine_UnixTS has 24 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Calendar_Engine_UnixTS /* implements Calendar_Engine_Interface */
      {
          /**
           * Makes sure a given timestamp is only ever parsed once
           * <pre>
      Severity: Minor
      Found in class/pear/Calendar/Engine/UnixTS.php - About 2 hrs to fix

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

                positionOverlay: function (overlay) {
                    var p = overlay.position || 'middle center',
                        relToVP = (overlay.relativeTo == 'viewport'),
                        offX = overlay.offsetX,
                        offY = overlay.offsetY;
        Severity: Major
        Found in assets/js/highslide-full.js - About 2 hrs to fix

          Function contentLoaded has 66 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  contentLoaded: function () {
                      try {
                          if (!this.content) return;
                          this.content.onload = null;
                          if (this.onLoadStarted) return;
          Severity: Major
          Found in assets/js/highslide-full.js - About 2 hrs to fix

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

                    positionOverlay: function (overlay) {
                        var p = overlay.position || 'middle center',
                            relToVP = (overlay.relativeTo == 'viewport'),
                            offX = overlay.offsetX,
                            offY = overlay.offsetY;
            Severity: Major
            Found in assets/js/highslide-with-gallery.js - About 2 hrs to fix

              Method PclTarHandleReadHeader has 65 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function PclTarHandleReadHeader($v_binary_data, &$v_header)
                  {
                      TrFctStart(__FILE__, __LINE__, 'PclTarHandleReadHeader', '');
                      $v_result = 1;
              
              
              Severity: Major
              Found in class/pcltar.lib.php - About 2 hrs to fix

                Function fade has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                Open

                        fade: function (up, to) {
                            this.outlineWhileAnimating = false;
                            var exp = this, t = up ? hs.expandDuration : 0;
                
                            if (up) {
                Severity: Minor
                Found in assets/js/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 fade has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                Open

                        fade: function (up, to) {
                            this.outlineWhileAnimating = false;
                            var exp = this, t = up ? hs.expandDuration : 0;
                
                            if (up) {
                Severity: Minor
                Found in assets/js/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 htmlCreate has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        htmlCreate: function () {
                            if (!hs.fireEvent(this, 'onBeforeGetContent')) return;
                
                            this.content = hs.getCacheBinding(this.a);
                            if (!this.content)
                Severity: Major
                Found in assets/js/highslide-full.js - About 2 hrs to fix

                  Method truncateHtml has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function truncateHtml($text, $length = 100, $ending = '...', $exact = false, $considerHtml = true)
                      {
                          if ($considerHtml) {
                              // if the plain text is shorter than the maximum length, return the whole text
                              if (mb_strlen(\preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
                  Severity: Major
                  Found in class/Common/SysUtility.php - About 2 hrs to fix

                    Function step has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    step: function (val, args) {
                                        var pos = args.pos,
                                            invPos = 1 - pos;
                                        var prop,
                                            size = {},
                    Severity: Major
                    Found in assets/js/highslide-full.js - About 2 hrs to fix

                      Function step has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                      step: function (val, args) {
                                          var pos = args.pos,
                                              invPos = 1 - pos;
                                          var prop,
                                              size = {},
                      Severity: Major
                      Found in assets/js/highslide-with-gallery.js - About 2 hrs to fix

                        Function afterExpand has a Cognitive Complexity of 18 (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/js/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 step has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                        Open

                                step: function (gotoEnd) {
                                    var t = (new Date()).getTime();
                                    if (gotoEnd || t >= this.options.duration + this.startTime) {
                                        this.now = this.end;
                                        this.pos = this.state = 1;
                        Severity: Minor
                        Found in assets/js/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 dragHandler has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                        Open

                                dragHandler: function (e) {
                                    if (!hs.dragArgs) return true;
                                    if (!e) e = window.event;
                                    var a = hs.dragArgs, exp = a.exp;
                        
                        
                        Severity: Minor
                        Found in assets/js/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 wrapperMouseHandler has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                        Open

                                wrapperMouseHandler: function (e) {
                                    try {
                                        if (!e) e = window.event;
                                        var over = /mouseover/i.test(e.type);
                                        if (!e.target) e.target = e.srcElement; // ie
                        Severity: Minor
                        Found in assets/js/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 step has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                        Open

                                step: function (gotoEnd) {
                                    var t = (new Date()).getTime();
                                    if (gotoEnd || t >= this.options.duration + this.startTime) {
                                        this.now = this.end;
                                        this.pos = this.state = 1;
                        Severity: Minor
                        Found in assets/js/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 step has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                        Open

                                step: function (gotoEnd) {
                                    var t = (new Date()).getTime();
                                    if (gotoEnd || t >= this.options.duration + this.startTime) {
                                        this.now = this.end;
                                        this.pos = this.state = 1;
                        Severity: Minor
                        Found in assets/js/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 wrapperMouseHandler has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                        Open

                                wrapperMouseHandler: function (e) {
                                    try {
                                        if (!e) e = window.event;
                                        var over = /mouseover/i.test(e.type);
                                        if (!e.target) e.target = e.srcElement; // ie
                        Severity: Minor
                        Found in assets/js/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

                        Severity
                        Category
                        Status
                        Source
                        Language