Showing 4,652 of 306,333 total issues
Function triggerReviewChanges
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
triggerReviewChanges: function (reviewUrl) {
let listInstance = Vtiger_List_Js.getInstance();
let validationResult = listInstance.checkListRecordSelected();
if (validationResult !== true) {
app.showConfirmModal({
Function registerLoadMore
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerLoadMore: function () {
var thisInstance = this;
var parent = thisInstance.getContainer();
var contentContainer = parent.find('.dashboardWidgetContent');
var loadMoreHandler = contentContainer.find('.load-more');
Function selectCallbackCreateModal
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
selectCallbackCreateModal(modal, info) {
let startDate = info.start,
endDate = info.end;
if (info['allDay']) {
endDate.setDate(endDate.getDate() - 1);
Function onLoad
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onLoad: function () {
/* Get image preview element */
imgPreview = this.getContentElement('tab-source', 'preview');
/* Constrain proportions or not */
Function registerPopoverRecord
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPopoverRecord: function (
selectElement = $('.js-popover-tooltip--record'),
customParams = {},
container = $(document)
) {
Method setPicklistValues
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setPicklistValues($values)
{
// Non-Role based picklist values
if (16 === $this->uitype) {
$this->setNoRolePicklistValues($values);
Function createItem
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createItem(file) {
const item = document.createElement('fieldset');
item.setAttribute('class', 'c-multi-attachment--file bg-light js-handle');
item.setAttribute('data-key', file.key);
Method retrieveEntityInfo
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function retrieveEntityInfo(int $record, string $module)
{
if (!isset($record)) {
throw new \App\Exceptions\NoPermittedToRecord('LBL_RECORD_NOT_FOUND');
}
Method populateRelatedSharingPrivileges
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function populateRelatedSharingPrivileges($enttype, $userId, $module, $relmodule, $pertype, $varArr = false)
{
$dbCommand = \App\Db::getInstance()->createCommand();
$tabId = Module::getModuleId($module);
$relTabId = Module::getModuleId($relmodule);
Method process
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(): int
{
$query = (new \App\Db\Query())->select([
'ID_DOKUMENTU_HANDLOWEGO', 'ID_FIRMY', 'ID_KONTRAHENTA', 'ID_DOK_ORYGINALNEGO',
'NUMER', 'FORMA_PLATNOSCI', 'UWAGI', 'KONTRAHENT_NAZWA', 'WARTOSC_NETTO', 'WARTOSC_BRUTTO', 'DOK_KOREKTY', 'DATA_KURS_WAL', 'DOK_WAL', 'SYM_WAL',
Method parseDateTime
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parseDateTime(): void
{
$allDay = 0;
$endHasTime = $startHasTime = false;
$endField = 'VEVENT' === ((string) $this->vcomponent->name) ? 'DTEND' : 'DUE';
Method retrieveEntityInfo
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function retrieveEntityInfo(int $record, string $module)
{
\App\Log::trace("Entering into retrieveEntityInfo($record, $module) method.");
if ('' == $record) {
\App\Log::error('record is empty. returning null');
Method getTree
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getTree($category = false, $treeValue = false)
{
$tree = [];
$templateId = $this->getId();
if (empty($templateId)) {
Method getAssignedProjectsTasks
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAssignedProjectsTasks($mode, $pagingModel, $user, $recordId = false)
{
$currentUser = Users_Record_Model::getCurrentUserModel();
if (!$user) {
$user = $currentUser->getId();
Method getEntityCount
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getEntityCount(): array
{
$colors = \App\Fields\Picklist::getColors('activitytype', false);
$currentUser = Users_Record_Model::getCurrentUserModel();
$startDate = DateTimeField::convertToDBTimeZone($this->get('start'));
Method updateCard
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateCard($moduleName, $record, $card)
{
\App\Log::trace(__METHOD__ . ' | Start CRM ID:' . $record['crmid']);
$vcard = Sabre\VObject\Reader::read($card['carddata']);
$vcard->PRODID = self::PRODID;
Method createCard
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createCard($moduleName, $record)
{
\App\Log::trace(__METHOD__ . ' | Start CRM ID:' . $record['crmid']);
$vcard = new Sabre\VObject\Component\VCard();
Method process
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$viewer = $this->getViewer($request);
$sourceModuleName = $request->getByType('source_module', \App\Purifier::ALNUM);
$moduleName = $request->getModule();
Method getChartData
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getChartData()
{
$this->setUpModelFields();
if ('Table' === $this->chartType) {
return $this->getRows();
Method process
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$data = [];
$sourceModule = $request->getByType('srcModule');
$srcModuleModel = Vtiger_Module_Model::getInstance($sourceModule);