Showing 4,652 of 306,333 total issues
Method parseValueForDate
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function parseValueForDate($condition)
{
$value = $condition['value'];
$operation = $condition['operation'];
Method initializeListViewContents
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function initializeListViewContents(App\Request $request, Vtiger_Viewer $viewer)
{
$moduleName = $request->getModule();
$sourceModule = $request->getByType('sourceModule', 2);
$pageNumber = $request->isEmpty('page', true) ? 1 : $request->getInteger('page');
Method entityAfterSave
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function entityAfterSave(App\EventHandler $eventHandler)
{
$moduleName = $eventHandler->getModuleName();
// Update Used Units for the Service Contract, everytime the status of a ticket related to the Service Contract changes
if ('HelpDesk' === $moduleName && 'ServiceContracts' !== \App\Request::_get('return_module')) {
Method setCardAddres
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setCardAddres(Sabre\VObject\Component $vcard, $moduleName, $record)
{
$adr1 = $adr2 = [];
if ('Contacts' === $moduleName) {
if (!empty($record['addresslevel5a'])) {
Method uploadTempFile
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function uploadTempFile(array $files, int $recordId, ?string $hash = null)
{
$db = \App\Db::getInstance();
$attach = [];
$type = 'image';
Method getSideBarLinks
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSideBarLinks($linkParams)
{
$menuUrl = '';
if (isset($_REQUEST['parent'])) {
$menuUrl .= '&parent=' . \App\Request::_getByType('parent', 'Alnum');
Method process
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$currentUser = Users_Record_Model::getCurrentUserModel();
$viewer = $this->getViewer($request);
$moduleName = 'Home';
Method send
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function send()
{
$encryptDataTransfer = \App\Config::api('ENCRYPT_DATA_TRANSFER') ? 1 : 0;
if (200 !== $this->status || 'data' !== $this->responseType) {
$encryptDataTransfer = 0;
File RecordNumber.php
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace App\Fields;
/**
File GetData.php
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Settings MailRbl get data action file.
*
PackageUpdate
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PackageUpdate extends PackageImport
{
public $_migrationinfo = false;
public $listFields = [];
public $listBlocks = [];
Records
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class Records extends \App\Base
{
/** @var int Data export in a format that can be imported later */
public const EXPORT_FORMAT = 0;
Register
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
final class Register extends AbstractBase
{
/** @var string URL */
public const URL = 'https://api.yetiforce.eu/registrations';
Colors
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Colors
{
public const EMPTY_COLOR = 'rgba(0,0,0,0.1)';
/**
Settings_WebserviceUsers_Record_Model
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_WebserviceUsers_Record_Model extends Settings_Vtiger_Record_Model
{
/**
* Changes.
*
Settings_SharingAccess_Rule_Model
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Settings_SharingAccess_Rule_Model extends \App\Base
{
const RULE_TYPE_GROUPS = 'GRP';
const RULE_TYPE_ROLE = 'ROLE';
const RULE_TYPE_ROLE_AND_SUBORDINATES = 'RS';
VTFieldExpressionEvaluater
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class VTFieldExpressionEvaluater
{
public static function __vt_add($arr)
{
if (1 == \count($arr)) {
Workflow
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Workflow
{
/**
* Scheduled hourly.
*
Calendar_Record_Model
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Calendar_Record_Model extends Vtiger_Record_Model
{
/**
* Show Reminder popup.
*/
OSSMailView_Record_Model
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class OSSMailView_Record_Model extends Vtiger_Record_Model
{
const TYPE_COLORS = [
0 => 'bgGreen',
1 => 'bgDanger',