XoopsModules25x/apcal

View on GitHub

Showing 1,049 of 26,336 total issues

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/images/js/highslide/highslide-with-html.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/images/js/highslide/highslide-with-html.js - About 1 hr to fix

      Method apcal_coming_schedule_edit has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

        Method apcal_map_show has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function apcal_map_show($options)
            {
                global $xoopsConfig, $xoopsDB;
        
                $original_level = error_reporting(E_ALL ^ E_NOTICE);
        Severity: Minor
        Found in blocks/apcal_map.php - About 1 hr to fix

          Method SafeExec has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public static function SafeExec($command)
              {
                  static $AllowedExecFunctions = array();
                  if (empty($AllowedExecFunctions)) {
                      $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
          Severity: Minor
          Found in thumbs/phpthumb.functions.php - About 1 hr to fix

            Method myblocksadmin_update_blockinstance has 11 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                $id,
                $bside,
                $bweight,
                $bvisible,
                $btitle,
            Severity: Major
            Found in include/blocksadmin.inc.php - About 1 hr to fix

              Method get_sql_set has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function get_sql_set($event, $cols)
                  {
                      $ret = '';
              
                      foreach ($cols as $col => $types) {
              Severity: Minor
              Found in class/iCal_parser.php - About 1 hr to fix

                Method ImageCopyResampleBicubic has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function ImageCopyResampleBicubic(
                        $dst_img,
                        $src_img,
                        $dst_x,
                        $dst_y,
                Severity: Minor
                Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

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

                    Consider simplifying this complex logical expression.
                    Open

                                if (!hs.container) {
                    
                                    hs.ieLt7 = hs.ie && hs.uaVersion < 7;
                                    hs.ieLt9 = hs.ie && hs.uaVersion < 9;
                    
                    
                    Severity: Critical
                    Found in assets/images/js/highslide/highslide-with-html.js - About 1 hr to fix

                      Function dragHandler has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              dragHandler: function (e) {
                                  if (!hs.dragArgs) return true;
                                  if (!e) e = window.event;
                                  var a = hs.dragArgs, exp = a.exp;
                                  if (exp.iframe) {
                      Severity: Minor
                      Found in assets/images/js/highslide/highslide-full.js - About 1 hr to fix

                        Method apcal_after_schedule_show_tpl has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method delete_regonline has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  public function delete_regonline($event_id)
                                  {
                                      //delete data from table apcal_ro_members
                                      $sql = 'DELETE '
                                             . XOOPS_DB_PREFIX
                          Severity: Minor
                          Found in class/APCal.php - About 1 hr to fix

                            Method load has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function load($data, &$datLen)
                                {
                                    $datLen = 0;
                            
                                    while (true) {
                            Severity: Minor
                            Found in thumbs/phpthumb.gif.php - About 1 hr to fix

                              Method ApacheLookupURIarray has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function ApacheLookupURIarray($filename)
                                  {
                                      // apache_lookup_uri() only works when PHP is installed as an Apache module.
                                      if (php_sapi_name() == 'apache') {
                                          //$property_exists_exists = function_exists('property_exists');
                              Severity: Minor
                              Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                                Method CleanUpURLencoding has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static function CleanUpURLencoding($url, $queryseperator = '&')
                                    {
                                        if (!preg_match('#^http#i', $url)) {
                                            return $url;
                                        }
                                Severity: Minor
                                Found in thumbs/phpthumb.functions.php - About 1 hr to fix

                                  Function dragHandler has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          dragHandler: function (e) {
                                              if (!hs.dragArgs) return true;
                                              if (!e) e = window.event;
                                              var a = hs.dragArgs, exp = a.exp;
                                              if (exp.iframe) {
                                  Severity: Minor
                                  Found in assets/images/js/highslide/highslide-with-html.js - About 1 hr to fix

                                    Method apcal_after_schedule_edit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Method notify_new_event has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              public function notify_new_event($event_id)
                                              {
                                                  $rs    = $GLOBALS['xoopsDB']->query("SELECT summary,admission,categories,class,uid,groupid FROM $this->table WHERE id='$event_id'");
                                                  $event = $GLOBALS['xoopsDB']->fetchObject($rs);
                                      
                                      
                                      Severity: Minor
                                      Found in class/APCal_xoops.php - About 1 hr to fix

                                        Method GD2BMPstring has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function GD2BMPstring(&$gd_image)
                                            {
                                                $imageX = imagesx($gd_image);
                                                $imageY = imagesy($gd_image);
                                        
                                        
                                        Severity: Minor
                                        Found in thumbs/phpthumb.bmp.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language