Showing 4,652 of 306,333 total issues
Function initEditView
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initEditView: function () {
function applyMoveChanges(roleid, parent_roleid) {
var params = {
module: 'Roles',
action: 'MoveAjax',
Function showWorkflowTriggerView
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showWorkflowTriggerView: function (instance) {
$(instance).popover('hide');
const detailInstance = Vtiger_Detail_Js.getInstance(),
callback = function (data) {
let treeInstance = data.find('#treeWorkflowContents');
Function fixXAxisLabels
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fixXAxisLabels: function fixXAxisLabels(chart) {
let shortenXTicks = function shortenXTicks(data, options) {
if (typeof options.scales === 'undefined') {
options.scales = {};
}
Function _undetermined
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this._undetermined = function () {
if (this.element === null) {
return;
}
var i,
File ModuleManager.php
has 300 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* ModuleManager test class.
*
* @package Tests
File CurrencyField.php
has 300 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/* +**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
File EventHandler.php
has 300 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace App;
/**
Method process
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(): string
{
$html = '';
$moduleName = $this->params[0];
if (!empty($textParserParams = $this->textParser->getParam('textParserParams')) && isset($textParserParams['userId'])
Method getConditions
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getConditions(\App\Db\Query $query, string $moduleName, $user = false, $relatedRecord = null)
{
if (!($user && $user instanceof \App\User)) {
$user = \App\User::getCurrentUserModel();
}
Settings_Roles_Record_Model
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_Roles_Record_Model extends Settings_Vtiger_Record_Model
{
/**
* Function to get the Id.
*
Settings_WidgetsManagement_Module_Model
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_WidgetsManagement_Module_Model extends Settings_Vtiger_Module_Model
{
/** {@inheritdoc} */
public $name = 'WidgetsManagement';
Function registerPaginationEvents
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPaginationEvents: function () {
const self = this;
this.container.find('.js-next-page').on('click', function () {
if ($(this).hasClass('disabled')) {
return;
Function registerFilter
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerFilter: function registerFilter() {
const container = this.getContainer();
const search = container.find('.listSearchContributor');
const refreshBtn = container.find('.js-widget-refresh');
const originalUrl = refreshBtn.data('url');
Method setSmtp
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setSmtp(): void
{
if (!$this->smtp) {
throw new \App\Exceptions\AppException('ERR_NO_SMTP_CONFIGURATION');
}
Method search
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function search(): array
{
if (!$this->isActive()) {
return [];
}
Method getLinks
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getLinks(): array
{
$parentRecordModel = $this->getParentRecordModel();
$relationModelInstance = $this->getRelationModel();
$relatedModuleModel = $relationModelInstance->getRelationModuleModel();
File Benchmarks.php
has 297 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Benchmarks file.
*
Function preSaveValidation
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
preSaveValidation: function (form) {
const aDeferred = $.Deferred();
if (form.find('#preSaveValidation').val()) {
document.progressLoader = $.progressIndicator({
message: app.vtranslate('JS_SAVE_LOADER_INFO'),
Function registerCacheEvents
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerCacheEvents: function (container) {
var thisInstance = this;
container.find('.showRecordsFromCache').on('change', (e) => {
const currentTarget = $(e.currentTarget),
moduleName = currentTarget.data('module');
Function edit
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.jstree.plugins.edit = function (options, parent) {
this.bind = function () {
parent.bind.call(this);
this.element.on(
'select_node.jstree',