Showing 4,652 of 306,333 total issues
Method process
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$moduleName = $request->getModule();
$viewer = $this->getViewer($request);
$qualifiedModuleName = $request->getModule(false);
Method getStats
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStats($data, $langBase, $byModule)
{
$differences = [];
$i = 0;
foreach ($data as $id => $dataLang) {
Method massDelete
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function massDelete(App\Request $request)
{
$response = new Vtiger_Response();
$moduleName = $request->getModule(false);
$result = true;
Method process
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$qualifiedModuleName = $request->getModule(false);
$selectedModuleName = '';
if ($request->isEmpty('record')) {
Method getQuery
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getQuery(App\Request $request): App\Db\Query
{
$columns = [];
foreach ($request->getArray('columns') as $key => $value) {
$columns[$key] = $value['data'];
Method executeActions
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function executeActions($account, OSSMail_Mail_Model $mail, $folder, $params = false)
{
\App\Log::trace('Start execute actions: ' . $account['username'], 'MailScanner');
$actions = [];
Method bindMail
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function bindMail($row)
{
if (empty($row['actions'])) {
return false;
}
Method getNextTriggerTimeForAnnualDates
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getNextTriggerTimeForAnnualDates($annualDates, $scheduledTime)
{
if ($annualDates) {
$today = date('Y-m-d');
$annualDates = \App\Json::decode($annualDates);
Method __construct
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($expr)
{
$tokenTypes = [
'SPACE' => ['\s+', 'processTokenId'],
'SYMBOL' => ['[a-zA-Z][\w]*', 'processTokenSymbol'],
Method process
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(App\Request $request)
{
$queryGenerator = $this->getQuery($request);
$count = 0;
$moduleName = $request->getModule();
Method searchByEmails
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function searchByEmails(string $moduleName, string $fieldName, array $emails)
{
$return = [];
$cacheKey = 'MailSearchByEmails' . $moduleName . '_' . $fieldName;
foreach ($emails as $email) {
Method getEntity
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getEntity()
{
$dataReader = $this->getQuery()->createCommand()->query();
$result = [];
$moduleModel = $this->getModule();
Method recordCreate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function recordCreate($cal)
{
\App\Log::trace(__METHOD__ . ' | Start Cal ID' . $cal['id']);
$calendar = \App\Integrations\Dav\Calendar::loadFromContent($cal['calendardata']);
foreach ($calendar->getRecordInstance() as $recordModel) {
Method getEntity
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getEntity()
{
$dataReader = $this->getQuery()->createCommand()->query();
$result = [];
$moduleModel = $this->getModule();
Method davCreate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function davCreate()
{
\App\Log::trace(__METHOD__ . ' | Start CRM ID:' . $this->record['id']);
$instance = \App\Integrations\Dav\Calendar::createEmptyInstance();
$instance->loadFromArray($this->record);
Method getStructure
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getStructure(): array
{
$structure = [];
$moduleName = $this->recordModel->getModuleName();
$textParser = App\TextParser::getInstanceByModel($this->recordModel);
Method getLinks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getLinks(): array
{
$relatedLinks = parent::getLinks();
if ($this->getParentRecordModel()->isReadOnly()) {
return $relatedLinks;
Method getRelationField
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRelationField()
{
$relationField = $this->get('relationField');
if (!$relationField) {
$relationField = false;
Method getDetailViewLinks
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDetailViewLinks(array $linkParams): array
{
$linkModelList = parent::getDetailViewLinks($linkParams);
$recordModel = $this->getRecord();
foreach ($linkModelList['DETAIL_VIEW_BASIC'] as $index => $link) {
Method downloadFile
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function downloadFile()
{
$fileContent = false;
if ($path = $this->getFilePath()) {
$fileDetails = $this->getFileDetails();