Showing 4,652 of 306,333 total issues
Method __getParentAccounts
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __getParentAccounts($id, &$parentAccounts, &$encounteredAccounts, $depthBase = 0)
{
\App\Log::trace('Entering __getParentAccounts(' . $id . ') method ...');
if ($depthBase == App\Config::module('Accounts', 'MAX_HIERARCHY_DEPTH')) {
\App\Log::error('Exiting __getParentAccounts method ... - exceeded maximum depth of hierarchy');
Method getListViewEntries
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getListViewEntries(Vtiger_Paging_Model $pagingModel, $searchResult = false)
{
$moduleModel = $this->getModule();
$moduleName = $moduleModel->get('name');
$queryGenerator = $this->getQueryGenerator();
Method syncAddressBooks
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function syncAddressBooks(): int
{
\App\Log::trace('AddressBooks start', __METHOD__);
$dataReader = $this->getDavCardsToSync()->createCommand()->query();
$create = $deletes = $updates = $skipped = 0;
Method getHeaders
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHeaders()
{
$fields = [];
if ($this->get('viewId')) {
$moduleModel = $this->getRelationModel()->getRelationModuleModel();
Method setDataFromRequest
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setDataFromRequest(App\Request $request)
{
if (array_intersect(array_keys($this->fieldForChartModal), $request->getKeys())) {
$this->set('data', []);
}
Function submit
has 42 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 saveData = this.getData(formData);
Function registerEvents
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEvents: function () {
const self = this,
container = this.getForm();
this.registerBasicEvents(container);
let form = container.find('form');
Function callBackFunction
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let callBackFunction = (data) => {
App.Fields.Picklist.showSelect2ElementView(data.find('select'), { width: '100%' });
let form = data.find('.createCustomFieldForm');
form.attr('id', 'createFieldForm');
App.Fields.Picklist.showSelect2ElementView(form.find('[name="pickListValues"]'), {
Function deleteUser
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
deleteUser: function (form) {
var listInstance = Vtiger_List_Js.getInstance();
var userid = form.find('[name="userid"]').val();
var transferUserId = form.find('[name="tranfer_owner_id"]').val();
var progressInstance = jQuery.progressIndicator({
Function registerSubmitEvent
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitEvent() {
this.container.off('submit').on('submit', (e) => {
e.preventDefault();
this.container.find('.js-toggle-panel').find('.js-block-content').removeClass('d-none');
if ($(e.currentTarget).validationEngine('validate')) {
Function registerAnalyzeFile
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerAnalyzeFile() {
let form = this.container.find('form');
form.validationEngine(app.validationEngineOptions);
this.container.find('.js-send-file').on('click', () => {
if (!form.validationEngine('validate')) {
Function removeWidget
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeWidget: function () {
const self = this;
this.getContainer().on('click', '.js-widget-remove', function (e) {
let element = $(e.currentTarget),
listItem = $(element).parents('.grid-stack-item'),
Function registerEventForRelatedTabClick
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEventForRelatedTabClick: function () {
let thisInstance = this;
let detailContentsHolder = thisInstance.getContentHolder();
let detailContainer = detailContentsHolder.closest('div.detailViewInfo');
Function callbackFunction
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
callbackFunction = () => {
let previousValue = fieldnameElement.data('prevValue'),
ajaxEditNewValue = fieldElement.val(),
ajaxEditNewLable = fieldElement.val(),
activityDiv = currentDiv.closest('.activityEntries'),
Function getUi
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getUi: function () {
let comparatorSelectedOptionVal = this.get('comparatorElementVal'),
html = '',
selectContainer;
if (
Function registerMassActionsBtnEvents
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerMassActionsBtnEvents() {
this.getListViewContainer().on('click', '.js-mass-action', (e) => {
e.preventDefault();
let element = $(e.currentTarget);
let url = element.data('url');
Function getValidator
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getValidator: function (field) {
let listOfValidators = [],
fieldData = field.data(),
fieldInfo = fieldData.fieldinfo;
if (typeof fieldInfo === 'string') {
Method testAddConfiguration
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testAddConfiguration(): void
{
$app = \Settings_WebserviceApps_Record_Model::getCleanInstance();
$app->set('type', 'WebserviceStandard');
$app->set('status', 1);
Method testIncrementNumberMonth
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testIncrementNumberMonth(): void
{
$actualNumber = 1;
$prefix = '{{YYYY}}-{{MM}}-{{DD}}/';
$postfix = '';
Method testIncrementNumberYear
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testIncrementNumberYear(): void
{
$actualNumber = 1;
$prefix = '{{YYYY}}-{{MM}}-{{DD}}/';
$postfix = '';