Showing 1,049 of 26,336 total issues
Function getInline
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function onGraphicLoad
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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++) {
Method apcal_coming_schedule_edit
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apcal_coming_schedule_edit($options)
{
global $xoopsDB, $xoopsConfig;
$moduleDirName = empty($options[0]) ? basename(dirname(__DIR__)) : $options[0];
Method apcal_map_show
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apcal_map_show($options)
{
global $xoopsConfig, $xoopsDB;
$original_level = error_reporting(E_ALL ^ E_NOTICE);
Method SafeExec
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function SafeExec($command)
{
static $AllowedExecFunctions = array();
if (empty($AllowedExecFunctions)) {
$AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
Method myblocksadmin_update_blockinstance
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$id,
$bside,
$bweight,
$bvisible,
$btitle,
Method get_sql_set
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_sql_set($event, $cols)
{
$ret = '';
foreach ($cols as $col => $types) {
Method ImageCopyResampleBicubic
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function ImageCopyResampleBicubic(
$dst_img,
$src_img,
$dst_x,
$dst_y,
Consider simplifying this complex logical expression. Open
Open
if (!hs.container) {
hs.ieLt7 = hs.ie && hs.uaVersion < 7;
hs.ieLt9 = hs.ie && hs.uaVersion < 9;
Consider simplifying this complex logical expression. Open
Open
if (!hs.container) {
hs.ieLt7 = hs.ie && hs.uaVersion < 7;
hs.ieLt9 = hs.ie && hs.uaVersion < 9;
Function dragHandler
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dragHandler: function (e) {
if (!hs.dragArgs) return true;
if (!e) e = window.event;
var a = hs.dragArgs, exp = a.exp;
if (exp.iframe) {
Method apcal_after_schedule_show_tpl
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apcal_after_schedule_show_tpl($options)
{
global $xoopsConfig, $xoopsDB;
$moduleDirName = empty($options[0]) ? basename(dirname(__DIR__)) : $options[0];
Method delete_regonline
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function delete_regonline($event_id)
{
//delete data from table apcal_ro_members
$sql = 'DELETE '
. XOOPS_DB_PREFIX
Method load
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function load($data, &$datLen)
{
$datLen = 0;
while (true) {
Method ApacheLookupURIarray
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
Method CleanUpURLencoding
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function CleanUpURLencoding($url, $queryseperator = '&')
{
if (!preg_match('#^http#i', $url)) {
return $url;
}
Function dragHandler
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dragHandler: function (e) {
if (!hs.dragArgs) return true;
if (!e) e = window.event;
var a = hs.dragArgs, exp = a.exp;
if (exp.iframe) {
Method apcal_after_schedule_edit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apcal_after_schedule_edit($options)
{
global $xoopsDB, $xoopsConfig;
$moduleDirName = empty($options[0]) ? basename(dirname(__DIR__)) : $options[0];
Method notify_new_event
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Method GD2BMPstring
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function GD2BMPstring(&$gd_image)
{
$imageX = imagesx($gd_image);
$imageY = imagesy($gd_image);