Showing 4,652 of 306,333 total issues
Method getStructure
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStructure()
{
if (!empty($this->structuredValues)) {
return $this->structuredValues;
}
Method process
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
if ($request->isAjax()) {
Method preProcess
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function preProcess(App\Request $request, $display = true)
{
parent::preProcess($request, false);
$moduleName = $request->getModule();
Method getHeaderButtons
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHeaderButtons(): array
{
$links = [];
$moduleName = is_numeric($this->Data['relatedmodule']) ? App\Module::getModuleName($this->Data['relatedmodule']) : $this->Data['relatedmodule'];
if (\App\Privilege::isPermitted($moduleName, 'CreateView')) {
Method process
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request, $widget = null)
{
$currentUser = Users_Record_Model::getCurrentUserModel();
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
Method process
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process()
{
\App\Log::trace('Start cron CardDAV');
if(!\App\YetiForce\Shop::check('YetiForceDav')){
$this->logs = \App\YetiForce\Shop::checkAlert('YetiForceDav');
Method process
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$widget = Vtiger_Widget_Model::getInstance($request->getInteger('linkid'), \App\User::getCurrentUserId());
Method saveMap
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function saveMap()
{
$saveMap = $this->request->get('save_map');
$mapName = $this->request->get('save_map_as');
if ($saveMap && !empty($mapName)) {
Method post
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function post(): ?array
{
$this->checkAccess();
if ('PLL_PASSWORD_2FA' === $this->getUserData('login_method') && ($response = $this->twoFactorAuth())) {
$this->saveLoginHistory([
Function registerSave
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSave: function () {
let form = this.container.find('form');
this.container.find('.js-switch-btn').on('click', (e) => {
e.preventDefault();
if (form.validationEngine('validate')) {
Function submit
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submit() {
var aDeferred = jQuery.Deferred();
this.calculateValues();
var form = this.getContainer();
var progressIndicatorElement = $.progressIndicator({
Function confirmedCallback
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
confirmedCallback: () => {
let fieldRow = currentTarget.closest('div.editFields');
let fieldId = fieldRow.data('fieldId');
let block = fieldRow.closest('.editFieldsTable');
let blockId = block.data('blockId');
Function sendByAjaxCb
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sendByAjaxCb: (formData, response) => {
if (!response.success) {
return;
}
Settings_Vtiger_Index_Js.showMessage({
Function registerDataTables
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerDataTables: function (contentData) {
const thisInstance = this;
$.extend($.fn.dataTable.defaults, {
language: {
sLengthMenu: app.vtranslate('JS_S_LENGTH_MENU'),
Function registerWebserviceAppsEvent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerWebserviceAppsEvent: function () {
$(document).on('click', '.js-edit-field-api', function (e) {
const element = $(e.currentTarget);
let progressInstance = $.progressIndicator({ blockInfo: { enabled: true } });
AppConnector.request({
Function onValidationComplete
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
params.onValidationComplete = (form, valid) => {
if (valid) {
let saveButton = form.find(':submit'),
fieldNameValue = $('[name="fieldName"]', form).val(),
fieldTypeValue = $('[name="fieldType"]', form).val();
Function registerSortableEvent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSortableEvent: function () {
var thisInstance = this;
var sequenceList = {};
var tbody = jQuery('tbody', jQuery('.listViewEntriesTable'));
tbody.sortable({
Function submit
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submit: function () {
var aDeferred = jQuery.Deferred();
var form = this.getContainer();
var formData = form.serializeFormData();
var progressIndicatorElement = jQuery.progressIndicator({
Function registerTaskStatusChangeEvent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerTaskStatusChangeEvent: function () {
var container = this.getContainer();
container.on('change', '.taskStatus', function (e) {
var currentStatusElement = $(e.currentTarget);
var url = currentStatusElement.data('statusurl');
Function registerModuleTabEvent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerModuleTabEvent: function () {
const self = this;
const container = self.getContainer();
container.find('.js-change-tab').on('click', (e) => {
const clickedTab = $(e.currentTarget);