Showing 4,652 of 306,333 total issues
AbstractBaseProduct
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class AbstractBaseProduct
{
private const DEFAULT_CURRENCY = 'EUR';
/**
Chromium
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Chromium extends Base
{
/** {@inheritdoc} */
const DRIVER_NAME = 'LBL_CHROMIUM_PDF';
Importer
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Importer
{
/**
* End of line character.
*
Method initializeListViewContents
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function initializeListViewContents(App\Request $request, Vtiger_Viewer $viewer)
{
$qualifiedModuleName = $request->getModule(false);
$pageNumber = $request->getInteger('page');
$orderBy = $request->getForSql('orderby');
Settings_PickListDependency_Record_Model
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_PickListDependency_Record_Model extends Settings_Vtiger_Record_Model
{
private $nonMappedSourcePickListValues = false;
/** @var \Vtiger_Module_Model Source module model */
Vtiger_MultiAttachment_UIType
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Vtiger_MultiAttachment_UIType extends Vtiger_Base_UIType
{
/** @var int Default attachments limit. */
public const LIMIT = 3;
Method process
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$moduleName = $request->getModule();
$record = $request->getInteger('record');
$recordModel = Vtiger_Record_Model::getInstanceById($record, $moduleName);
Method getQuery
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getQuery($recordId, $moduleName, $type)
{
$queries = [];
$db = App\Db::getInstance();
if (\in_array('Calendar', $type) && ($field = current(\Vtiger_Module_Model::getInstance('Calendar')->getReferenceFieldsForModule($moduleName)))) {
File SharingAccess.js
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
'use strict';
jQuery.Class(
'Settings_Sharing_Access_Js',
File Index.js
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
'use strict';
jQuery.Class(
'Settings_Inventory_Index_Js',
Function getUi
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getUi: function () {
let comparatorSelectedOptionVal = this.get('comparatorElementVal'),
dateSpecificConditions = this.get('dateSpecificConditions'),
html = '';
if (comparatorSelectedOptionVal === 'bw' || comparatorSelectedOptionVal === 'custom') {
File jstree.category.js
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
/*globals jQuery, define, exports, require, document */
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
Method testCreateNewField
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testCreateNewField($type, $param, $suffix = '')
{
$key = $type . $suffix;
$param['fieldType'] = $type;
$param['fieldLabel'] = $type . 'FL' . $suffix;
File VatifyEu.php
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Vatify API file.
*
* @see https://www.vatify.eu/coverage.html
Method process
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$summary = $request->get('summary');
$moduleName = $request->getByType('module_name', 2);
$conditions = $request->getArray('conditions', 'Text');
File Base.php
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Abstract base map file.
*
Function registerPostLoadEvents
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPostLoadEvents(form, params, element) {
const submitSuccessCallback = params.callbackFunction || function () {};
const goToFullFormCallBack = params.goToFullFormcallback || function () {};
form.on('submit', (e) => {
if (form.hasClass('not_validation')) {
Method process
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process()
{
$html = '';
[$relatedModuleName, $relatedModuleField, $fieldsToShow] = array_pad($this->params, 3, null);
$fieldsToShow = !empty($fieldsToShow) ? explode(',', $fieldsToShow) : ['seq', 'name', 'qty', 'discount', 'currency', 'discountmode', 'taxmode', 'price', 'gross', 'net', 'tax', 'total'];
Method save
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save()
{
if (!$this->isNew) {
switch ($this->typeSaving) {
case self::UPDATE_ALL_EVENTS:
Method showSearchResults
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function showSearchResults(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$advFilterList = $request->getArray('advfilterlist', 'Text');