YetiForceCompany/YetiForceCRM

View on GitHub
modules/OSSMail/ConfigTemplate.php

Summary

Maintainability
B
5 hrs
Test Coverage

File ConfigTemplate.php has 379 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * OSSMail module config.
 *
 * @copyright YetiForce S.A.
Severity: Minor
Found in modules/OSSMail/ConfigTemplate.php - About 5 hrs to fix

    syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ']'
    Open

            'sanitization' => fn () => (int) func_get_arg(0)
    Severity: Critical
    Found in modules/OSSMail/ConfigTemplate.php by phan

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

            'description' => 'Default host.',

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

                    }

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

                    $saveValue[$value] = $value;

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

        ],

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

            'validation' => '\App\Validator::bool',

    Line exceeds 120 characters; contains 139 characters
    Open

                return $arg && !is_numeric($arg) && \is_string($arg) && $arg === strip_tags($arg) && 256 > \App\TextUtils::getTextLength($arg);

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

            'default' => '/images/null.png',

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

        ],

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

            'default' => 30,

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

            'default' => 1000,

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

            'description' => 'Turn on/off prefer html'

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

            'default' => false,

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

            'default' => ['ssl://imap.gmail.com:993' => 'ssl://imap.gmail.com:993'],

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

            'default' => 'ssl://smtp.gmail.com:465',

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

                $arg = func_get_arg(0);

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

        ],

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

            'validation' => function () {

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

            }

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

            },

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

        'db_prefix' => [

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

        ],

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

        'mail_pagesize' => [

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

        'imap_cache' => [

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

        'messages_cache_threshold' => [

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

        'prefer_html' => [

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

        ],

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

        'imap_host' => [

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

                $saveValue = [];

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

        ],

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

            'validation' => function () {

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

                $arg = func_get_arg(0);

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

        'imap_params' => [

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

            'default' => [],

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

                return $arg && !is_numeric($arg) && \is_string($arg) && $arg === strip_tags($arg) && 256 > \App\TextUtils::getTextLength($arg);

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

        'identities_level' => [

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

        ],

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

                $arg = func_get_arg(0);

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

                return true;

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

        'smtp_host' => [

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

            },

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

        'imap_open_add_connection_type' => [

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

        ],

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

        ],

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

        'plugins' => [

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

                'identity_smtp', 'thunderbird_labels', 'zipdownload', 'archive', 'html5_notifier', 'contextmenu', 'yetiforce', //'enigma'

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

            'description' => "Imap cache, Values: 'db', 'apc' and 'memcache' or 'memcached'",

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

                }

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

                return $saveValue;

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

            'validation' => '\App\Validator::bool',

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

            'default' => '%u',

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

        'ip_check' => [

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

        ],

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

            'default' => 'roundcube_',

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

            'default' => \App\Encryption::generatePassword(24),

    Line exceeds 120 characters; contains 185 characters
    Open

            'description' => 'This key is used for encrypting purposes, like storing of imap password in the session. For the default cipher_method a required key length is 24 characters.',

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

            'default' => 0,

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

            'default' => 30,

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

            'description' => 'Mail page size.'

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

                    if (!\App\Validator::url($url)) {

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

            'default' => false,

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

            'default' => true,

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

            'sanitization' => '\App\Purifier::bool'

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

        ],

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

        ],

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

            'validation' => '\App\Validator::alnum',

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

            'description' => 'List of plugins',

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

        'preview_pane' => [

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

                return $arg && \App\Validator::url($arg);

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

            'default' => 'gmail.com',

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

            'validation' => function () {

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

                return '' === $arg || \App\Validator::domain($arg);

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

            'description' => 'Add connection type',

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

            'description' => 'Login to SMTP server',

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

        'smtp_pass' => [

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

            'validation' => function () {

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

                return !empty($arg) && 256 > \App\TextUtils::getTextLength($arg);

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

            'description' => 'Skin logo',

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

            'validation' => function () {

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

        ],

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

            'sanitization' => fn () => (int) func_get_arg(0)

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

            'description' => 'This key is used for encrypting purposes, like storing of imap password in the session. For the default cipher_method a required key length is 24 characters.',

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

                foreach ($arg as $url) {

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

            'sanitization' => '\App\Purifier::bool'

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

        'smtp_user' => [

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

                $arg = func_get_arg(0);

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

            }

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

            'default' => false,

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

            'description' => 'Mime param folding'

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

            'description' => "Enables messages cache. Only 'db' cache is supported.",

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

            'description' => 'Turn on/off preview pane'

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

            'validation' => function () {

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

                if (!\is_array($values)) {

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

            'sanitization' => '\App\Purifier::purify'

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

            'description' => 'Enable this for imapConnect and MS Exchange bug "Kerberos error: Credentials cache file  ... not found "DISABLE_AUTHENTICATOR" => "GSSAPI"',

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

            },

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

            'sanitization' => '\App\Purifier::bool'

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

        //------------------------------------------------------------------------------------------------------------

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

        'des_key' => [

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

            'default' => [

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

        ],

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

            'default' => true,

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

        ],

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

                $arg = (array) \App\Purifier::purify($arg);

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

                        return false;

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

            'description' => 'User name domain',

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

            'sanitization' => '\App\Purifier::encodeHtml'

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

                $arg = func_get_arg(0);

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

            'validation' => function () {

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

                return is_numeric($arg) && \in_array($arg, [0, 1, 2, 3, 4]);

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

            'description' => 'Session lifetime in minutes',

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

            'description' => 'Set default prefix'

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

            ],

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

        'messages_cache' => [

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

            'default' => 'db',

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

            'default' => true,

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

                }

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

            }

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

        ],

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

            'description' => 'Ip check.',

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

            'default' => true,

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

            'description' => 'Enable spell check',

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

            'description' => "Maximum cached message size in kilobytes.\nNote: On MySQL this should be less than (max_allowed_packet - 30%)",

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

        'validate_cert' => [

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

            'description' => "SMTP password (if required) if you use %p as the password Roundcube will use the current user's password for login",

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

        'language' => [

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

            'validation' => '\App\Validator::bool',

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

            'default' => 0,

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

            'validation' => '\App\Validator::naturalNumber',

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

        ],

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

            'description' => 'Auto create user.'

    Line exceeds 120 characters; contains 137 characters
    Open

            'description' => "Maximum cached message size in kilobytes.\nNote: On MySQL this should be less than (max_allowed_packet - 30%)",

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

            },

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

            'sanitization' => function () {

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

            'default' => 'en_US',

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

        'skin_logo' => [

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

                $arg = func_get_arg(0);

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

                return !empty($arg) && \App\Purifier::purify($arg);

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

            },

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

            'description' => 'Identities level.',

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

        ],

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

                    $value = \App\Purifier::purify($value);

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

                }

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

            }

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

        ],

    Line exceeds 120 characters; contains 166 characters
    Open

            'description' => 'Enable this for imapConnect and MS Exchange bug "Kerberos error: Credentials cache file  ... not found "DISABLE_AUTHENTICATOR" => "GSSAPI"',

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

        ],

    Line exceeds 120 characters; contains 142 characters
    Open

            'description' => "SMTP password (if required) if you use %p as the password Roundcube will use the current user's password for login",

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

                $arg = func_get_arg(0);

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

            'description' => 'Set default language',

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

                return $arg && \in_array($arg, \Settings_OSSMail_Config_Model::LANGUAGES);

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

        ],

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

                $arg = func_get_arg(0);

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

        'mime_param_folding' => [

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

        ],

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

            'default' => 300,

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

            'description' => 'Send mail delay'

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

        ],

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

        'ldap_debug' => [

    Line exceeds 120 characters; contains 211 characters
    Open

        define(\'RCUBE_INSTALL_PATH\', realpath(ROOT_DIRECTORY . DIRECTORY_SEPARATOR . \'public_html\' . DIRECTORY_SEPARATOR . \'modules\' . DIRECTORY_SEPARATOR . \'OSSMail\' . DIRECTORY_SEPARATOR . \'roundcube\'));

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

            'description' => 'Log dir',

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

        ],

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

        'smtp_timeout' => [

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

        ],

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

                if (!$arg) {

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

                foreach ($values as $value) {

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

            'description' => 'Name of SMTP server',

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

        'username_domain' => [

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

            'description' => 'Validate cert',

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

                $arg = func_get_arg(0);

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

            'validation' => function () {

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

            }

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

                return ['*' => \App\Purifier::encodeHtml($arg)];

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

        'enable_spellcheck' => [

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

            'sanitization' => fn () => (int) func_get_arg(0)

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

        'session_lifetime' => [

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

        'auto_create_user' => [

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

            'default' => 'db',

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

                    return false;

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

                $values = func_get_arg(0);

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

                    $values = [$values];

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

                }

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

            'default' => '%p',

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

            'sanitization' => function () {

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

            'sanitization' => '\App\Purifier::bool'

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

            'validation' => '\App\Validator::bool',

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

        ],

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

        ],

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

        ],

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

            'default' => 1,

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

            'description' => 'Set reply mode'

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

        ],

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

        'smtp_log' => [

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

        ],

    Line exceeds 120 characters; contains 211 characters
    Open

        define(\'RCUBE_INSTALL_PATH\', realpath(ROOT_DIRECTORY . DIRECTORY_SEPARATOR . \'public_html\' . DIRECTORY_SEPARATOR . \'modules\' . DIRECTORY_SEPARATOR . \'OSSMail\' . DIRECTORY_SEPARATOR . \'roundcube\'));

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

            'default' => "return 'mysql://' . \\Config\\Db::\$db_username . ':' . \\Config\\Db::\$db_password . '@' . \\Config\\Db::\$db_server . ':' . \\Config\\Db::\$db_port . '/' . \\Config\\Db::\$db_name;",

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

            'default' => [

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

            'type' => 'function',

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_LOG_SESSION;',

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

        ],

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

            'type' => 'function',

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

            'default' => 'if (!defined(\'RCUBE_INSTALL_PATH\')) {

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

            'description' => 'Connection options imap.',

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

                'ssl' => [

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

            'description' => 'The value to give when sending'

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

            'default' => '',

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

            'description' => 'Name your service. This is displayed on the login screen and in the window title',

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

            'default' => '',

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

        'zipdownload_charset' => [

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

            'default' => 1,

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

            'description' => 'Mdn requests'

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

        'time_formats' => [

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

            'default' => 0,

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

        'debug_level' => [

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

            'description' => 'Log sent messages to cache/logs/sendmail',

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

            'type' => 'function',

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_LOG_LOGINS;',

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

        'session_debug' => [

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

            'type' => 'function',

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

        'smtp_debug' => [

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

            'description' => 'Database connection string (DSN) for read+write operations'

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

                    'verify_peer_name' => false,

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

            'description' => 'Smtp time out',

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

        'enable_authres_status_column' => [

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

        'address_book_type' => [

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

            'default' => '500MB',

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

        'mdn_requests' => [

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

        'sendmail_delay' => [

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

            'description' => 'Set date format',

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_SQL_DEBUG;',

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

        ],

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

            'sanitization' => '\App\Purifier::purify'

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

        'enable_variables_in_signature' => [

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

        ],

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

        ],

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

            'type' => 'function',

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

            'description' => 'Sql queries debug',

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_LDAP_DEBUG;',

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

                'ssl' => [

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

            'default' => ['flag', 'status', 'subject', 'fromto', 'date', 'size', 'attachment', 'authres_status', 'threads'],

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

        'show_statuses' => [

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

            'description' => 'Address book page size.'

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

            'description' => "Zip selection of mail messages\nThis option enables downloading of multiple messages as one zip archive.\nThe number or string value specifies maximum total size of all messages\nin the archive (not the size of the archive itself)."

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

            'default' => 0,

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

        'date_long' => [

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

        'date_format' => [

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

        ],

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

        'root_directory' => [

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

        ],

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

            'description' => 'Connection options smtp.',

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

        'product_name' => [

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

            'description' => 'Contact functionality is disabled'

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

            'description' => 'Enables display of email address with name instead of a name (and address in title)'

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

        ],

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

        ],

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

            'description' => 'Set the long date format',

    Line exceeds 120 characters; contains 166 characters
    Open

            'description' => 'Display remote resources (inline images, styles). Value: 0 - Never, always ask, 1 - Ask if sender is not in address book, 2 - Always allow',

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

            'description' => 'Use this charset as fallback for message decoding'

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

            'description' => 'Debug level. sum of: 1 = log; 4 = show, 8 = trace'

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

        'log_logins' => [

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

            'description' => 'Session authentication debug',

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

                ],

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

            'default' => 10,

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

            'description' => 'Show statuses'

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

            'default' => 50,

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

        ],

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

            'default' => 'YetiForce Webmail',

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

            'validation' => function () {

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

        ],

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

            'description' => 'List cols',

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

            'default' => 127,

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

            'default' => false,

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

            'default' => 'UTF-8',

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

        ],

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

        ],

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

            'description' => 'give this choice of time formats to the user to select from',

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

        ],

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

            'default' => 'return ROOT_DIRECTORY . \DIRECTORY_SEPARATOR;',

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

            'description' => 'Root directory',

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

        ],

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

            'description' => 'Smtp conversation debug',

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

        ],

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

        'db_dsnw' => [

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

                    'verify_peer_name' => false,

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

            ],

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

            'description' => 'Set the skin'

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

        ],

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

        'time_format' => [

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

        'show_images' => [

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

        ],

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

            'description' => 'Logins successful/failed',

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

        ],

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

        ],

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

            'type' => 'function',

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

            'type' => 'function',

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

            'type' => 'function',

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

                ],

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

        'smtp_conn_options' => [

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

                $arg = func_get_arg(0);

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

            'description' => 'Enable authres status column'

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

            'default' => 0,

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

            'default' => 'Y-m-d',

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_SMTP_LOG;',

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

            'type' => 'function',

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

            'description' => 'Imap conversation debug',

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

        'devel_mode' => [

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

            'description' => 'Temp dir',

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

        'smtp_helo_host' => [

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

            'description' => 'Add this user-agent to message headers when sending',

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

        'skin' => [

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

        ],

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

            'default' => 'Y-m-d H:i',

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

            'description' => 'Display remote resources (inline images, styles). Value: 0 - Never, always ask, 1 - Ask if sender is not in address book, 2 - Always allow',

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

            'description' => 'Per user logging',

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

        ],

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_IMAP_DEBUG;',

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

                    'verify_peer' => false,

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

            'default' => 'YetiForceCRM',

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

        ],

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

            'description' => 'Html editor',

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

            'description' => 'Set autosave time'

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

            'type' => 'function',

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

            'type' => 'function',

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

        'per_user_logging' => [

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

            'type' => 'function',

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

            'default' => 'elastic',

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

        'list_cols' => [

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

        ],

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

        ],

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

        ],

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

            'description' => 'Store spam messages in this mailbox'

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

            'description' => 'Charset to use for filenames inside the zip'

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

            'description' => 'Set time format',

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

        'default_charset' => [

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

        ],

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

        'imap_debug' => [

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

            'description' => 'Ldap conversation debug',

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_SMTP_DEBUG;',

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

            'type' => 'function',

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_DEVEL_MODE;',

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

        ],

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

            'default' => 'if (!defined(\'RCUBE_INSTALL_PATH\')) {

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

        'temp_dir' => [

    Line exceeds 120 characters; contains 206 characters
    Open

            'default' => "return 'mysql://' . \\Config\\Db::\$db_username . ':' . \\Config\\Db::\$db_password . '@' . \\Config\\Db::\$db_server . ':' . \\Config\\Db::\$db_port . '/' . \\Config\\Db::\$db_name;",

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

            ],

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

        ],

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

                    'verify_peer' => false,

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

            },

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

        ],

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

        ],

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

            'default' => true,

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

        'zipdownload_selection' => [

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

            'default' => 'H:i',

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

            'default' => ['G:i', 'H:i', 'g:i a', 'h:i A', 'H:i:s (T P)'],

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

        ],

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

        ],

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

            'default' => 'UTF-8',

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_DEBUG_LEVEL;',

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

            'description' => 'Debugging information about php memory consumption',

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

            'type' => 'function',

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

            'default' => [

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

        ],

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

        ],

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

        'useragent' => [

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

            'description' => 'Enable variables in signature'

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

        ],

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

        'htmleditor' => [

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

        'draft_autosave' => [

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

        'reply_mode' => [

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

            'default' => 'return \Config\Debug::$ROUNDCUBE_PER_USER_LOGGING;',

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

        'sql_debug' => [

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

        'log_dir' => [

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

        ],

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

        'imap_conn_options' => [

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

                return $arg && \App\Purifier::purify($arg);

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

        ],

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

        'message_show_email' => [

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

            'default' => true,

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

        'addressbook_pagesize' => [

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

        'junk_mbox' => [

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

            'default' => '',

    Line exceeds 120 characters; contains 258 characters
    Open

            'description' => "Zip selection of mail messages\nThis option enables downloading of multiple messages as one zip archive.\nThe number or string value specifies maximum total size of all messages\nin the archive (not the size of the archive itself)."

    Space before opening parenthesis of function call prohibited
    Open

            'sanitization' => fn () => (int) func_get_arg(0)

    Space before opening parenthesis of function call prohibited
    Open

            'sanitization' => fn () => (int) func_get_arg(0)

    There are no issues that match your filters.

    Category
    Status