Showing 4,652 of 306,333 total issues
Method process
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process()
{
$moduleModel = \Vtiger_Module_Model::getInstance($this->textParser->moduleName);
$fields = $moduleModel->getFields();
$ids = $this->textParser->getParam('pdf')->getVariable('recordsId');
Method getPagination
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getPagination(App\Request $request)
{
$viewer = $this->getViewer($request);
$cvId = $request->getByType('viewname', 2);
$pageNumber = $request->getInteger('page');
Method loadColumns
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function loadColumns(): void
{
$moduleName = $this->fieldModel->getModuleName();
$fieldName = $this->fieldModel->getName();
$fieldNameForColor = App\Colors::sanitizeValue($fieldName);
Method getWidget
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getWidget()
{
$widget = [];
$model = Vtiger_Module_Model::getInstance($this->Data['relatedmodule']);
if ($model && $model->isPermitted('DetailView')) {
Method getRelatedListPageCount
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRelatedListPageCount(App\Request $request)
{
$moduleName = $request->getModule();
$relatedModuleName = $request->getArray('relatedModule', 'Alnum');
$firstRelatedModuleName = current($relatedModuleName);
Function confirmedCallback
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
confirmedCallback: () => {
let deleteRecordActionUrl =
'index.php?module=' +
app.getModuleName() +
'&parent=' +
Function registerMassRecordsEvents
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerMassRecordsEvents: function () {
const self = this;
this.getListViewContainer().on('click', '.js-mass-record-event', function () {
let target = $(this);
let listInstance = Vtiger_List_Js.getInstance();
Function massActionSave
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
massActionSave: function (form, isMassEdit) {
if (typeof isMassEdit === 'undefined') {
isMassEdit = false;
}
let aDeferred = $.Deferred();
Function init
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init(customParams) {
$('.input-group-text', this.container.closest('.dateTime')).on('click', function (e) {
$(e.currentTarget).closest('.dateTime').find('input.dateTimePickerField').get(0).focus();
});
let dateFormat = CONFIG.dateFormat.toUpperCase();
Function setCalendarAdvancedOptions
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setCalendarAdvancedOptions() {
const self = this;
return {
editable: !this.readonly && this.eventEdit == 1,
selectable: !this.readonly && this.eventCreate == 1,
Function validateValue
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validateValue: function (fieldValue) {
if (fieldValue == '') {
return true;
}
var field = this.getElement();
Method __create
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __create()
{
\App\Log::trace("Creating Module $this->name ... STARTED", __METHOD__);
$db = \App\Db::getInstance();
Method testRecord
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testRecord()
{
$text = '+ $(record : NotExists)$ +';
$this->assertSame('+ +', self::$parserClean->setContent($text)->parse()->getContent(), 'Expected empty string');
Method process
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process()
{
if (!$this->textParser->recordModel || !$this->textParser->recordModel->getModule()->isInventory()) {
return '';
}
Method addReport
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function addReport(array $data): string
{
$status = 0;
if (\Config\Components\Mail::$rcListAcceptAutomatically ?? false) {
$status = 1;
Method addTables
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addTables(Base $importer)
{
$this->logs .= "> start add tables ({$importer->dbType})\n";
$startMain = microtime(true);
foreach ($importer->tables as $tableName => $table) {
Method getDisplayValue
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDisplayValue(string $key)
{
$value = $this->get($key);
switch ($key) {
case 'tabid':
Method import
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function import(App\Request $request): void
{
if (empty($_FILES['file']['name'])) {
throw new \App\Exceptions\NoPermitted('LBL_PERMISSION_DENIED', 406);
}
File SharedOwner.php
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* UIType sharedOwner Field Class.
*
Method createXml
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createXml($entries, $entriesInventory)
{
$exportBlockName = \App\Config::component('Export', 'BLOCK_NAME');
$xml = new \XMLWriter();
$xml->openMemory();