Showing 4,652 of 306,333 total issues
Method getFieldInstanceByName
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFieldInstanceByName($name)
{
if (!isset($this->customFields[$name])) {
return parent::getFieldInstanceByName($name);
}
Method validateFileUpload
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function validateFileUpload(App\Request $request)
{
$currentUser = \App\User::getCurrentUserModel();
$uploadMaxSize = \App\Config::getMaxUploadSize();
Method getChild
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getChild(int $id, array &$childRow, int $depthBase)
{
\App\Log::trace('Entering getChild(' . $id . ',' . $depthBase . ') method ...');
if (empty($id) || $depthBase == App\Config::module('Contacts', 'MAX_HIERARCHY_DEPTH')) {
\App\Log::error('Exiting getChild method ... - exceeded maximum depth of hierarchy');
Method get
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get(): array
{
$moduleName = $this->controller->request->getModule();
$moduleModel = \Vtiger_Module_Model::getInstance($moduleName);
$return = [];
Method getStatuses
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStatuses()
{
$closingStatuses = Settings_RealizationProcesses_Module_Model::getStatusNotModify();
if (empty($closingStatuses['Project'])) {
$closingStatuses['Project'] = ['status' => []];
Function editTax
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editTax: function (url, currentTrElement) {
var aDeferred = jQuery.Deferred();
var thisInstance = this;
var progressIndicatorElement = jQuery.progressIndicator({
Function registerModuleChangeEvent
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerModuleChangeEvent: function () {
const self = this;
const container = self.getContainer();
container.find('.js-selected-module').on('change', function (e) {
const selectedModule = jQuery(e.currentTarget).val();
Function edit
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
edit: function (url, currentTrElement) {
let aDeferred = jQuery.Deferred();
let thisInstance = this;
let progressIndicatorElement = jQuery.progressIndicator({
Function toggleSplit
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggleSplit: function (container) {
var thisInstance = this;
var listPreview = container.find('.js-detail-preview');
var splitsArray = [];
var mainBody = container.closest('.mainBody');
Function registerFileLocationTypeChangeEvent
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerFileLocationTypeChangeEvent: function (container) {
var thisInstance = this;
container.on('change', 'select[name="filelocationtype"]', function (e) {
var fileLocationTypeElement = container.find('[name="filelocationtype"]');
var fileNameElement = container.find('[name="filename"]');
Function saveCommentAjax
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveCommentAjax: function (
element,
commentMode,
commentContentValue,
editCommentReason,
Function mapAddressDetails
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mapAddressDetails: function (result, container) {
for (let key in result) {
if (key.indexOf('addresslevel') != -1) {
if (container.find('[name="' + key + '"]').length != 0) {
container.find('[name="' + key + '"]').val(result['data'][key]);
Function getEmailFromRecord
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getEmailFromRecord(record, module, maxEmails) {
const aDeferred = $.Deferred();
const progress = $.progressIndicator({ position: 'html', blockInfo: { enabled: true } });
AppConnector.request({
dataType: 'html',
Function registerFastEditingFields
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerFastEditingFields: function () {
let thisInstance = this;
let fastEditingFiels = jQuery('.summaryWidgetFastEditing select');
fastEditingFiels.on('change', function (e) {
let fieldElement = jQuery(e.currentTarget);
Function initTaxParameters
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initTaxParameters: function (parentRow, modal) {
let parameters;
if (parentRow.data('taxParam')) {
parameters = parentRow.data('taxParam');
} else {
Function setBrowserHistoryOptions
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setBrowserHistoryOptions() {
const historyParams = app.getMainParams('historyParams', true);
let options = {};
if (historyParams && (historyParams.length || Object.keys(historyParams).length)) {
let s = App.Fields.Date.getDateInstance(historyParams.start);
Function build
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function build(fileName) {
const inputOptions = {
input: fileName,
treeshake: false,
plugins: [
Method testEditAdvancedPermission
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testEditAdvancedPermission()
{
$members = ['Users:1'];
$conditions = [
[
Method getUnlockResponse
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getUnlockResponse(\App\Request $request): array
{
$query = $this->getUnlockQuery($request);
$dataReader = $query->createCommand()->query();
$rows = [];
Method process
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process()
{
$moduleName = 'Calendar';
$moduleModel = \Vtiger_Module_Model::getInstance($moduleName);
$currentUserModel = \App\User::getCurrentUserModel();