XoopsModules25x/apcal

View on GitHub

Showing 1,049 of 26,336 total issues

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

        public function get_weekly($get_target = '', $query_string = '', $for_print = false)
        {
            // $PHP_SELF = $_SERVER['SCRIPT_NAME'] ;
            // if( $get_target == '' ) $get_target = $PHP_SELF ;

Severity: Minor
Found in class/APCal.php - About 1 hr to fix

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

        public function Crop(&$gdimg, $left = 0, $right = 0, $top = 0, $bottom = 0)
        {
            if (!$left && !$right && !$top && !$bottom) {
                return true;
            }
    Severity: Minor
    Found in thumbs/phpthumb.filters.php - About 1 hr to fix

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

              public function savepictures($event_id)
              {
                  xoops_load('xoopsmediauploader');
                  $uploader = new XoopsMediaUploader(XOOPS_UPLOAD_PATH . '/apcal', array(
                      'image/gif',
      Severity: Minor
      Found in class/APCal.php - About 1 hr to fix

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

            public static function EnsureDirectoryExists($dirname)
            {
                $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
                $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
                $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
        Severity: Minor
        Found in thumbs/phpthumb.functions.php - About 1 hr to fix

          Function writeExtendedContent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  writeExtendedContent: function () {
                      if (this.hasExtendedContent) return;
                      var exp = this;
                      this.body = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body');
                      if (this.objectType == 'iframe') {
          Severity: Minor
          Found in assets/images/js/highslide/highslide-full.js - About 1 hr to fix

            Function close has 29 lines of code (exceeds 25 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-with-gallery.js - About 1 hr to fix

              Function writeExtendedContent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      writeExtendedContent: function () {
                          if (this.hasExtendedContent) return;
                          var exp = this;
                          this.body = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body');
                          if (this.objectType == 'iframe') {
              Severity: Minor
              Found in assets/images/js/highslide/highslide-with-html.js - About 1 hr to fix

                Method _compareseq has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function _compareseq($xoff, $xlim, $yoff, $ylim)
                    {
                        /* Slide down the bottom initial diagonal. */
                        while ($xoff < $xlim && $yoff < $ylim && $this->xv[$xoff] == $this->yv[$yoff]) {
                            ++$xoff;
                Severity: Minor
                Found in include/Text_Diff.php - About 1 hr to fix

                  Method import_ics_via_fopen has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          public function import_ics_via_fopen($uri, $force_http = true, $user_uri = '')
                          {
                              if (strlen($uri) < 5) {
                                  return '-1:';
                              }
                  Severity: Minor
                  Found in class/APCal.php - About 1 hr to fix

                    Method import_ics_via_fopen has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            public function import_ics_via_fopen($uri, $force_http = true, $user_uri = '')
                            {
                                $user_uri = empty($user_uri) ? '' : $uri;
                                // changing webcal://* to http://*
                                $uri = str_replace('webcal://', 'http://', $uri);
                    Severity: Minor
                    Found in class/APCal_xoops.php - About 1 hr to fix

                      Method apcal_new_event_edit has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function apcal_new_event_edit($options)
                          {
                              global $xoopsDB, $xoopsConfig;
                      
                              $moduleDirName = empty($options[0]) ? basename(dirname(__DIR__)) : $options[0];
                      Severity: Minor
                      Found in blocks/apcal_new_event.php - About 1 hr to fix

                        Method HistogramOverlay has 9 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                &$gdimg,
                                $bands = '*',
                                $colors = '',
                                $width = 0.25,
                                $height = 0.25,
                        Severity: Major
                        Found in thumbs/phpthumb.filters.php - About 1 hr to fix

                          Method ImageCopyRespectAlpha has 9 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  &$dst_im,
                                  &$src_im,
                                  $dst_x,
                                  $dst_y,
                                  $src_x,
                          Severity: Major
                          Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                            Function dayMouseDown has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            Calendar.dayMouseDown = function (ev) {
                                var el = Calendar.getElement(ev);
                                if (el.disabled) {
                                    return false;
                                }
                            Severity: Minor
                            Found in assets/js/jscalendar/calendar.js - About 1 hr to fix

                              Function setSize has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      setSize: function (i) {
                                          var exp = this.exp;
                                          if (exp.isImage && (exp.useBox || hs.padToMinWidth)) {
                                              this.imgSize = i;
                                              this.size = Math.max(this.size, this.imgSize);
                              Severity: Minor
                              Found in assets/images/js/highslide/highslide-full.js - About 1 hr to fix

                                Function initSlideshow has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        initSlideshow: function () {
                                            if (!this.last) {
                                                for (var i = 0; i < hs.slideshows.length; i++) {
                                                    var ss = hs.slideshows[i], sg = ss.slideshowGroup;
                                                    if (typeof sg == 'undefined' || sg === null || sg === this.slideshowGroup)
                                Severity: Minor
                                Found in assets/images/js/highslide/highslide-full.js - About 1 hr to fix

                                  Function initSlideshow has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          initSlideshow: function () {
                                              if (!this.last) {
                                                  for (var i = 0; i < hs.slideshows.length; i++) {
                                                      var ss = hs.slideshows[i], sg = ss.slideshowGroup;
                                                      if (typeof sg == 'undefined' || sg === null || sg === this.slideshowGroup)
                                  Severity: Minor
                                  Found in assets/images/js/highslide/highslide-with-gallery.js - About 1 hr to fix

                                    Method getParsedTemplate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            public function getParsedTemplate($name = '')
                                            {
                                                $name = strtoupper($name);
                                    
                                                //  if a name was given, parse only this template
                                    Severity: Minor
                                    Found in include/patTemplate.php - About 1 hr to fix

                                      Method delete_schedule has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              public function delete_schedule($whr_sql_append = '', $eval_after = null)
                                              {
                                                  if (!empty($_POST['event_id'])) {
                                                      $event_id = (int)$_POST['event_id'];
                                      
                                      
                                      Severity: Minor
                                      Found in class/APCal.php - About 1 hr to fix

                                        Method b_sitemap_APCal_base has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function b_sitemap_APCal_base($moduleDirName)
                                            {
                                                global $xoopsConfig, $xoopsDB, $xoopsUser;
                                                $myts = MyTextSanitizer::getInstance();
                                        
                                        
                                        Severity: Minor
                                        Found in include/sitemap.plugin.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language