Showing 4,652 of 306,333 total issues
Method process
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process()
{
foreach (App\Integrations\Magento\Config::getAllServers() as $serverId => $config) {
if (0 === (int) $config['status']) {
continue;
Method getChild
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getChild(int $id, array &$childRow, int $depthBase): array
{
\App\Log::trace('Entering getChild(' . $id . ',' . $depthBase . ') method ...');
if (empty($id) || $depthBase === \App\Config::module('HelpDesk', 'MAX_HIERARCHY_DEPTH')) {
\App\Log::error('Exiting getChild method ... - exceeded maximum depth of hierarchy');
Method getParentIStorages
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getParentIStorages($id, &$parentIStorages, &$encounteredIStorages, $depthBase = 0)
{
\App\Log::trace('Entering getParentIStorages(' . $id . ') method ...');
if ($depthBase === App\Config::module('IStorages', 'MAX_HIERARCHY_DEPTH')) {
Method getParent
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getParent(int $id, array &$parent, array &$encountered, int $depthBase = 0): array
{
\App\Log::trace('Entering getParent(' . $id . ') method ...');
if ($depthBase === \App\Config::module('Project', 'MAX_HIERARCHY_DEPTH')) {
\App\Log::error('Exiting getParent method ... - exceeded maximum depth of hierarchy');
Method process
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process()
{
$db = App\Db::getInstance();
$dataReader = (new App\Db\Query())->from('u_#__openstreetmap_record_updater')
->limit(App\Config::module('OpenStreetMap', 'cronMaxUpdatedAddresses'))
Function registerEvents
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEvents: function () {
const self = this,
editContainer = $('#EditView'),
jstreeInstance = self.createTree();
editContainer.validationEngine();
Function registerSubmitEvent
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitEvent: function () {
var thisInstance = this;
var form = jQuery('[name="EditProfile"]');
form.on('submit', function (e) {
let button = form.find('button[type="submit"]'),
Function registerAddBlockDashBoard
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerAddBlockDashBoard: function () {
var thisInstance = this;
var contents = jQuery('#layoutDashBoards');
contents.find('.addBlockDashBoard').on('click', function (e) {
var addBlockContainer = contents.find('.addBlockDashBoardModal').clone(true, true);
Function registerDeleteFilterClickEvent
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerDeleteFilterClickEvent: function () {
const self = this;
let listViewFilterBlock = this.getFilterBlock();
if (listViewFilterBlock != false) {
//used mouseup event to stop the propagation of customfilter select change event.
Function triggerSendEmail
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
triggerSendEmail: function (params, callBackFunction, row) {
let listInstance = Vtiger_List_Js.getInstance();
if (row) {
listInstance.listViewContentContainer = row.closest('.js-list__form');
}
Function registerGenetateButton
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerGenetateButton: function (container) {
const thisInstance = this;
container.find('button.js-genetate-button').on('click', function (e) {
document.progressLoader = $.progressIndicator({
message: app.vtranslate('JS_LOADING_PLEASE_WAIT'),
Function loadWidget
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadWidget: function (widgetContainer) {
const self = this;
let urlParams = widgetContainer.data('url');
let mode = widgetContainer.data('mode');
let moduleName = app.getModuleName();
Function showCurrencyChangeModal
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showCurrencyChangeModal: function (select, option) {
let thisInstance = this;
if (thisInstance.lockCurrencyChange == true) {
return;
}
Function registerChangeTax
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerChangeTax: function () {
const thisInstance = this;
thisInstance.form.on('click', '.changeTax', function (e) {
let parentRow;
let element = $(e.currentTarget);
Function validateFile
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validateFile() {
const fieldInfo = $(editor.element.$).data('fieldinfo');
let length = editor.getData().length,
selectedImg = editor.getSelection();
if (selectedImg) selectedImg = selectedImg.getSelectedElement();
Function reloadAfterSave
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reloadAfterSave: function (responseData, params, form, element) {
if (responseData.skipReload) {
return;
}
const moduleName = params['module'];
Function validate
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function () {
let response = this._super();
if (response != true) {
return response;
}
Function registerEventForClockPicker
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEventForClockPicker: function (timeInputs = $('.clockPicker')) {
if (!timeInputs.hasClass('clockPicker')) {
timeInputs = timeInputs.find('.clockPicker');
}
if (!timeInputs.length) {
Method testEmployee
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testEmployee()
{
$currentUser = \App\User::getCurrentUserId();
$userName = 'Employee';
$userExistsId = (new \App\Db\Query())->select(['id'])->from('vtiger_users')->where(['user_name' => $userName])
Method getAllModules
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getAllModules($isEntityType = true, $showRestricted = false, $presence = false, $colorActive = false, $ownedby = false)
{
if (\App\Cache::has('moduleTabs', 'all')) {
$moduleList = \App\Cache::get('moduleTabs', 'all');
} else {