YetiForceCompany/YetiForceCRM

View on GitHub
modules/Queue/Queue.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Avoid unused parameters such as '$moduleName'.
Open

    public function moduleHandler($moduleName, $eventType)
Severity: Minor
Found in modules/Queue/Queue.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Either remove or fill this block of code.
Open

        } elseif ('module.disabled' === $eventType) {
        } elseif ('module.preuninstall' === $eventType) {
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

Noncompliant Code Example

for ($i = 0; $i < 42; $i++){}  // Empty on purpose or missing piece of code ?

Exceptions

When a block contains a comment, this block is not considered to be empty.

Either remove or fill this block of code.
Open

        if ('module.postinstall' === $eventType) {
        } elseif ('module.disabled' === $eventType) {
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

Noncompliant Code Example

for ($i = 0; $i < 42; $i++){}  // Empty on purpose or missing piece of code ?

Exceptions

When a block contains a comment, this block is not considered to be empty.

This branch's code block is the same as the block for the branch on line 72.
Open

        } elseif ('module.preupdate' === $eventType) {
        } elseif ('module.postupdate' === $eventType) {
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Having two cases in a switch statement or two branches in an if chain with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then in an if chain they should be combined, or for a switch, one should fall through to the other.

Noncompliant Code Example

switch ($i) {
  case 1:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  case 3:  // Noncompliant; duplicates case 1's implementation
    doSomething();
    break;
  default:
    doTheRest();
}

if ($a >= 0 && $a < 10) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else if ($a >= 20 && $a < 50) {
  doTheThing();  // Noncompliant; duplicates first condition
}
else {
  doTheRest();
}

if ($b == 0) {
  doOneMoreThing();
}
else {
  doOneMoreThing(); // Noncompliant; duplicates then-branch
}

var b = a ? 12 > 4 : 4;  // Noncompliant; always results in the same value

Compliant Solution

switch ($i) {
  case 1:
  case 3:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  default:
    doTheRest();
}

if (($a >= 0 && $a < 10) || ($a >= 20 && $a < 50)) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else {
  doTheRest();
}

doOneMoreThing();

b = 4;

or

switch ($i) {
  case 1:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  case 3:
    doThirdThing();
    break;
  default:
    doTheRest();
}

if ($a >= 0 && $a < 10) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else if ($a >= 20 && $a < 50) {
  doTheThirdThing();
}
else {
  doTheRest();
}

if ($b == 0) {
  doOneMoreThing();
}
else {
  doTheRest();
}

int b = a ? 12 > 4 : 8;

Exceptions

Blocks in an if chain that contain a single line of code are ignored, as are blocks in a switch statement that contain a single line of code with or without a following break.

Either remove or fill this block of code.
Open

        } elseif ('module.preuninstall' === $eventType) {
        } elseif ('module.preupdate' === $eventType) {
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

Noncompliant Code Example

for ($i = 0; $i < 42; $i++){}  // Empty on purpose or missing piece of code ?

Exceptions

When a block contains a comment, this block is not considered to be empty.

Either remove or fill this block of code.
Open

        } elseif ('module.preupdate' === $eventType) {
        } elseif ('module.postupdate' === $eventType) {
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

Noncompliant Code Example

for ($i = 0; $i < 42; $i++){}  // Empty on purpose or missing piece of code ?

Exceptions

When a block contains a comment, this block is not considered to be empty.

Either remove or fill this block of code.
Open

        } elseif ('module.postupdate' === $eventType) {
        }
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Most of the time a block of code is empty when a piece of code is really missing. So such empty block must be either filled or removed.

Noncompliant Code Example

for ($i = 0; $i < 42; $i++){}  // Empty on purpose or missing piece of code ?

Exceptions

When a block contains a comment, this block is not considered to be empty.

This branch's code block is the same as the block for the branch on line 72.
Open

        } elseif ('module.preuninstall' === $eventType) {
        } elseif ('module.preupdate' === $eventType) {
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Having two cases in a switch statement or two branches in an if chain with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then in an if chain they should be combined, or for a switch, one should fall through to the other.

Noncompliant Code Example

switch ($i) {
  case 1:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  case 3:  // Noncompliant; duplicates case 1's implementation
    doSomething();
    break;
  default:
    doTheRest();
}

if ($a >= 0 && $a < 10) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else if ($a >= 20 && $a < 50) {
  doTheThing();  // Noncompliant; duplicates first condition
}
else {
  doTheRest();
}

if ($b == 0) {
  doOneMoreThing();
}
else {
  doOneMoreThing(); // Noncompliant; duplicates then-branch
}

var b = a ? 12 > 4 : 4;  // Noncompliant; always results in the same value

Compliant Solution

switch ($i) {
  case 1:
  case 3:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  default:
    doTheRest();
}

if (($a >= 0 && $a < 10) || ($a >= 20 && $a < 50)) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else {
  doTheRest();
}

doOneMoreThing();

b = 4;

or

switch ($i) {
  case 1:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  case 3:
    doThirdThing();
    break;
  default:
    doTheRest();
}

if ($a >= 0 && $a < 10) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else if ($a >= 20 && $a < 50) {
  doTheThirdThing();
}
else {
  doTheRest();
}

if ($b == 0) {
  doOneMoreThing();
}
else {
  doTheRest();
}

int b = a ? 12 > 4 : 8;

Exceptions

Blocks in an if chain that contain a single line of code are ignored, as are blocks in a switch statement that contain a single line of code with or without a following break.

This branch's code block is the same as the block for the branch on line 72.
Open

        } elseif ('module.postupdate' === $eventType) {
        }
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Having two cases in a switch statement or two branches in an if chain with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then in an if chain they should be combined, or for a switch, one should fall through to the other.

Noncompliant Code Example

switch ($i) {
  case 1:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  case 3:  // Noncompliant; duplicates case 1's implementation
    doSomething();
    break;
  default:
    doTheRest();
}

if ($a >= 0 && $a < 10) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else if ($a >= 20 && $a < 50) {
  doTheThing();  // Noncompliant; duplicates first condition
}
else {
  doTheRest();
}

if ($b == 0) {
  doOneMoreThing();
}
else {
  doOneMoreThing(); // Noncompliant; duplicates then-branch
}

var b = a ? 12 > 4 : 4;  // Noncompliant; always results in the same value

Compliant Solution

switch ($i) {
  case 1:
  case 3:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  default:
    doTheRest();
}

if (($a >= 0 && $a < 10) || ($a >= 20 && $a < 50)) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else {
  doTheRest();
}

doOneMoreThing();

b = 4;

or

switch ($i) {
  case 1:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  case 3:
    doThirdThing();
    break;
  default:
    doTheRest();
}

if ($a >= 0 && $a < 10) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else if ($a >= 20 && $a < 50) {
  doTheThirdThing();
}
else {
  doTheRest();
}

if ($b == 0) {
  doOneMoreThing();
}
else {
  doTheRest();
}

int b = a ? 12 > 4 : 8;

Exceptions

Blocks in an if chain that contain a single line of code are ignored, as are blocks in a switch statement that contain a single line of code with or without a following break.

This branch's code block is the same as the block for the branch on line 72.
Open

        } elseif ('module.disabled' === $eventType) {
        } elseif ('module.preuninstall' === $eventType) {
Severity: Major
Found in modules/Queue/Queue.php by sonar-php

Having two cases in a switch statement or two branches in an if chain with the same implementation is at best duplicate code, and at worst a coding error. If the same logic is truly needed for both instances, then in an if chain they should be combined, or for a switch, one should fall through to the other.

Noncompliant Code Example

switch ($i) {
  case 1:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  case 3:  // Noncompliant; duplicates case 1's implementation
    doSomething();
    break;
  default:
    doTheRest();
}

if ($a >= 0 && $a < 10) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else if ($a >= 20 && $a < 50) {
  doTheThing();  // Noncompliant; duplicates first condition
}
else {
  doTheRest();
}

if ($b == 0) {
  doOneMoreThing();
}
else {
  doOneMoreThing(); // Noncompliant; duplicates then-branch
}

var b = a ? 12 > 4 : 4;  // Noncompliant; always results in the same value

Compliant Solution

switch ($i) {
  case 1:
  case 3:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  default:
    doTheRest();
}

if (($a >= 0 && $a < 10) || ($a >= 20 && $a < 50)) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else {
  doTheRest();
}

doOneMoreThing();

b = 4;

or

switch ($i) {
  case 1:
    doSomething();
    break;
  case 2:
    doSomethingDifferent();
    break;
  case 3:
    doThirdThing();
    break;
  default:
    doTheRest();
}

if ($a >= 0 && $a < 10) {
  doTheThing();
else if ($a >= 10 && $a < 20) {
  doTheOtherThing();
}
else if ($a >= 20 && $a < 50) {
  doTheThirdThing();
}
else {
  doTheRest();
}

if ($b == 0) {
  doOneMoreThing();
}
else {
  doTheRest();
}

int b = a ? 12 > 4 : 8;

Exceptions

Blocks in an if chain that contain a single line of code are ignored, as are blocks in a switch statement that contain a single line of code with or without a following break.

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

        'Assigned To' => 'assigned_user_id',
Severity: Critical
Found in modules/Queue/Queue.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 "subject" 6 times.
Open

        'FL_SUBJECT' => 'subject',
Severity: Critical
Found in modules/Queue/Queue.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', 'u_yf_queue'];
Severity: Critical
Found in modules/Queue/Queue.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 "u_yf_queue" 3 times.
Open

    public $table_name = 'u_yf_queue';
Severity: Critical
Found in modules/Queue/Queue.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 $def_detailview_recname. Keep variable name length under 20.
Open

    public $def_detailview_recname = 'subject';
Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 15 and the first side effect is on line 11.
Open

<?php
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

The property $search_fields_name is not named in camelCase.
Open

class Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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_detailview_recname is not named in camelCase.
Open

class Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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_sort_order is not named in camelCase.
Open

class Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 $popup_fields is not named in camelCase.
Open

class Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 Queue extends Vtiger_CRMEntity
{
    public $table_name = 'u_yf_queue';
    public $table_index = 'queueid';

Severity: Minor
Found in modules/Queue/Queue.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 $tab_name = ['vtiger_crmentity', 'u_yf_queue'];
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

     * Mandatory for Saving, Include tablename and tablekey columnname here.
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

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

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

    // For Popup listview and UI type support
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

        } elseif ('module.postupdate' === $eventType) {
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

    // Column value to use on detail view record text display
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

     * @param string $moduleName Module name
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

     * Mandatory for Saving, Include tables related to this module.
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

        'vtiger_crmentity' => 'crmid',
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

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

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

        // Format: Field Label => Array(tablename, columnname)
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

    ];
Severity: Minor
Found in modules/Queue/Queue.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/Queue/Queue.php by phpcodesniffer

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

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

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

    public function moduleHandler($moduleName, $eventType)
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

        } elseif ('module.preuninstall' === $eventType) {
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

        // Format: Field Label => fieldname
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

     * Invoked when special actions are performed on the module.
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

        if ('module.postinstall' === $eventType) {
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

        'Assigned To' => ['vtiger_crmentity', 'assigned_user_id'],
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

    public $popup_fields = ['subject'];
Severity: Minor
Found in modules/Queue/Queue.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/Queue/Queue.php by phpcodesniffer

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

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

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

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

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

    // For Popup window record selection
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

    public $def_detailview_recname = 'subject';
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

        } elseif ('module.disabled' === $eventType) {
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

    public $tab_name_index = [
Severity: Minor
Found in modules/Queue/Queue.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/Queue/Queue.php by phpcodesniffer

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

    protected $lockFields = ['queue_status' => ['PLL_ACCEPTED', 'PLL_CANCELLED', 'PLL_COMPLETED']];
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

        } elseif ('module.preupdate' === $eventType) {
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in modules/Queue/Queue.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/Queue/Queue.php by phpcodesniffer

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

        'u_yf_queue' => 'queueid'
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

        'FL_SUBJECT' => ['queue', 'subject'],
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

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

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

     * @param string $eventType  Event Type
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

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

        'FL_SUBJECT' => 'subject',
Severity: Minor
Found in modules/Queue/Queue.php by phpcodesniffer

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

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

There are no issues that match your filters.

Category
Status