Showing 355 of 3,032 total issues
Function easeOutExpo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutExpo: function (x, t, b, c, d) {
Function easeInElastic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInElastic: function (x, t, b, c, d) {
Function easeInCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInCirc: function (x, t, b, c, d) {
Function easeInOutCubic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutCubic: function (x, t, b, c, d) {
Function easeInSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInSine: function (x, t, b, c, d) {
Function easeInOutExpo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutExpo: function (x, t, b, c, d) {
Function easeOutCubic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutCubic: function (x, t, b, c, d) {
Function easeInQuint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInQuint: function (x, t, b, c, d) {
Function easeOutSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutSine: function (x, t, b, c, d) {
Function easeInOutQuart
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutQuart: function (x, t, b, c, d) {
Function easeInOutSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutSine: function (x, t, b, c, d) {
Function easeInOutQuad
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutQuad: function (x, t, b, c, d) {
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct(array $hiddens, string $action, string $object, string $title = '', string $label = '')
Method openCollapsableBar
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function openCollapsableBar($tablename = '', $iconname = '', $tabletitle = '', $tabledsc = '', $open = true): void
Method truncateHtml
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
string $text,
?int $length = 100,
string $ending = '...',
bool $exact = false,
bool $considerHtml = true
Method createCategorySelect
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public static function createCategorySelect($selectedId = 0, $parentcategory = 0, $allCatOption = true, $selectname = 'options[1]', $multiple = true)
Method checkRight
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
public function checkRight($gpermName, $gpermItemId, $gpermGroupId, $gpermModId = 1, $trueifadmin = true) //checkRight($gpermName, $gpermItemId, $gpermGroupId, $gpermModId = 1)
Function publisher_pagewrap_upload
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function publisher_pagewrap_upload(&$errors)
{
// require_once PUBLISHER_ROOT_PATH . '/class/uploader.php';
xoops_load('XoopsMediaUploader');
- 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 myXMLHttpRequest
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function myXMLHttpRequest() {
var xmlhttplocal;
try {
xmlhttplocal = new ActiveXObject("Msxml2.XMLHTTP")
} catch (e) {
- 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 loadSampleData
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function loadSampleData(): void
{
global $xoopsConfig;
$moduleDirName = \basename(\dirname(__DIR__));
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
- 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"