Showing 4,652 of 306,333 total issues
Method getCombinedUserModulesPermissions
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getCombinedUserModulesPermissions($userId)
{
if (Cache::staticHas('getCombinedUserModulesPermissions', $userId)) {
return Cache::staticGet('getCombinedUserModulesPermissions', $userId);
}
Method search
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function search(): array
{
if (!$this->isActive()) {
return [];
}
Method setDataFromRequest
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setDataFromRequest(App\Request $request)
{
$searchParams = \App\Condition::validSearchParams($this->moduelName, $request->getArray('search_params'));
$operator = $request->isEmpty('operator') ? '' : $request->getByType('operator');
if ($operator && $searchValue = \App\Condition::validSearchValue($request->getByType('search_value', \App\Purifier::TEXT), $this->moduelName, $request->getByType('search_key', \App\Purifier::ALNUM), $operator)) {
Method replaceValue
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function replaceValue($tree, $templateId)
{
$db = App\Db::getInstance();
$modules = $this->get('share');
$modules[] = $this->get('tabid');
Method process
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$qualifiedModuleName = $request->getModule(false);
Method process
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$response = new Vtiger_Response();
$qualifiedModuleName = $request->getModule(false);
$type = $request->has('type') ? $request->getByType('type', \App\Purifier::STANDARD) : 'Main';
Method getData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getData(App\Request $request)
{
$moduleName = $request->getModule();
$groupId = $request->getInteger('groupID');
$groupMembers = Settings_Groups_Member_Model::getAllByTypeForGroup($groupId);
Method getCurrentUserActivityReminderInSeconds
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCurrentUserActivityReminderInSeconds()
{
$activityReminder = $this->reminder_interval;
$activityReminderInSeconds = '';
if ('None' != $activityReminder) {
Method getRecordLinks
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRecordLinks(): array
{
$links = $recordLinks = [];
if ($this->isBaseCurrency()) {
//NO Edit and delete link for base currency
Method getFields
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFields($source = false)
{
\App\Log::trace('Entering ' . __METHOD__ . '() method ...');
$moduleModel = Vtiger_Module_Model::getInstance($this->getName());
$fields = [];
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function initialize(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$qualifiedModuleName = $request->getModule(false);
Method process
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$moduleName = $request->getModule();
$qualifiedModuleName = $request->getModule(false);
$record = $request->getInteger('record');
Method getRecordLinks
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRecordLinks(): array
{
$links = [];
$recordLinks = [
Method getDisplayValue
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDisplayValue(string $key)
{
$value = $this->get($key);
switch ($key) {
case 'tabid':
Method request
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function request(App\Request $request): void
{
$result = false;
$responseType = 'error';
$message = '';
Method step1
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function step1(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$qualifiedModuleName = $request->getModule(false);
Method save
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save(App\Request $request)
{
Settings_Vtiger_Tracker_Model::lockTracking(false);
Settings_Vtiger_Tracker_Model::addBasic('save');
$qualifiedModuleName = $request->getModule(false);
Method importWorkflow
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function importWorkflow(array $data)
{
$db = App\Db::getInstance();
$dbCommand = App\Db::getInstance()->createCommand();
$dbCommand->insert($this->getBaseTable(), $data['fields'])->execute();
Method process
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$qualifiedModuleName = $request->getModule(false);
Method post
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function post(App\Request $request)
{
$moduleName = $request->getModule(false);
$moduleModel = Settings_Vtiger_Module_Model::getInstance($moduleName);
$fieldModel = $moduleModel->getFieldInstanceByName('image');