mambax7/extcal

View on GitHub

Showing 1,163 of 1,163 total issues

Function sizeOverlayBox has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        sizeOverlayBox: function (doWrapper, doPanels) {
            var overlayBox = this.overlayBox,
                x = this.x,
                y = this.y;
            hs.setStyles(overlayBox, {
Severity: Minor
Found in assets/js/highslide-with-gallery.js - About 1 hr to fix

    Function Outline has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        hs.Outline = function (outlineType, onLoad) {
            this.onLoad = onLoad;
            this.outlineType = outlineType;
            var v = hs.uaVersion, tr;
    
    
    Severity: Minor
    Found in assets/js/highslide-with-gallery.js - About 1 hr to fix

      Function GetSwfVer has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function GetSwfVer() {
          // NS/Opera version >= 3 check for Flash plugin in plugin array
          var flashVer = -1;
      
          if (navigator.plugins != null && navigator.plugins.length > 0) {
      Severity: Minor
      Found in assets/js/AC_RunActiveContent.js - About 1 hr to fix

        Function sizeOverlayBox has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                sizeOverlayBox: function (doWrapper, doPanels) {
                    var overlayBox = this.overlayBox,
                        x = this.x,
                        y = this.y;
                    hs.setStyles(overlayBox, {
        Severity: Minor
        Found in assets/js/highslide.js - About 1 hr to fix

          Function Outline has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              hs.Outline = function (outlineType, onLoad) {
                  this.onLoad = onLoad;
                  this.outlineType = outlineType;
                  var v = hs.uaVersion, tr;
          
          
          Severity: Minor
          Found in assets/js/highslide.js - About 1 hr to fix

            Method bExtcalUpcomingEdit has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function justify has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      justify: function (p, moveOnly) {
                          var tgtArr, tgt = p.target, dim = p == this.x ? 'x' : 'y';
              
                          var hasMovedMin = false;
              
              
              Severity: Minor
              Found in assets/js/highslide.js - About 1 hr to fix

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                    public static function prevDayName($Calendar, $format = 'long')
                    {
                        $days  = self::weekdayNames($format);
                        $stamp = $Calendar->prevDay('timestamp');
                        $cE    = $Calendar->getEngine();
                Severity: Major
                Found in class/pear/Calendar/Util/Textual.php and 1 other location - About 1 hr to fix
                class/pear/Calendar/Util/Textual.php on lines 248..257

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 105.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                    public static function nextDayName($Calendar, $format = 'long')
                    {
                        $days  = self::weekdayNames($format);
                        $stamp = $Calendar->nextDay('timestamp');
                        $cE    = $Calendar->getEngine();
                Severity: Major
                Found in class/pear/Calendar/Util/Textual.php and 1 other location - About 1 hr to fix
                class/pear/Calendar/Util/Textual.php on lines 209..218

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 105.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Method loadTableFromArrayWithReplace has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function loadTableFromArrayWithReplace($table, $data, $search, $replace)
                {
                    /** @var \XoopsMySQLDatabase $db */
                    $db = \XoopsDatabaseFactory::getDatabaseConnection();
                
                
                Severity: Minor
                Found in testdata/index.php - About 1 hr to fix

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

                      public function __construct($values)
                      {
                          if (isset($values['rrule_freq'])) {
                              $this->_rrule_freq = $values['rrule_freq'];
                          }
                  Severity: Minor
                  Found in class/Form/FormRecurRules.php - About 1 hr to fix

                    Method xoops_module_install_extcal has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function xoops_module_install_extcal(\XoopsModule $xoopsModule)
                    {
                        require_once \dirname(__DIR__) . '/preloads/autoloader.php';
                    
                        $moduleDirName = \basename(\dirname(__DIR__));
                    Severity: Minor
                    Found in include/oninstall.php - About 1 hr to fix

                      Method PclTarDelete has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function PclTarDelete($p_tarname, $p_filelist, $p_mode = '')
                          {
                              TrFctStart(__FILE__, __LINE__, 'PclTarDelete', "tar='$p_tarname', list='$p_filelist', mode='$p_mode'");
                              $v_result = 1;
                      
                      
                      Severity: Minor
                      Found in class/pcltar.lib.php - About 1 hr to fix

                        Method PclTarExtractList has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function PclTarExtractList($p_tarname, $p_filelist, $p_path = './', $p_remove_path = '', $p_mode = '')
                            {
                                TrFctStart(__FILE__, __LINE__, 'PclTarExtractList', "tar=$p_tarname, list, path=$p_path, remove_path='$p_remove_path', mode='$p_mode'");
                                $v_result = 1;
                        
                        
                        Severity: Minor
                        Found in class/pcltar.lib.php - About 1 hr to fix

                          Method PclTarUpdate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method convertResultSet has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function convertResultSet($result, $idAsKey = false, $asObject = true)
                                {
                                    $ret = [];
                                    while (false !== ($myrow = $this->db->fetchArray($result))) {
                                        $obj = $this->create(false);
                            Severity: Minor
                            Found in class/ExtcalPersistableObjectHandler.php - About 1 hr to fix

                              Identical blocks of code found in 3 locations. Consider refactoring.
                              Open

                                          setTimeout(function () {
                                                  if (exp.loading) hs.setStyles(exp.loading, {left: l, top: t, zIndex: hs.zIndexCounter++})
                                              }
                                              , 100);
                              Severity: Major
                              Found in assets/js/highslide-with-gallery.js and 2 other locations - About 1 hr to fix
                              assets/js/highslide-full.js on lines 1495..1498
                              assets/js/highslide.js on lines 1099..1102

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 59.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Identical blocks of code found in 3 locations. Consider refactoring.
                              Open

                                          setTimeout(function () {
                                                  if (exp.loading) hs.setStyles(exp.loading, {left: l, top: t, zIndex: hs.zIndexCounter++})
                                              }
                                              , 100);
                              Severity: Major
                              Found in assets/js/highslide-full.js and 2 other locations - About 1 hr to fix
                              assets/js/highslide-with-gallery.js on lines 1295..1298
                              assets/js/highslide.js on lines 1099..1102

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 59.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Identical blocks of code found in 3 locations. Consider refactoring.
                              Open

                                          setTimeout(function () {
                                                  if (exp.loading) hs.setStyles(exp.loading, {left: l, top: t, zIndex: hs.zIndexCounter++})
                                              }
                                              , 100);
                              Severity: Major
                              Found in assets/js/highslide.js and 2 other locations - About 1 hr to fix
                              assets/js/highslide-full.js on lines 1495..1498
                              assets/js/highslide-with-gallery.js on lines 1295..1298

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 59.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Similar blocks of code found in 3 locations. Consider refactoring.
                              Open

                                              hs.hideIframes = ((window.opera && hs.uaVersion < 9) || navigator.vendor == 'KDE'
                                              || (hs.ieLt7 && hs.uaVersion < 5.5));
                              Severity: Major
                              Found in assets/js/highslide.js and 2 other locations - About 1 hr to fix
                              assets/js/highslide-full.js on lines 972..973
                              assets/js/highslide-with-gallery.js on lines 794..795

                              Duplicated Code

                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                              Tuning

                              This issue has a mass of 59.

                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                              Refactorings

                              Further Reading

                              Severity
                              Category
                              Status
                              Source
                              Language