Showing 4,652 of 306,333 total issues
Method transformInventoryFieldFromMap
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function transformInventoryFieldFromMap($value, $mapData)
{
if (!empty($value)) {
if ($this->currentInventoryRawData['name']) {
[$entityName] = $this->transformInventoryReference($this->currentInventoryRawData['name'], true);
Method get
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get(): array
{
$rawData = $this->recordModel->getData();
$displayData = $fieldsLabel = [];
foreach ($this->recordModel->getModule()->getFields() as $fieldModel) {
Method getColumnNames
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getColumnNames(): array
{
$headers = [];
$selectedColumnsList = [];
if ($cvId = $this->controller->request->getHeader('x-cv-id')) {
Method put
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function put()
{
$request = $this->controller->request;
$paymentSystem = $request->getByType('payment_system', 'Alnum');
if (!\App\Fields\Picklist::isExists('payment_system', $paymentSystem)) {
Function registerRecordPreSaveEvent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerRecordPreSaveEvent: function (form) {
let thisInstance = this;
form.on(Vtiger_Edit_Js.recordPreSave, function (e, data) {
let record = jQuery('input[name="record"]').val();
let progressIndicatorElement = jQuery.progressIndicator({
Function restoreUser
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
restoreUser: function (userId, e) {
e.stopPropagation();
app.showConfirmModal({
title: app.vtranslate('JS_RESTORE_CONFIRMATION'),
confirmedCallback: () => {
Function addCustomField
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addCustomField: function (blockId, form) {
var modalHeader = form.closest('#' + Window.lastModalId).find('.modal-header h3');
var aDeferred = $.Deferred();
modalHeader.progressIndicator({
Function deleteModule
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
deleteModule: function (container) {
const self = this;
container.on('click', '.deleteModule', function () {
let forModule = $(this).attr('name');
app.showConfirmModal({
Function confirmedCallback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
confirmedCallback: () => {
let params = {};
params['module'] = app.getModuleName();
params['parent'] = app.getParentModuleName();
params['action'] = 'MassDelete';
Function initDataTable
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initDataTable(data, columns) {
return this.container.find('.js-data-table').dataTable({
searching: false,
processing: false,
scrollX: true,
Function regiserChangeRolePermissions
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
regiserChangeRolePermissions() {
this.picklistDataContainer.on('click', '.js-role-order', (e) => {
let progressIndicatorElement = this.getProgressIndicator(this.container.find('.tab-content'));
let disabledValues = [],
enabledValues = [];
Function registerSubmitForm
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitForm: function (form) {
form.on('submit', function (e) {
e.preventDefault();
if (form.validationEngine('validate') === true) {
let formData = new FormData(form[0]);
Function registerEvents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEvents() {
const container = $('.js-watchdog-container');
container.find('.js-vars').on('change', function (e) {
let field = $(this);
AppConnector.request({
Function addKey
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addKey: function (e) {
var container = jQuery('#DavKeysContainer');
var editColorModal = container.find('.addKeyContainer');
var clonedContainer = editColorModal.clone(true, true);
var callBackFunction = function (data) {
Function registerSaveEvent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSaveEvent: function (mode, data) {
let progress = $.progressIndicator({
message: app.vtranslate('Saving changes'),
position: 'html',
blockInfo: {
Function registerSubmitEvent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitEvent: function () {
let form = this.getForm();
form.on('submit', (e) => {
if (form.data('submit') == 'true' && form.data('performCheck') == 'true') {
document.progressLoader = $.progressIndicator({
Function confirmedCallback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
confirmedCallback: () => {
let recordList = $('.mass-selector:checked', container)
.map((idx, selector) => {
return $(selector).data('id');
})
Function registerTableEvents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerTableEvents: function (container) {
var thisInstance = this;
container.find('.edit').on('click', function (e) {
var currentTarget = $(e.currentTarget);
var progress = jQuery.progressIndicator();
Function registerPinShortCutEvent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPinShortCutEvent: function (element) {
const id = element.data('id');
const url =
'index.php?module=Vtiger&parent=Settings&action=Basic&mode=updateFieldPinnedStatus&pin=true&fieldid=' + id;
const progressIndicatorElement = $.progressIndicator({
Function registerUploadButton
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerUploadButton: function (form) {
form.on('submit', function (e) {
e.preventDefault();
if (form.validationEngine('validate') === true) {
let formData = new FormData(form[0]),