Showing 702 of 1,100 total issues
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 ImageTypeToMIMEtype
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function ImageTypeToMIMEtype($imagetype)
{
if (function_exists('image_type_to_mime_type') && ($imagetype >= 1) && ($imagetype <= 18)) {
// PHP v4.3.0+
return image_type_to_mime_type($imagetype);
Function getAjax
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAjax: function(item) {
if(_ajaxCur) {
$(document.body).addClass(_ajaxCur);
}
Function TCGenerateMac
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TCGenerateMac() {
var s = '';
var c = 0, n = 1;
var r, g, b;
for (j = 0; j < 15; j++) {
Function updateItemHTML
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateItemHTML: function() {
var item = mfp.items[mfp.index];
// Detach and perform modifications
mfp.contentContainer.detach();
Method output_animal
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function output_animal($ind, $gen, $class)
{
global $depth, $IDs, $fathers, $mothers, $nl;
if ($gen > $depth) {
return 0;
Method getRange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRange($degrees = 2)
{
if (0 == $degrees) {
$degrees = 1;
}
Method deInterlace
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function deInterlace()
{
$data = $this->m_data;
$s = 0;
$y = 0;
Method lettersChoice
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function lettersChoice($myObject, $activeObject, $criteria, $name, $link, $link2 = null)
{
/*
$pedigree = Helper::getInstance();
xoops_load('XoopsLocal');
Method RenderToFile
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function RenderToFile($filename)
{
if (preg_match('#^[a-z0-9]+://#i', $filename)) {
$this->DebugMessage('RenderToFile() failed because $filename (' . $filename . ') is a URL', __FILE__, __LINE__);
return false;
Method updateBlock
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function updateBlock($bid, $btitle, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options, $groups)
Method HistogramOverlay
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function HistogramOverlay(&$gdimg, $bands = '*', $colors = '', $width = 0.25, $height = 0.25, $alignment = 'BR', $opacity = 50, $margin_x = 5, $margin_y = null)
Method ImageCopyRespectAlpha
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function ImageCopyRespectAlpha(&$dst_im, &$src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $opacity_pct = 100)
Method FixedAspectRatio
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function FixedAspectRatio()
{
// optional fixed-dimension images (regardless of aspect ratio)
if (!$this->far) {
Method getServerStats
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getServerStats(): string
{
$moduleDirName = \basename(\dirname(__DIR__, 2));
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
\xoops_loadLanguage('common', $moduleDirName);
Method ImageMagickSwitchAvailable
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ImageMagickSwitchAvailable($switchname)
{
static $IMoptions = null;
if (null === $IMoptions) {
$IMoptions = [];
Method RenderToFile
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function RenderToFile($filename)
{
if (preg_match('#^[a-z0-9]+://#i', $filename)) {
$this->DebugMessage('RenderToFile() failed because $filename (' . $filename . ') is a URL', __FILE__, __LINE__);
Method lookupmove
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lookupmove($field, $id, $move)
{
//find next id
$sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_lookup' . $field) . ' ORDER BY `order`';
$result = $GLOBALS['xoopsDB']->query($sql);
Method ImageMagickVersion
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ImageMagickVersion($returnRAW = false)
{
static $versionstring = null;
if (null === $versionstring) {
$versionstring = [0 => false, 1 => false];
Method ImageMagickSwitchAvailable
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function ImageMagickSwitchAvailable($switchname)
{
static $IMoptions = null;
if (null === $IMoptions) {
$IMoptions = [];