YetiForceCompany/YetiForceCRM

View on GitHub
include/runtime/Cache.php

Summary

Maintainability
C
7 hrs
Test Coverage
F
15%

Vtiger_Cache has 39 functions (exceeds 20 allowed). Consider refactoring.
Open

class Vtiger_Cache
{
    private static $selfInstance = false;
    public static $cacheEnable = true;
    protected $connector;
Severity: Minor
Found in include/runtime/Cache.php - About 5 hrs to fix

    The class Vtiger_Cache has an overall complexity of 74 which is very high. The configured complexity threshold is 50.
    Open

    class Vtiger_Cache
    {
        private static $selfInstance = false;
        public static $cacheEnable = true;
        protected $connector;
    Severity: Minor
    Found in include/runtime/Cache.php by phpmd

    File Cache.php has 271 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /* +***********************************************************************************
     * The contents of this file are subject to the vtiger CRM Public License Version 1.0
     * ("License"); You may not use this file except in compliance with the License
     * The Original Code is:  vtiger CRM Open Source
    Severity: Minor
    Found in include/runtime/Cache.php - About 2 hrs to fix

      The class Vtiger_Cache has 18 fields. Consider redesigning Vtiger_Cache to keep the number of fields under 15.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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

      Class "Vtiger_Cache" has 39 methods, which is greater than 20 authorized. Split it into smaller classes.
      Open

      class Vtiger_Cache
      Severity: Major
      Found in include/runtime/Cache.php by sonar-php

      A class that grows too much tends to aggregate too many responsibilities and inevitably becomes harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor the class into smaller ones which focus on well defined topics.

      The method getInstance uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
      Open

              } else {
                  self::$selfInstance = new self();
      
                  return self::$selfInstance;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ElseExpression

      Since: 1.4.0

      An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

      Example

      class Foo
      {
          public function bar($flag)
          {
              if ($flag) {
                  // one branch
              } else {
                  // another branch
              }
          }
      }

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

      Avoid using static access to class 'Vtiger_Cache_Connector' in method '__construct'.
      Open

              $this->connector = Vtiger_Cache_Connector::getInstance();
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      StaticAccess

      Since: 1.4.0

      Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

      Example

      class Foo
      {
          public function bar()
          {
              Bar::baz();
          }
      }

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

      Expected an object instance when accessing an instance property, but saw an expression with type false
      Open

              $self->connector->flush();
      Severity: Critical
      Found in include/runtime/Cache.php by phan

      Assigning \Vtiger_Cache to property but \Vtiger_Cache::$selfInstance is false
      Open

                  self::$selfInstance = new self();
      Severity: Minor
      Found in include/runtime/Cache.php by phan

      Expected an object instance when accessing an instance property, but saw an expression with type false
      Open

                  return $self->connector->get($ns, $key);
      Severity: Critical
      Found in include/runtime/Cache.php by phan

      Expected an object instance when accessing an instance property, but saw an expression with type false
      Open

                  $self->connector->set($ns, $key, $value);
      Severity: Critical
      Found in include/runtime/Cache.php by phan

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

          private static $_owners_db_names_list;
      Severity: Minor
      Found in include/runtime/Cache.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 Vtiger_Cache
      Severity: Minor
      Found in include/runtime/Cache.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 13 and the first side effect is on line 11.
      Open

      <?php
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      The property $_owners_names_list is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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_exists is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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

      Avoid variables with short names like $ns. Configured minimum length is 3.
      Open

          public static function get($ns, $key)
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

      Avoid variables with short names like $ns. Configured minimum length is 3.
      Open

          public static function set($ns, $key, $value)
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

      Avoid variables with short names like $id. Configured minimum length is 3.
      Open

          public function setOwnerDbName($id, $value)
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

      The class Vtiger_Cache is not named in CamelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseClassName

      Since: 0.2

      It is considered best practice to use the CamelCase notation to name classes.

      Example

      class class_name {
      }

      Source

      The property $_module_ownedby is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_picklist_id is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_name_fields is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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

      Avoid variables with short names like $id. Configured minimum length is 3.
      Open

          public function getOwnerName($id)
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

      The property $_module_name is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_user_id is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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

      Avoid variables with short names like $id. Configured minimum length is 3.
      Open

          public function hasOwnerName($id)
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

      Avoid variables with short names like $id. Configured minimum length is 3.
      Open

          public function setOwnerName($id, $value)
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

      Avoid variables with short names like $id. Configured minimum length is 3.
      Open

          public function hasOwnerDbName($id)
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

      The property $_user_list is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_group_list is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_field_instance is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_group_id is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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

      Avoid variables with short names like $id. Configured minimum length is 3.
      Open

          public function getOwnerDbName($id)
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      ShortVariable

      Since: 0.2

      Detects when a field, local, or parameter has a very short name.

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                  $r += $this->q;
              }
          }
      }

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

      The property $_picklist_details is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_owners_db_names_list is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_admin_user_id is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 $_block_fields is not named in camelCase.
      Open

      class Vtiger_Cache
      {
          private static $selfInstance = false;
          public static $cacheEnable = true;
          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.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 parameter $GroupList is not named in camelCase.
      Open

          public function setGroupList($module, $GroupList, $currentUser)
          {
              if (self::$cacheEnable) {
                  self::$_group_list[$currentUser][$module] = $GroupList;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseParameterName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething($user_name) {
          }
      }

      Source

      Property name "$_picklist_details" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_picklist_details;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_group_list" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_group_list;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_user_list" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_user_list;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_block_fields" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_block_fields;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_user_id" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_user_id;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_admin_user_id" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_admin_user_id = false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_module_ownedby" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_module_ownedby;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_group_id" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_group_id;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_name_fields" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_name_fields;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_table_exists" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_table_exists;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_field_instance" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_field_instance;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_picklist_id" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_picklist_id;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_module_name" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_module_name = [];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_owners_names_list" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_owners_names_list;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Property name "$_owners_db_names_list" should not be prefixed with an underscore to indicate visibility
      Open

          private static $_owners_db_names_list;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public static $cacheEnable = true;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$selfInstance) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$selfInstance;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              $self->connector->flush();
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_group_list[$currentUser][$module])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private function __construct()
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_user_list[$currentUser][$module])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_user_list[$currentUser][$module] = $userList;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_picklist_details;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_picklist_details[$module][$field];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setPicklistDetails($module, $field, $picklistDetails)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_picklist_details[$module][$field] = $picklistDetails;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              $self = self::getInstance();
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getGroupList($module, $currentUser)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_picklist_details[$module][$field])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$selfInstance = new self();
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public static function set($ns, $key, $value)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public static function get($ns, $key)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_user_list[$currentUser][$module];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getPicklistDetails($module, $field)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_user_list;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setUserList($module, $userList, $currentUser)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_group_list;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_module_ownedby;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setGroupList($module, $GroupList, $currentUser)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$selfInstance;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if ($key && self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return $self->connector->get($ns, $key);
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  $self->connector->set($ns, $key, $value);
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_group_list[$currentUser][$module] = $GroupList;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $selfInstance = false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              $this->connector = Vtiger_Cache_Connector::getInstance();
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public static function getInstance()
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              $self = self::getInstance();
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public static function flush()
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_group_list[$currentUser][$module];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getModuleOwned($module)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_admin_user_id = $userId;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_module_name[$moduleId];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_name_fields[$module] = $nameFields;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              } else {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              $self = self::getInstance();
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_module_ownedby[$module])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_admin_user_id = false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_module_name[$moduleId])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_table_exists[$tableName])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_table_exists[$tableName] = $exists;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getGroupId($groupName)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_group_id[$groupName])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_name_fields;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_field_instance[$moduleId][$field];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return self::$_admin_user_id;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_field_instance[$moduleId][$field] = $instance;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getUserId($userName)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setBlockFields($block, $module, $fields)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_name_fields[$module];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setNameFields($module, $nameFields)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          protected $connector;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getUserList($module, $currentUser)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_field_instance;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_picklist_id[$moduleName][$fieldName];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_block_fields[$module][$block])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_block_fields[$module][$block] = $fields;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_owners_db_names_list[$id];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return $value !== false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getModuleName($moduleId)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setModuleName($moduleId, $moduleName)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setPicklistId($fieldName, $moduleName, $picklistId)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setGroupId($groupName, $groupId)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_module_name = [];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_module_name[$moduleId] = $moduleName;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_user_id[$userName];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_picklist_id;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getPicklistId($fieldName, $moduleName)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getBlockFields($block, $module)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_block_fields[$module][$block];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function hasOwnerName($id)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getFieldInstance($field, $moduleId)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setFieldInstance($field, $moduleId, $instance)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_table_exists;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_group_id[$groupName] = $groupId;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_block_fields;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_module_ownedby[$module];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return $this->connector->get('purify', $key);
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_owners_names_list[$id] = $value;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_owners_db_names_list[$id])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setOwnerDbName($id, $value)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_table_exists[$tableName];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setTableExists($tableName, $exists)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function purifyGet($key)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getAdminUserId()
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          //cache for the module Instance
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  $this->connector->set('purify', $key, $value);
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_owners_names_list[$id])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_owners_names_list[$id];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function hasOwnerDbName($id)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_module_ownedby[$module] = $ownedby;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_picklist_id[$moduleName][$fieldName] = $picklistId;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getNameFields($module)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_name_fields[$module])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return $value !== false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_owners_db_names_list[$id] = $value;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setModuleOwned($module, $ownedby)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setAdminUserId($userId)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setUserId($userName, $userId)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  self::$_user_id[$userName] = $userId;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

                  return self::$_group_id[$groupName];
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              $value = $this->getOwnerName($id);
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_field_instance[$moduleId][$field])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_picklist_id[$moduleName][$fieldName])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (self::$cacheEnable) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              if (isset(self::$_user_id[$userName])) {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getOwnerName($id)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_user_id;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getTableExists($tableName)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_group_id;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function getOwnerDbName($id)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              return false;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function purifySet($key, $value)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_owners_names_list;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          {
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          public function setOwnerName($id, $value)
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

          private static $_owners_db_names_list;
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

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

              $value = $this->getOwnerDbName($id);
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      Class name "Vtiger_Cache" is not in camel caps format
      Open

      class Vtiger_Cache
      Severity: Minor
      Found in include/runtime/Cache.php by phpcodesniffer

      The variable $_user_list is not named in camelCase.
      Open

          public function setUserList($module, $userList, $currentUser)
          {
              if (self::$cacheEnable) {
                  self::$_user_list[$currentUser][$module] = $userList;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_field_instance is not named in camelCase.
      Open

          public function getFieldInstance($field, $moduleId)
          {
              if (isset(self::$_field_instance[$moduleId][$field])) {
                  return self::$_field_instance[$moduleId][$field];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_module_name is not named in camelCase.
      Open

          public function getModuleName($moduleId)
          {
              if (isset(self::$_module_name[$moduleId])) {
                  return self::$_module_name[$moduleId];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_user_id is not named in camelCase.
      Open

          public function getUserId($userName)
          {
              if (isset(self::$_user_id[$userName])) {
                  return self::$_user_id[$userName];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_owners_db_names_list is not named in camelCase.
      Open

          public function setOwnerDbName($id, $value)
          {
              if (self::$cacheEnable) {
                  self::$_owners_db_names_list[$id] = $value;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_module_name is not named in camelCase.
      Open

          public function getModuleName($moduleId)
          {
              if (isset(self::$_module_name[$moduleId])) {
                  return self::$_module_name[$moduleId];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_group_id is not named in camelCase.
      Open

          public function getGroupId($groupName)
          {
              if (isset(self::$_group_id[$groupName])) {
                  return self::$_group_id[$groupName];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_block_fields is not named in camelCase.
      Open

          public function getBlockFields($block, $module)
          {
              if (isset(self::$_block_fields[$module][$block])) {
                  return self::$_block_fields[$module][$block];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_group_list is not named in camelCase.
      Open

          public function getGroupList($module, $currentUser)
          {
              if (isset(self::$_group_list[$currentUser][$module])) {
                  return self::$_group_list[$currentUser][$module];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_table_exists is not named in camelCase.
      Open

          public function getTableExists($tableName)
          {
              if (isset(self::$_table_exists[$tableName])) {
                  return self::$_table_exists[$tableName];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_group_id is not named in camelCase.
      Open

          public function setGroupId($groupName, $groupId)
          {
              if (self::$cacheEnable) {
                  self::$_group_id[$groupName] = $groupId;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_block_fields is not named in camelCase.
      Open

          public function getBlockFields($block, $module)
          {
              if (isset(self::$_block_fields[$module][$block])) {
                  return self::$_block_fields[$module][$block];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_table_exists is not named in camelCase.
      Open

          public function setTableExists($tableName, $exists)
          {
              if (self::$cacheEnable) {
                  self::$_table_exists[$tableName] = $exists;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_field_instance is not named in camelCase.
      Open

          public function setFieldInstance($field, $moduleId, $instance)
          {
              if (self::$cacheEnable) {
                  self::$_field_instance[$moduleId][$field] = $instance;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_module_name is not named in camelCase.
      Open

          public function setModuleName($moduleId, $moduleName)
          {
              if (self::$cacheEnable) {
                  self::$_module_name[$moduleId] = $moduleName;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_user_id is not named in camelCase.
      Open

          public function setUserId($userName, $userId)
          {
              if (self::$cacheEnable) {
                  self::$_user_id[$userName] = $userId;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_name_fields is not named in camelCase.
      Open

          public function getNameFields($module)
          {
              if (isset(self::$_name_fields[$module])) {
                  return self::$_name_fields[$module];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_name_fields is not named in camelCase.
      Open

          public function setNameFields($module, $nameFields)
          {
              if (self::$cacheEnable) {
                  self::$_name_fields[$module] = $nameFields;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_owners_names_list is not named in camelCase.
      Open

          public function setOwnerName($id, $value)
          {
              if (self::$cacheEnable) {
                  self::$_owners_names_list[$id] = $value;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_group_list is not named in camelCase.
      Open

          public function setGroupList($module, $GroupList, $currentUser)
          {
              if (self::$cacheEnable) {
                  self::$_group_list[$currentUser][$module] = $GroupList;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_name_fields is not named in camelCase.
      Open

          public function getNameFields($module)
          {
              if (isset(self::$_name_fields[$module])) {
                  return self::$_name_fields[$module];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_owners_names_list is not named in camelCase.
      Open

          public function getOwnerName($id)
          {
              if (isset(self::$_owners_names_list[$id])) {
                  return self::$_owners_names_list[$id];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_owners_names_list is not named in camelCase.
      Open

          public function getOwnerName($id)
          {
              if (isset(self::$_owners_names_list[$id])) {
                  return self::$_owners_names_list[$id];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_picklist_details is not named in camelCase.
      Open

          public function getPicklistDetails($module, $field)
          {
              if (isset(self::$_picklist_details[$module][$field])) {
                  return self::$_picklist_details[$module][$field];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_picklist_id is not named in camelCase.
      Open

          public function getPicklistId($fieldName, $moduleName)
          {
              if (isset(self::$_picklist_id[$moduleName][$fieldName])) {
                  return self::$_picklist_id[$moduleName][$fieldName];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_picklist_id is not named in camelCase.
      Open

          public function setPicklistId($fieldName, $moduleName, $picklistId)
          {
              if (self::$cacheEnable) {
                  self::$_picklist_id[$moduleName][$fieldName] = $picklistId;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $GroupList is not named in camelCase.
      Open

          public function setGroupList($module, $GroupList, $currentUser)
          {
              if (self::$cacheEnable) {
                  self::$_group_list[$currentUser][$module] = $GroupList;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_picklist_details is not named in camelCase.
      Open

          public function setPicklistDetails($module, $field, $picklistDetails)
          {
              if (self::$cacheEnable) {
                  self::$_picklist_details[$module][$field] = $picklistDetails;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_module_ownedby is not named in camelCase.
      Open

          public function getModuleOwned($module)
          {
              if (isset(self::$_module_ownedby[$module])) {
                  return self::$_module_ownedby[$module];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_user_list is not named in camelCase.
      Open

          public function getUserList($module, $currentUser)
          {
              if (isset(self::$_user_list[$currentUser][$module])) {
                  return self::$_user_list[$currentUser][$module];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_user_list is not named in camelCase.
      Open

          public function getUserList($module, $currentUser)
          {
              if (isset(self::$_user_list[$currentUser][$module])) {
                  return self::$_user_list[$currentUser][$module];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_group_list is not named in camelCase.
      Open

          public function getGroupList($module, $currentUser)
          {
              if (isset(self::$_group_list[$currentUser][$module])) {
                  return self::$_group_list[$currentUser][$module];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_picklist_id is not named in camelCase.
      Open

          public function getPicklistId($fieldName, $moduleName)
          {
              if (isset(self::$_picklist_id[$moduleName][$fieldName])) {
                  return self::$_picklist_id[$moduleName][$fieldName];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_owners_db_names_list is not named in camelCase.
      Open

          public function getOwnerDbName($id)
          {
              if (isset(self::$_owners_db_names_list[$id])) {
                  return self::$_owners_db_names_list[$id];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_owners_db_names_list is not named in camelCase.
      Open

          public function getOwnerDbName($id)
          {
              if (isset(self::$_owners_db_names_list[$id])) {
                  return self::$_owners_db_names_list[$id];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_table_exists is not named in camelCase.
      Open

          public function getTableExists($tableName)
          {
              if (isset(self::$_table_exists[$tableName])) {
                  return self::$_table_exists[$tableName];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_group_id is not named in camelCase.
      Open

          public function getGroupId($groupName)
          {
              if (isset(self::$_group_id[$groupName])) {
                  return self::$_group_id[$groupName];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_field_instance is not named in camelCase.
      Open

          public function getFieldInstance($field, $moduleId)
          {
              if (isset(self::$_field_instance[$moduleId][$field])) {
                  return self::$_field_instance[$moduleId][$field];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_user_id is not named in camelCase.
      Open

          public function getUserId($userName)
          {
              if (isset(self::$_user_id[$userName])) {
                  return self::$_user_id[$userName];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_picklist_details is not named in camelCase.
      Open

          public function getPicklistDetails($module, $field)
          {
              if (isset(self::$_picklist_details[$module][$field])) {
                  return self::$_picklist_details[$module][$field];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_module_ownedby is not named in camelCase.
      Open

          public function getModuleOwned($module)
          {
              if (isset(self::$_module_ownedby[$module])) {
                  return self::$_module_ownedby[$module];
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_module_ownedby is not named in camelCase.
      Open

          public function setModuleOwned($module, $ownedby)
          {
              if (self::$cacheEnable) {
                  self::$_module_ownedby[$module] = $ownedby;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $_block_fields is not named in camelCase.
      Open

          public function setBlockFields($block, $module, $fields)
          {
              if (self::$cacheEnable) {
                  self::$_block_fields[$module][$block] = $fields;
              }
      Severity: Minor
      Found in include/runtime/Cache.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      There are no issues that match your filters.

      Category
      Status