Showing 4,652 of 306,333 total issues
Function registerEvents
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEvents: function () {
let thisInstance = this;
const container = thisInstance.getContentsContainer(),
menuContainer = container.find('.js-menu--scroll'),
quickCreateModal = container.find('.quickCreateModules');
Function triggerMassAction
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
triggerMassAction: function (massActionUrl, type) {
const self = this.relatedListInstance;
let validationResult = self.checkListRecordSelected();
if (validationResult != true) {
let progressIndicatorElement = $.progressIndicator(),
Function registerPaginationEvents
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPaginationEvents: function () {
let thisInstance = this;
let relatedContent = this.content;
this.content.on('click', '#relatedViewNextPageButton', function (e) {
if ($(this).hasClass('disabled')) {
Function registerChangeCustomFilterEvent
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerChangeCustomFilterEvent: function (event) {
let target = $(event.currentTarget);
let selectOption = '';
let selectOptionId = '';
if (target.is('option')) {
Function autoCompleteEvent
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
autoCompleteEvent() {
let autoCompleteElement = $('input.treeAutoComplete', this.container);
if (autoCompleteElement.hasClass('ui-autocomplete-input')) {
autoCompleteElement.autocomplete('destroy');
}
Function registerDetailView
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerDetailView: function (container) {
this.container = container;
var coordinates = container.find('#coordinates').val();
coordinates = JSON.parse(coordinates);
var startCoordinate = [0, 0];
Function addPreviewPopover
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addPreviewPopover(file, template, imageSrc) {
const thisInstance = this;
let fileSize = '';
const fileInfo = this.getFileInfo(file.hash);
let size = fileInfo.sizeDisplay || fileInfo.size;
Method testLogIn2fa
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testLogIn2fa(): void
{
$request = $this->httpClient->get('Users/TwoFactorAuth', self::$requestOptions);
$this->logs = $body = $request->getBody()->getContents();
$response = \App\Json::decode($body);
Method testLeadingZeros
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testLeadingZeros(): void
{
for ($leadingZeros = 0; $leadingZeros < 7; ++$leadingZeros) {
$actualNumber = 1;
$prefix = '{{YYYY}}-{{MM}}-{{DD}}/';
Method activate
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function activate(string $moduleName, string $fieldName): bool
{
$moduleModel = \Vtiger_Module_Model::getInstance($moduleName);
if (!($fieldModel = $moduleModel->getFieldByName($fieldName))) {
return false;
Method vtwsPopulateConvertLeadEntities
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function vtwsPopulateConvertLeadEntities($entityvalue, $entity, Vtiger_Record_Model $recordModel, $leadinfo)
{
$targetModuleModel = Vtiger_Module_Model::getInstance($entityvalue['name']);
$entityName = $entityvalue['name'];
$dataReader = (new \App\Db\Query())->from('vtiger_convertleadmapping')->createCommand()->query();
Method getFieldsPermissions
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getFieldsPermissions($tabId, $readOnly = true)
{
Log::trace('Entering ' . __METHOD__ . ": $tabId");
if (Cache::has(__METHOD__ . User::getCurrentUserId(), $tabId)) {
$fields = Cache::get(__METHOD__ . User::getCurrentUserId(), $tabId);
Method parseBaseSearchParamsToCondition
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function parseBaseSearchParamsToCondition($searchParams)
{
if (empty($searchParams)) {
return [];
}
Method find
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function find($value)
{
if (empty($value) || !\App\RequestUtil::isNetConnection()) {
return [];
}
Method process
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$recordId = $request->getInteger('id');
$moduleInstance = Settings_MappedFields_Module_Model::getInstanceById($recordId);
Method historyVisitPurpose
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function historyVisitPurpose(App\Request $request)
{
$rows = $columns = [];
foreach ($request->getArray('columns') as $key => $value) {
$columns[$key] = $value['name'];
Method save
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save(Workflow $workflow)
{
if (isset($workflow->id)) {
$wf = $workflow;
if (null === $wf->filtersavedinnew) {
Method doTask
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function doTask($rawRecordModel)
{
$recordModel = \Vtiger_Record_Model::getCleanInstance($rawRecordModel->getModuleName());
$recordModel->setData($rawRecordModel->getData());
$recordModel->ext = $rawRecordModel->ext;
Method syncCrmRecord
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function syncCrmRecord($moduleName)
{
$create = $updates = 0;
$query = $this->getCrmRecordsToSync($moduleName);
if (!$query) {
Method verifyDashboard
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function verifyDashboard($moduleName)
{
\App\Log::trace('Entering ' . __METHOD__ . '(' . $moduleName . ')');
$currentUser = Users_Record_Model::getCurrentUserModel();
$blockId = Settings_WidgetsManagement_Module_Model::getBlocksFromModule($moduleName, $currentUser->getRole(), $this->get('dashboardId'));