YetiForceCompany/YetiForceCRM

View on GitHub
modules/Leads/Leads.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

The class Leads has 17 fields. Consider redesigning Leads to keep the number of fields under 15.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

TooManyFields

Since: 0.1

Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.

Example

class Person {
   protected $one;
   private $two;
   private $three;
   [... many more fields ...]
}

Source https://phpmd.org/rules/codesize.html#toomanyfields

The method setRelationTables has a boolean flag argument $secModule, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function setRelationTables($secModule = false)
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Define a constant instead of duplicating this literal "company" 3 times.
Open

        'Company' => 'company',
Severity: Critical
Found in modules/Leads/Leads.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "leadid" 9 times.
Open

    public $table_index = 'leadid';
Severity: Critical
Found in modules/Leads/Leads.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "vtiger_crmentity" 3 times.
Open

    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Critical
Found in modules/Leads/Leads.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "vtiger_leaddetails" 8 times.
Open

    public $table_name = 'vtiger_leaddetails';
Severity: Critical
Found in modules/Leads/Leads.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Remove this commented out code.
Open

 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
Severity: Major
Found in modules/Leads/Leads.php by sonar-php

Programmers should not comment out code as it bloats programs and reduces readability.

Unused code should be deleted and can be retrieved from source control history if required.

See

  • MISRA C:2004, 2.4 - Sections of code should not be "commented out".
  • MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
  • MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
  • MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"

Define a constant instead of duplicating this literal "crmid" 8 times.
Open

    public $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_leaddetails' => 'leadid', 'vtiger_leadsubdetails' => 'leadsubscriptionid', 'vtiger_leadaddress' => 'leadaddressid', 'vtiger_leadscf' => 'leadid', 'vtiger_entity_stats' => 'crmid'];
Severity: Critical
Found in modules/Leads/Leads.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "vtiger_leadscf" 3 times.
Open

    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Critical
Found in modules/Leads/Leads.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Avoid excessively long variable names like $additional_column_fields. Keep variable name length under 20.
Open

    public $additional_column_fields = ['smcreatorid', 'smownerid', 'contactid', 'crmid'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $emailTemplate_defaultFields. Keep variable name length under 20.
Open

    public $emailTemplate_defaultFields = ['leadsource', 'leadstatus', 'rating', 'industry', 'secondaryemail', 'email', 'annualrevenue'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Leads extends CRMEntity
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

The property $default_sort_order is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $entity_table is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $list_fields_name is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $mandatory_fields is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $table_index is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $table_name is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $def_basicsearch_col is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $tab_name_index is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $tab_name is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $column_fields is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $additional_column_fields is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $search_fields_name is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $search_fields is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $emailTemplate_defaultFields is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $default_order_by is not named in camelCase.
Open

class Leads extends CRMEntity
{
    public $table_name = 'vtiger_leaddetails';
    public $table_index = 'leadid';
    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

Spaces must be used to indent lines; tabs are not allowed
Open

    public $column_fields = [];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $additional_column_fields = ['smcreatorid', 'smownerid', 'contactid', 'crmid'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        'Company' => 'company',
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return array with table names and fieldnames storing relations between module and this module
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $relTables = [
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        ];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // Refers to vtiger_field.fieldname values.
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $mandatory_fields = ['assigned_user_id', 'createdtime', 'modifiedtime'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Line exceeds 120 characters; contains 137 characters
Open

    public $emailTemplate_defaultFields = ['leadsource', 'leadstatus', 'rating', 'industry', 'secondaryemail', 'email', 'annualrevenue'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'Documents' => ['vtiger_senotesrel' => ['crmid', 'notesid'], 'vtiger_leaddetails' => 'leadid'],
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Line exceeds 120 characters; contains 249 characters
Open

    public $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_leaddetails' => 'leadid', 'vtiger_leadsubdetails' => 'leadsubscriptionid', 'vtiger_leadaddress' => 'leadaddressid', 'vtiger_leadscf' => 'leadid', 'vtiger_entity_stats' => 'crmid'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $customFieldTable = ['vtiger_leadscf', 'leadid'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        'Email' => 'email',
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $relationFields = [];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'Products' => ['vtiger_seproductsrel' => ['crmid', 'productid'], 'vtiger_leaddetails' => 'leadid'],
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    ];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var string[] List of fields in the RelationListView
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        if (false === $secModule) {
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_leaddetails' => 'leadid', 'vtiger_leadsubdetails' => 'leadsubscriptionid', 'vtiger_leadaddress' => 'leadaddressid', 'vtiger_leadscf' => 'leadid', 'vtiger_entity_stats' => 'crmid'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        'Phone' => 'phone',
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Line exceeds 120 characters; contains 154 characters
Open

    public $tab_name = ['vtiger_crmentity', 'vtiger_leaddetails', 'vtiger_leadsubdetails', 'vtiger_leadaddress', 'vtiger_leadscf', 'vtiger_entity_stats'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Mandatory table for supporting custom fields.
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        'Company' => ['leaddetails' => 'company'],
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $table_index = 'leadid';
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        'Assigned To' => 'assigned_user_id',
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $search_fields_name = [];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Function to get the relation tables for related modules.
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // For Alphabetical search
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function setRelationTables($secModule = false)
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'Campaigns' => ['vtiger_campaign_records' => ['crmid', 'campaignid'], 'vtiger_leaddetails' => 'leadid'],
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    ];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        }
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    //Default Fields for Email Templates -- Pavani
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $default_sort_order = 'DESC';
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Line exceeds 120 characters; contains 125 characters
Open

            'OSSMailView' => ['vtiger_ossmailview_relation' => ['crmid', 'ossmailviewid'], 'vtiger_leaddetails' => 'leadid'],
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            return $relTables;
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return $relTables[$secModule];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    //construct this from database
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // This is used to retrieve related vtiger_fields from form posts.
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        'Website' => 'website',
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $default_order_by = '';
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $def_basicsearch_col = 'company';
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param bool|string $secModule secondary module name
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'OSSMailView' => ['vtiger_ossmailview_relation' => ['crmid', 'ossmailviewid'], 'vtiger_leaddetails' => 'leadid'],
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $table_name = 'vtiger_leaddetails';
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $list_fields_name = [
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    // Used when enabling/disabling the mandatory fields for the module.
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $emailTemplate_defaultFields = ['leadsource', 'leadstatus', 'rating', 'industry', 'secondaryemail', 'email', 'annualrevenue'];
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            'Services' => ['vtiger_crmentityrel' => ['crmid', 'relcrmid'], 'vtiger_leaddetails' => 'leadid'],
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $entity_table = 'vtiger_crmentity';
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public $search_fields = [
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    //Added these variables which are used as default order by and sortorder in ListView
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in modules/Leads/Leads.php by phpcodesniffer

There are no issues that match your filters.

Category
Status