Showing 4,652 of 306,333 total issues
Method getTicketsByStatus
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getTicketsByStatus($owner)
{
$moduleName = 'HelpDesk';
$ticketStatus = Settings_SupportProcesses_Module_Model::getTicketStatusNotModify();
$query = new \App\Db\Query();
Method getMarkerColor
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getMarkerColor($value)
{
static $indexColor = 0;
if (empty($value)) {
return '#000';
`` has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
{
/**
* Var to store colors container
*/
container: false,
`` has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
{
container: false,
noCache: false,
instancesCache: {},
init: function () {
`` has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
MultiAttachment: class MultiAttachment {
/**
* Constructor
* @param {jQuery} container
* @param {Object} options
`` has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export default {
layout(state) {
return state.layout
},
dialog(state) {
Language
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Language
{
/**
* Default language code.
*/
Owner
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Owner
{
/**
* Module name or false.
*
YetiForcePDF
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class YetiForcePDF extends Base
{
/** {@inheritdoc} */
const DRIVER_NAME = 'LBL_YETIFORCE_PDF';
Base
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Base
{
/** @var string Database section. */
public $dbType = 'base';
Settings_TreesManager_Record_Model
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_TreesManager_Record_Model extends Settings_Vtiger_Record_Model
{
/**
* Function to get the Id.
*
Settings_AutomaticAssignment_Record_Model
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_AutomaticAssignment_Record_Model extends Settings_Vtiger_Record_Model
{
/** @var array Record changes */
protected $changes = [];
File Z_Chat.php
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Chat test class.
*
Function registerChangeCreateEntityEvent
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerChangeCreateEntityEvent: function () {
var thisInstance = this;
$('[name="mappingPanel"]').on('change', function (e) {
var currentTarget = $(e.currentTarget);
app.setMainParams('mappingPanel', currentTarget.val());
Method setRelatedList
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setRelatedList($moduleInstance, $label = '', $actions = false, $functionName = 'getRelatedList', $fieldName = null, $fields = [])
{
$db = \App\Db::getInstance();
if (empty($moduleInstance)) {
return;
Method addWorkflowConditionsToQueryGenerator
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addWorkflowConditionsToQueryGenerator(App\QueryGenerator $queryGenerator, $conditions)
{
$conditionMapping = [
'equal to' => 'e',
'less than' => 'l',
Method process
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$page = $request->getInteger('page');
Method getFieldsStructure
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFieldsStructure(array $block): array
{
$fields = [];
foreach ($block['fields'] as $field) {
if (\is_array($field) && 'relatedField' === $field['type']) {
Method getSettingLinks
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSettingLinks(): array
{
if (!$this->isEntityModule()) {
return [];
}
File Chromium.php
has 282 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Chromium driver file for PDF generation.
*
* @see https://github.com/chrome-php/chrome