Showing 668 of 850 total issues
Function refresh
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
refresh: function( val, isfromControl, preventInputUpdate ) {
// NOTE: we don't return here because we want to support programmatic
// alteration of the input value, which should still update the slider
var self = this,
Function _mouseDrag
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
_mouseDrag: function(event) {
//Compute the helpers position
this.position = this._generatePosition(event);
this.positionAbs = this._convertPositionTo("absolute");
Method spotDetails
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function spotDetails($outputtype)
{
if (empty($this->_params['messageid'])) {
$this->showApiError(200);
Function _create
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
_create: function() {
// TODO: Each of these should have comments explain what they're for
var self = this,
control = this.element,
SpotStruct_abs
has 35 functions (exceeds 20 allowed). Consider refactoring. Open
abstract class SpotStruct_abs
{
protected $_dbcon;
public function __construct(dbeng_abs $dbEng)
Method process
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function process($hdrList, $curArtNr, $increment, $timer)
{
$this->displayStatus('progress', $curArtNr.' till '.$increment);
$lastProcessedId = '';
File SpotStruct_mysql.php
has 347 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
class SpotStruct_mysql extends SpotStruct_abs
{
/*
Function tokenize
has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring. Open
public function tokenize($nowtag = [])
{
$curcnt = 0;
$tagcfg = null;
$contents[$curcnt] = $this->newcontent();
- 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 validateSettings
has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring. Open
public function validateSettings($settings)
{
$result = new Dto_FormResult();
// Define arrays with valid settings
- 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
Services_NzbHandler_abs
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
abstract class Services_NzbHandler_abs
{
protected $_name = 'Abstract';
protected $_nameShort = 'Abstract';
Dao_Base_Cache
has 33 functions (exceeds 20 allowed). Consider refactoring. Open
class Dao_Base_Cache implements Dao_Cache
{
private $_cachePath = '';
protected $_conn;
Method validateUserPreferences
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function validateUserPreferences($prefs, $currentPrefs)
{
$result = new Dto_FormResult();
// Define several arrays with valid settings
File editsettings.inc.php
has 337 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
require __DIR__.'/includes/header.inc.php';
require __DIR__.'/includes/form-messages.inc.php';
Function fetchSpotComments
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
public function fetchSpotComments($msgId, $prevMsgids, $userId, $start, $length)
{
/*
* Calculate the total amount of comments we want to retrieve
*/
- 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 parseParameters
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
private static function parseParameters($noopt = [])
{
$result = [];
if (!isset($GLOBALS['argv'])) {
return $result;
- 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
Services_NzbHandler_NZBVortex
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
class Services_NzbHandler_NZBVortex extends Services_NzbHandler_abs
{
private $_host = null;
private $_url = null;
private $_apikey = null;
Method updateExternalList
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateExternalList($newlist, $idtype)
{
$updatelist = [];
$updskipped = 0;
$countnewlistspotterid = 0;
Function openDialog
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
function openDialog(divid, title, url, buttonClick, successAction, closeCb, openCb) {
var $dialdiv = $("#" + divid);
/*
* Test whether we need to 'dialog'-ify the
- 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 filtersToXml
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
public function filtersToXml($filterList)
{
$svcSearchQP = new Services_Search_QueryParser($this->_daoFactory->getConnection());
// create the XML document
- 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 prepareFilterValues
has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring. Open
private function prepareFilterValues($search)
{
SpotTiming::start(__CLASS__.'::'.__FUNCTION__);
$filterValueList = [];
- 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"