Showing 4,652 of 306,333 total issues
Method save
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save()
{
$db = \App\Db::getInstance();
$settingsModel = Settings_Menu_Module_Model::getInstance();
$edit = $this->get('edit');
Method add
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function add()
{
$contactId = (int) $this->mail->findEmailAddress('from_email', 'Contacts', false);
$parentId = (int) $this->mail->findEmailAddress('from_email', 'Accounts', false);
$record = Vtiger_Record_Model::getCleanInstance('HelpDesk');
Method getAdvancedLinks
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdvancedLinks()
{
$moduleModel = $this->getModule();
$advancedLinks = [];
Method getGanttMilestones
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getGanttMilestones($projectIds)
{
$queryGenerator = new App\QueryGenerator('ProjectMilestone');
$queryGenerator->setFields(['id', 'parentid', 'projectid', 'projectmilestonename', 'projectmilestonedate', 'projectmilestone_no', 'projectmilestone_progress', 'projectmilestone_priority', 'sum_time', 'estimated_work_time', 'projectmilestone_status', 'assigned_user_id']);
$queryGenerator->addNativeCondition(['vtiger_projectmilestone.projectid' => $projectIds]);
File Basic.php
has 273 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Inventory Basic Field Class.
*
Function registerSubmitForm
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitForm: function (container) {
const aDeferred = $.Deferred();
let instanse = this;
container.on('click', '.js-modal__save', () => {
let params = {
Method parseConditions
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parseConditions(?array $conditions, \App\QueryGenerator $queryGenerator, string $html = '', bool $show = false): string
{
if (empty($conditions)) {
return '';
}
Method process
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(): string
{
$html = '';
$moduleName = $this->params[0];
if (!empty($textParserParams = $this->textParser->getParam('textParserParams')) && isset($textParserParams['userId'])
Method delete
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function delete()
{
$db = \App\Db::getInstance();
try {
parent::delete();
Method getStructure
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStructure()
{
if (!empty($this->structuredValues)) {
return $this->structuredValues;
}
Method doTask
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function doTask($recordModel)
{
if (!empty($this->template)) {
$mailerContent = [];
if (!empty($this->smtp)) {
Method process
has 63 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 process
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$moduleName = $request->getModule();
$this->recordModel = Vtiger_Record_Model::getCleanInstance($moduleName);
$moduleModel = $this->recordModel->getModule();
File Cache.php
has 271 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/* +***********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
`` has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
{
init() {
Calendar_Edit_Js.currencyInstance = this;
},
registerReminderFieldCheckBox: function () {
Watchdog
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Watchdog
{
/**
* Allowed flags array.
*
Item
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Item extends \App\Base
{
/** @var int Item ID */
protected $id;
/** @var string Item name */
Mailer
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Mailer
{
/** @var string[] Queue status */
public static $statuses = [
0 => 'LBL_PENDING_ACCEPTANCE',
Settings_MappedFields_Module_Model
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_MappedFields_Module_Model extends Settings_Vtiger_Module_Model
{
protected $record = false;
public $baseTable = 'a_yf_mapped_config';
public $mappingTable = 'a_yf_mapped_fields';
Settings_SMSNotifier_Record_Model
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_SMSNotifier_Record_Model extends Settings_Vtiger_Record_Model
{
/** @var array Record changes */
protected $changes = [];