Showing 1,049 of 26,336 total issues
Method get_weekly
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_weekly($get_target = '', $query_string = '', $for_print = false)
{
// $PHP_SELF = $_SERVER['SCRIPT_NAME'] ;
// if( $get_target == '' ) $get_target = $PHP_SELF ;
Method Crop
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function Crop(&$gdimg, $left = 0, $right = 0, $top = 0, $bottom = 0)
{
if (!$left && !$right && !$top && !$bottom) {
return true;
}
Method savepictures
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function savepictures($event_id)
{
xoops_load('xoopsmediauploader');
$uploader = new XoopsMediaUploader(XOOPS_UPLOAD_PATH . '/apcal', array(
'image/gif',
Method EnsureDirectoryExists
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'));
Function writeExtendedContent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
writeExtendedContent: function () {
if (this.hasExtendedContent) return;
var exp = this;
this.body = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body');
if (this.objectType == 'iframe') {
Function close
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
close: function () {
if (this.isClosing || !this.isExpanded) return;
if (this.transitions[1] == 'crossfade' && hs.upcoming) {
hs.getExpander(hs.upcoming).cancelLoading();
hs.upcoming = null;
Function writeExtendedContent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
writeExtendedContent: function () {
if (this.hasExtendedContent) return;
var exp = this;
this.body = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body');
if (this.objectType == 'iframe') {
Method _compareseq
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Method import_ics_via_fopen
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function import_ics_via_fopen($uri, $force_http = true, $user_uri = '')
{
if (strlen($uri) < 5) {
return '-1:';
}
Method import_ics_via_fopen
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Method apcal_new_event_edit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function apcal_new_event_edit($options)
{
global $xoopsDB, $xoopsConfig;
$moduleDirName = empty($options[0]) ? basename(dirname(__DIR__)) : $options[0];
Method HistogramOverlay
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
&$gdimg,
$bands = '*',
$colors = '',
$width = 0.25,
$height = 0.25,
Method ImageCopyRespectAlpha
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
&$dst_im,
&$src_im,
$dst_x,
$dst_y,
$src_x,
Function dayMouseDown
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Calendar.dayMouseDown = function (ev) {
var el = Calendar.getElement(ev);
if (el.disabled) {
return false;
}
Function setSize
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Function initSlideshow
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)
Function initSlideshow
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)
Method getParsedTemplate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getParsedTemplate($name = '')
{
$name = strtoupper($name);
// if a name was given, parse only this template
Method delete_schedule
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function delete_schedule($whr_sql_append = '', $eval_after = null)
{
if (!empty($_POST['event_id'])) {
$event_id = (int)$_POST['event_id'];
Method b_sitemap_APCal_base
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function b_sitemap_APCal_base($moduleDirName)
{
global $xoopsConfig, $xoopsDB, $xoopsUser;
$myts = MyTextSanitizer::getInstance();