Showing 4,652 of 306,333 total issues
Function onSubmit
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSubmit(ev) {
ev.preventDefault();
ev.stopPropagation();
this.container.validationEngine(app.validationEngineOptions);
const policyType = Number(this.container.find('[name="policy_type"]:checked').val());
Function registerSwitchEvents
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSwitchEvents() {
let isWorkDays,
switchShowTypeVal,
switchContainer = $('.js-calendar__tab--filters'),
switchShowType = switchContainer.find('.js-switch--showType'),
Method testModuleModel
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testModuleModel()
{
$moduleModel = \Settings_CustomView_Module_Model::getInstance('Settings:CustomView');
$cvsData = \App\CustomView::getFiltersByModule('Leads');
$this->assertIsArray($cvsData, 'Custom views list should be array type');
Method hardDrive
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function hardDrive(): array
{
$countGroup = 50;
$maxTime = 0.2;
$read = $write = [];
Method getDenormalizedData
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDenormalizedData($calendarData)
{
$vObject = VObject\Reader::read($calendarData);
$uid = $lastOccurence = $firstOccurence = $component = $componentType = null;
foreach ($vObject->getComponents() as $component) {
Method showFieldLayout
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function showFieldLayout(App\Request $request)
{
$qualifiedModule = $request->getModule(false);
$activeTab = 'detailViewLayout';
if ($request->has('tab')) {
Method getFieldInstanceByName
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFieldInstanceByName($name)
{
$moduleName = $this->getModule()->getName(true);
$fields = $this->getModule()->getFormFields();
$params = ['label' => 'LBL_' . \strtoupper($name), 'fieldvalue' => $this->get($name) ?? $fields[$name]['default'] ?? '', 'typeofdata' => 'V'];
Method getContent
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getContent(): string
{
if ($this->has('parsedContent')) {
return $this->get('parsedContent');
}
File List.js
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File Page.php
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Abstract page view controller file.
*
* @package Controller
File AdvanceSearch.js
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*+***********************************************************************************
* 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
* The Initial Developer of the Original Code is vtiger.
File Module.php
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* @copyright YetiForce S.A.
* @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
File Calendar.php
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Calendar Model Class.
*
Function registerAdavancedSequenceEvent
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerAdavancedSequenceEvent: function () {
const editViewForm = this.getForm();
const sequenceBtn = editViewForm.find('.js-adavanced-sequence');
sequenceBtn.on('click', function () {
let sourceModule = editViewForm.find('[name="sourceModule"]').val();
Function getRule
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getRule: function () {
var form = this.getForm();
var freq = form.find('.recurringType').val();
var rule = 'FREQ=' + freq;
rule += ';INTERVAL=' + form.find('.repeatFrequency').val();
Function registerSubmitEvent
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitEvent(select2Element) {
$('#CustomView').on('submit', (e) => {
const form = $(e.currentTarget);
let selectElement = this.getColumnSelectElement();
if ($('#viewname').val().length > 100) {
Function widgetRelatedRecordView
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
widgetRelatedRecordView: function (container, load) {
let cacheKey = this.getRecordId() + '_' + container.data('id');
let relatedRecordCacheID = app.moduleCacheGet(cacheKey);
if (relatedRecordCacheID !== null) {
let newActive = container.find(".js-carousel-item[data-id = '" + relatedRecordCacheID + "']");
Function loadInventoryData
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadInventoryData(recordId, sourceModule, success = false, fail = false) {
const progressLoader = $.progressIndicator({ blockInfo: { enabled: true } });
return new Promise((resolve, reject) => {
AppConnector.request({
module: app.getModuleName(),
Function getUi
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getUi: function () {
let pickListValues = this.getPickListValues();
let value = this.getValue() || '';
let values = value.split(',').map((v) => pickListValues[v] || '');
let displayValue = values.join(', ', values);
Function validateToClose
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validateToClose: function (form) {
const aDeferred = $.Deferred();
let closedStatus = app.getMainParams('closeTicketForStatus', true);
let status = form.find('[name="ticketstatus"] :selected').val();
let progress = $.progressIndicator({ position: 'html', blockInfo: { enabled: true } });