Showing 4,652 of 306,333 total issues
Function mapResultsToFields
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mapResultsToFields: function (referenceModule, parentRow, responseData) {
let unit,
taxParam = [];
let thisInstance = this;
let isGroupTax = thisInstance.isGroupTaxMode();
Function hideHorizontalBarDatalabelsIfNeeded
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
hideHorizontalBarDatalabelsIfNeeded: function hideHorizontalBarDatalabelsIfNeeded(chart) {
let getDatasetsMeta = function (chart) {
const datasets = [];
const data = chart.data;
if (typeof data !== 'undefined' && typeof data.datasets !== 'undefined' && Array.isArray(data.datasets)) {
Function getDefaultParams
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getDefaultParams() {
const users = app.moduleCacheGet('calendar-users') || CONFIG.userId,
sideBar = this.getSidebarView();
let filters = [],
params = {
File Log.php
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Logger files.
*
* @package App
File Z_ResetingRecordNumber.php
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Reseting record number test class.
*
* @package Tests
Method getFooterScripts
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFooterScripts(\App\Request $request)
{
$jsFileNames = [
'~libraries/block-ui/jquery.blockUI.js',
'~libraries/select2/dist/js/select2.full.js',
Method getAdvanceData
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdvanceData(array &$response): void
{
if (isset($response['Typ'], $response['SilosID']) && ($reportName = $this->getReportName($response['Typ'], $response['SilosID']))) {
$responseFromGus = $this->getData('DanePobierzPelnyRaport', ['pRegon' => $response['Regon'], 'pNazwaRaportu' => $reportName]);
if (empty($responseFromGus)) {
Method getFieldInstanceByName
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFieldInstanceByName($name, $edit = false)
{
if (!isset($this->fields[$name])) {
$moduleName = $this->getName(true);
$params = ['column' => $name, 'name' => $name, 'label' => $this->listFields[$name] ?? '', 'displaytype' => 1, 'typeofdata' => 'V~M', 'presence' => '', 'isEditableReadOnly' => false, 'maximumlength' => '255', 'sort' => true];
Method process
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$recordId = $request->getInteger('record');
$modules = $request->getArray('modules', 'Alnum');
$assignId = $request->getInteger('assigned_user_id');
Method performTasks
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function performTasks(App\EventHandler $eventHandler, $condition = [])
{
$recordModel = $eventHandler->getRecordModel();
$moduleName = $eventHandler->getModuleName();
if (!isset($this->workflows[$moduleName])) {
Method getListViewHeaders
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getListViewHeaders()
{
$headerFieldModels = [];
if ($this->isEmpty('viewId')) {
$queryGenerator = $this->getQueryGenerator();
Method setRecordFieldValues
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setRecordFieldValues($parentRecordModel)
{
$mfInstance = Vtiger_MappedFields_Model::getInstanceByModules($parentRecordModel->getModule()->getId(), $this->getModule()->getId());
if ($mfInstance) {
$defaultInvRow = [];
File Records.php
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Abstract base view controller file.
*
* @package Export
ImportJs
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
var ImportJs = {
toogleMergeConfiguration: function () {
var mergeChecked = jQuery('#auto_merge').is(':checked');
var duplicateMergeConfiguration = jQuery('#duplicates_merge_configuration');
if (mergeChecked) {
EventHandler
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class EventHandler
{
/**
* Table name.
*
BaseField
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BaseField
{
/**
* @var \Vtiger_Record_Model
*/
ServiceContracts
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ServiceContracts
{
/**
* Fields map.
*
Settings_LayoutEditor_Field_Model
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_LayoutEditor_Field_Model extends Settings_Vtiger_Field_Model
{
/** @var Settings_Vtiger_Field_Model[] Item field models */
private $items = [];
/** @var Vtiger_Field_Model|null Source field model */
Settings_Workflows_TaskRecord_Model
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_Workflows_TaskRecord_Model extends Settings_Vtiger_Record_Model
{
/**
* Task status active.
*
Consider simplifying this complex logical expression. Open
Open
if (('updateWidgetConfig' === $mode && $request->has('widgetid') && $widget->get('active'))
|| (('remove' === $mode || 'removeWidgetFromList' === $mode) && !$widget->isDefault() && \App\Privilege::isPermitted($moduleName))
|| (('positions' === $mode || 'clear' === $mode) && \App\Privilege::isPermitted($moduleName))
|| 'add' === $mode) {
return true;