Showing 4,652 of 306,333 total issues
Method getAdditionalButtons
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdditionalButtons(): array
{
$return = [];
if (\App\Security\AdminAccess::isPermitted('RecordCollector')) {
$return[] = \Vtiger_Link_Model::getInstanceFromValues([
Method getParticipants
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getParticipants()
{
if (empty($this->recordId) || empty($this->roomType)) {
return [];
}
Method initStorageFileDirectory
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function initStorageFileDirectory($suffix = false)
{
if (!$filepath = \App\Config::module($suffix, 'storagePath')) {
$filepath = 'storage' . \DIRECTORY_SEPARATOR;
}
Method process
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$qualifiedModuleName = $request->getModule(false);
if (!$request->isEmpty('record', true)) {
$recordModel = Settings_TreesManager_Record_Model::getInstanceById($request->getInteger('record'));
Method getStructure
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStructure()
{
if (!empty($this->structuredValues)) {
return $this->structuredValues;
}
Method save
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save()
{
$ruleId = $this->getId();
$db = \App\Db::getInstance();
Method getInstance
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getInstance($qualifiedId)
{
$idComponents = self::getIdComponentsFromQualifiedId($qualifiedId);
$type = $idComponents[0];
$memberId = $idComponents[1];
Method getTreeData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getTreeData(string $moduleName, array $folders, array $selectedFolders): array
{
$tree = $tempArray = [];
foreach (OSSMailScanner_Record_Model::$mainFolders as $mainFolder) {
$treeCategory = [
Method getMissingSystemFields
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getMissingSystemFields(): array
{
$fields = $this->getFields();
$systemFields = \App\Field::SYSTEM_FIELDS;
$missingFields = [];
Method process
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$moduleName = $request->getModule();
$mailModuleActive = \App\Module::getModuleId('OSSMail');
$mailScannerRecordModel = Vtiger_Record_Model::getCleanInstance('OSSMailScanner');
Method validate
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validate($value, $isUserFormat = false)
{
$hashValue = \is_array($value) ? md5(print_r($value, true)) : $value;
if (isset($this->validate[$hashValue]) || empty($value)) {
return;
Method getHierarchyData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHierarchyData($id, $baseInfo, $recordId, &$listviewEntries, $getRawData = false, $getLinks = true)
{
$moduleName = 'Partners';
$currentUser = \App\User::getCurrentUserModel();
$hasRecordViewAccess = $currentUser->isAdmin() || \App\Privilege::isPermitted($moduleName, 'DetailView', $recordId);
Method doTask
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function doTask($recordModel)
{
$entityId = $recordModel->getId();
$delta = $recordModel->getPreviousValue();
Method getHierarchyData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHierarchyData($id, $salesProcessesInfoBase, $salesProcessesId, &$listviewEntries, $getRawData = false, $getLinks = true)
{
\App\Log::trace('Entering getHierarchyData(' . $id . ',' . $salesProcessesId . ') method ...');
$currentUser = Users_Privileges_Model::getCurrentUserModel();
Method process
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$currentUserId = \App\User::getCurrentUserId();
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
Method process
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$currentUserId = \App\User::getCurrentUserId();
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
Method process
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$currentUserId = \App\User::getCurrentUserId();
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
Method validate
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validate($value, $isUserFormat = false)
{
$hashValue = \is_array($value) ? md5(print_r($value, true)) : $value;
if (isset($this->validate[$hashValue]) || empty($value)) {
return;
Method loadListViewCondition
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function loadListViewCondition()
{
$queryGenerator = $this->getQueryGenerator();
if ($entityState = $this->get('entityState')) {
$queryGenerator->setStateCondition($entityState);
Method setDataFromRequest
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setDataFromRequest(App\Request $request)
{
foreach ($this->getEditFields() as $fieldName => $fieldInfo) {
if ($request->has($fieldName) && !isset($this->customFields[$fieldName])) {
$value = $request->getByType($fieldName, $fieldInfo['purifyType']);