Showing 4,652 of 306,333 total issues
Function fillNewRecordData
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fillNewRecordData(moduleName) {
const data = {
email: this.mailItem.from.emailAddress,
email1: this.mailItem.from.emailAddress,
relationOperation: true,
Method testListView
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testListView(): void
{
$this->url('index.php?module=Accounts&view=List');
static::assertSame('Accounts', $this->driver->findElement(WebDriverBy::id('module'))->getAttribute('value'));
$this->logs = self::$recordId = $this->driver->findElement(WebDriverBy::id('Accounts_listView_row_1'))->getAttribute('data-id');
Method readCatalog
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function readCatalog(string $catalogToRead)
{
$catalogPath = static::getBackupCatalogPath();
$catalogToReadArray = $returnStructure = [];
if (empty($catalogPath)) {
Method getListViewEntries
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getListViewEntries($pagingModel)
{
$module = $this->getModule();
$parentModuleName = $module->getParentName();
if (!empty($parentModuleName)) {
Method global
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function global(App\Request $request)
{
$moduleName = $request->getModule(false);
$data = [];
$type = 'global';
Method unfoldFlowed
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected static function unfoldFlowed(string $text, bool $delSp = false): string
{
$text = preg_split('/\r?\n/', $text);
$last = -1;
$qLevel = 0;
Method detail
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function detail(App\Request $request)
{
$recordModel = Vtiger_Record_Model::getInstanceById($request->getInteger('record'), $request->getModule());
if ('PLL_PRESENTATION' === $recordModel->get('knowledgebase_view')) {
$content = [];
Method getRecords
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRecords($user)
{
$this->initListViewController();
if (!$user) {
$user = App\User::getCurrentUserId();
Method getRecordDetail
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getRecordDetail(int $recordId, ?int $currencyId, string $moduleName, string $fieldName): array
{
$recordModel = Vtiger_Record_Model::getInstanceById($recordId);
if (!$recordModel->isViewable()) {
throw new \App\Exceptions\NoPermittedToRecord('ERR_NO_PERMISSIONS_FOR_THE_RECORD', 406);
Method updateRelation
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateRelation(App\Request $request)
{
$sourceModule = $request->getModule();
$sourceRecordId = $request->getInteger('src_record');
$relatedModule = $request->getByType('related_module', 2);
Method sendMails
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sendMails(App\Request $request): void
{
$moduleName = $request->getModule();
$field = $request->getByType('field', 'Alnum');
$sourceModule = $request->getByType('sourceModule', 'Alnum');
Method createQuery
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createQuery(): void
{
$this->queryGenerator = new \App\QueryGenerator('Users');
$limit = 1000;
if ($requestLimit = $this->controller->request->getHeader('x-row-limit')) {
Method get
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get(App\Request $request)
{
if (!\App\RequestUtil::isNetConnection()) {
$this->error();
return false;
Function registerSubmitFrom
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitFrom(data) {
data.find('button[name=saveButton]').prop('disabled', true);
data.find('input[name=user_code]').on('keyup', (e) => {
if (e.keyCode !== 13) {
data.find('button[name=saveButton]').prop('disabled', $(e.currentTarget).val().length === 0);
Function massDeleteAction
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
massDeleteAction: function () {
$('.massDelete').on('click', function () {
let listInstance = Settings_Vtiger_List_Js.getInstance();
let validationResult = listInstance.checkListRecordSelected();
if (validationResult != true) {
Function registerEditFolders
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEditFolders: function (container) {
const self = this;
container.find('.js-edit-folders').on('click', (e) => {
let element = $(e.currentTarget);
let userContainer = element.closest('td');
Function createStep2
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createStep2: function (type) {
var thisInstance = this;
var tabId = thisInstance.getTabId();
var progressIndicatorElement = jQuery.progressIndicator({ position: 'html' });
app.showModalWindow(
Function saveDetails
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveDetails: function (form, currentTrElement) {
const thisInstance = this;
let params = form.serializeFormData();
const saveButton = form.find('[type="submit"]');
saveButton.prop('disabled', true);
Function registerEventForRelatedTabClick
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEventForRelatedTabClick: function () {
var thisInstance = this;
var detailContentsHolder = thisInstance.getContentHolder();
var detailContainer = detailContentsHolder.closest('div.detailViewInfo');
jQuery('.related', detailContainer).on('click', 'li:not(.spaceRelatedList)', function (e, urlAttributes) {
Function pageJumpHandler
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pageJumpHandler: function (e) {
let aDeferred = jQuery.Deferred();
let thisInstance = this;
if (e.which == 13) {
let element = jQuery(e.currentTarget);