Showing 4,652 of 306,333 total issues
Function basicSearch
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
basicSearch: function () {
let thisInstance = this;
$('.js-global-search__value').on('keypress', function (e) {
let currentTarget = $(e.currentTarget);
if (e.which == 13) {
Function setReferenceFieldValue
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setReferenceFieldValue: function (container, params) {
const thisInstance = this;
let sourceFieldElement = container.find('input.sourceField');
let sourceField = sourceFieldElement.attr('name');
let fieldElement = container.find('input[name="' + sourceField + '"]');
Function render
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render: function () {
var self = this;
this.$list = new ListWidget({
itemRenderer: function (li, value) {
Method exportRelatedLists
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function exportRelatedLists(ModuleBasic $moduleInstance)
{
if (!$moduleInstance->isentitytype) {
return;
}
Method save
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save()
{
$db = App\Db::getInstance();
$profileName = $this->get('profilename');
$description = $this->get('description');
Method step2
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function step2(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$qualifiedModuleName = $request->getModule(false);
Method getQuery
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getQuery()
{
$queryGenerator = new App\QueryGenerator($this->getModuleName());
if ($this->has('customFilter')) {
$queryGenerator->initForCustomViewById($this->get('customFilter'));
Method get
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get(): array
{
$this->loadResponseParams();
$moduleName = $this->controller->request->get('module');
$module = \Vtiger_Module_Model::getInstance($moduleName);
File Detail.js
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
'use strict';
Vtiger_Detail_Js(
'HelpDesk_Detail_Js',
File Record.php
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Record Model.
*
Function registerEditors
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEditors(container, fonts = ['DejaVu Sans']) {
container.find('.js-editor').each(function () {
const editor = $(this);
if (typeof CONFIG.fonts !== 'undefined' && fonts.length === 1) {
fonts = CONFIG.fonts.map((font) => font);
`` has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
{
moduleName: false,
container: false,
reletedInstance: false,
viewName: false,
Function registerFilterForAddingModuleRelatedRecordFromSummaryWidget
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerFilterForAddingModuleRelatedRecordFromSummaryWidget: function (container) {
let thisInstance = this;
container
.find('.createRecordFromFilter')
.off()
Function loadConditions
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadConditions: function (fieldSelect) {
var row = fieldSelect.closest('div.js-conditions-row');
var conditionSelectElement = row.find('select[name="comparator"]');
var group = row.find('[name="column_condition"]');
var conditionSelected = conditionSelectElement.val();
Function onOk
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onOk: function () {
/* Get image source */
let src = '';
try {
src = CKEDITOR.document.getById(editor.id + 'previewimage').$.src;
MailIntegration_Iframe
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
window.MailIntegration_Iframe = {
mailId: 0,
container: {},
iframe: {},
iframeWindow: {},
Function registerFormsEvents
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerFormsEvents: function (container) {
let forms = container.find('form.js-form-ajax-submit,form.js-form-single-save');
forms.each((i, form) => {
form = $(form);
let validationForm = false;
Method __create
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __create($blockInstance)
{
$db = \App\Db::getInstance();
$this->block = $blockInstance;
$moduleInstance = $this->getModuleInstance();
TextParser
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class TextParser extends \Tests\Base
{
/**
* Test record instance.
*
Rbl
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Rbl extends \App\Base
{
/**
* Request statuses.
*