Showing 1,049 of 26,336 total issues
Method ImageMagickCommandlineBase
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function ImageMagickCommandlineBase()
{
static $commandline = null;
if (is_null($commandline)) {
if ($this->issafemode) {
Method apcal_mini_calendar_show
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
function apcal_mini_calendar_show($options)
{
global $xoopsConfig, $xoopsDB, $xoopsUser;
$moduleDirName = empty($options[0]) ? basename(dirname(__DIR__)) : $options[0];
Function contentLoaded
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
contentLoaded: function () {
try {
if (!this.content) return;
this.content.onload = null;
if (this.onLoadStarted) return;
Function positionOverlay
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
positionOverlay: function (overlay) {
var p = overlay.position || 'middle center',
relToVP = (overlay.relativeTo == 'viewport'),
offX = overlay.offsetX,
offY = overlay.offsetY;
Function positionOverlay
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
positionOverlay: function (overlay) {
var p = overlay.position || 'middle center',
relToVP = (overlay.relativeTo == 'viewport'),
offX = overlay.offsetX,
offY = overlay.offsetY;
Method DropShadow
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function DropShadow(&$gdimg, $distance, $width, $hexcolor, $angle, $alpha)
{
if (phpthumb_functions::gd_version() < 2) {
return false;
}
Method myblocksadmin_update_block
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
function myblocksadmin_update_block(
$bid,
$bside,
$bweight,
$bvisible,
Method _shiftBoundaries
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function _shiftBoundaries($lines, &$changed, $other_changed)
{
$i = 0;
$j = 0;
Function fade
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
fade: function (up, to) {
this.outlineWhileAnimating = false;
var exp = this, t = up ? hs.expandDuration : 0;
if (up) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function fade
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
fade: function (up, to) {
this.outlineWhileAnimating = false;
var exp = this, t = up ? hs.expandDuration : 0;
if (up) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function ApplyMask
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public function ApplyMask(&$gdimg_mask, &$gdimg_image)
{
if (phpthumb_functions::gd_version() < 2) {
$this->DebugMessage('Skipping ApplyMask() because gd_version is "' . phpthumb_functions::gd_version() . '"', __FILE__, __LINE__);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method _diag
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function _diag($xoff, $xlim, $yoff, $ylim, $nchunks)
{
$flip = false;
if ($xlim - $xoff > $ylim - $yoff) {
Function changeSize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
changeSize: function (up, to, dur) {
if (this.outline && !this.outlineWhileAnimating) {
if (up) this.outline.setPosition();
else this.outline.destroy(
Method get_coming_schedule
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function get_coming_schedule($get_target = '', $num = 5)
{
// if( $get_target == '' ) $get_target = $_SERVER['SCRIPT_NAME'] ;
$ret = '';
Method RedirectToCachedFile
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
function RedirectToCachedFile()
{
global $phpThumb;
$nice_cachefile = str_replace(DIRECTORY_SEPARATOR, '/', $phpThumb->cache_filename);
Method HistogramStretch
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function HistogramStretch(&$gdimg, $band = '*', $method = 0, $threshold = 0.1)
{
// equivalent of "Auto Contrast" in Adobe Photoshop
// method 0 stretches according to RGB colors. Gives a more conservative stretch.
// method 1 band stretches according to grayscale which is color-biased (59% green, 30% red, 11% blue). May give a punchier / more aggressive stretch, possibly appearing over-saturated
Function htmlCreate
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
htmlCreate: function () {
if (!hs.fireEvent(this, 'onBeforeGetContent')) return;
this.content = hs.getCacheBinding(this.a);
if (!this.content)
Method MaxFileSize
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function MaxFileSize()
{
if (phpthumb_functions::gd_version() < 2) {
$this->DebugMessage('Skipping MaxFileSize() because gd_version is "' . phpthumb_functions::gd_version() . '"', __FILE__, __LINE__);
Function step
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
step: function (val, args) {
var pos = args.pos,
invPos = 1 - pos;
var prop,
size = {},
Function step
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
step: function (val, args) {
var pos = args.pos,
invPos = 1 - pos;
var prop,
size = {},