YetiForceCompany/YetiForceCRM

View on GitHub
modules/Calendar/ConfigTemplate.php

Summary

Maintainability
A
0 mins
Test Coverage
F
50%

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

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

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' => 10,

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

        'description' => 'Limits the number of events displayed on a day. Boolean, Integer. default: false',

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

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

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

            $arg = func_get_arg(0);

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

            return 'Extended' === $arg || 'Standard' === $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

    ],

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

        '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

        'description' => 'Display days below the form in quick create',

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

        'description' => 'Max number of records to update status in cron',

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' => 'Max number of notifications to display, 0 - no limits',

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

        'description' => 'Right calendar panel visible by default: true - show right panel, false - hide right panel',

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

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

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

    'SHOW_TIMELINE_DAY' => [

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

    'SHOW_QUICK_CREATE_BY_STATUS' => [

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',

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

    'AUTO_REFRESH_REMINDERS' => [

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

    'SHOW_DAYS_QUICKCREATE' => [

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

    ],

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

        'description' => 'Show activity status buttons in edit form',

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

        'description' => 'Shows number of the week in the year view: true - show, false - hide',

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

    'SHOW_TIMELINE_WEEK' => [

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

        'description' => 'Show calendar timeline in monthly view:  false = dayGridWeek, true = timeGridWeek',

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 'list' === $arg || 'switch' === $arg;

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

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

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

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

Line exceeds 120 characters; contains 223 characters
Open

        'description' => 'Exclude certain days-of-the-week from being displayed. The value is an array of day-of-week indices to hide. Each index is zero-base (Sunday=0) and ranges from 0-6. By default, no days are hidden',

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

        'description' => ' Auto refresh reminders',

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 126 characters
Open

        'description' => 'Calendar view - allowed values: Extended, Standard, refresh menu files after you change this value',

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

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

Line exceeds 120 characters; contains 153 characters
Open

        'description' => 'Shows the switch button or filter list in the calendar widget: switch - Switch "To realize" and "History", list - filter list',

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

    'SHOW_LIST_BUTTON' => [

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

    'SHOW_COMPANIES_IN_QUICKCREATE' => [

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

    'SHOW_ONLY_CURRENT_RECORDS_COUNT' => [

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

        'default' => 'Extended',

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

        },

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

    'SHOW_EDIT_FORM' => [

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

        'description' => 'Show default edit form',

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

        'default' => true,

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

        'default' => 'list',

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' => 'Exclude certain days-of-the-week from being displayed. The value is an array of day-of-week indices to hide. Each index is zero-base (Sunday=0) and ranges from 0-6. By default, no days are hidden',

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

        'default' => 5000,

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

    'maxNumberCalendarNotifications' => [

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

    'SHOW_ACTIVITYTYPES_AS_BUTTONS' => [

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

    'EVENT_LIMIT' => [

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

    'SHOW_RIGHT_PANEL' => [

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

    'CRON_MAX_NUMBERS_ACTIVITY_STATE' => [

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

        'description' => 'Calendar view - allowed values: Extended, Standard, refresh menu files after you change this value',

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

        'description' => 'Show the Calendar quick create window after changing the status: array - PLL_COMPLETED, PLL_CANCELLED',

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

        'description' => 'Button referring to the list view that includes filters: true - show, false - hide',

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

        '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

    'EXPORT_SUPPORTED_FILE_FORMATS' => [

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' => true,

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

        'description' => 'Show companies and processes in quickcreate',

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

    'SEND_REMINDER_INVITATION' => [

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

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

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

        'default' => 20,

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

    'WEEK_COUNT' => [

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

    'DASHBOARD_CALENDAR_WIDGET_FILTER_TYPE' => [

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

    ],

Line exceeds 120 characters; contains 129 characters
Open

        'description' => 'Show the Calendar quick create window after changing the status: array - PLL_COMPLETED, PLL_CANCELLED',

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

            return \is_array($arg) && empty(array_diff($arg, ['PLL_COMPLETED', 'PLL_CANCELLED']));

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',

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

    'HIDDEN_DAYS_IN_CALENDAR_VIEW' => [

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

        'default' => [0, 6],

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

            return 'Extended' === $arg || 'Standard' === $arg;

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

    'CALENDAR_VIEW' => [

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

        'description' => 'Shows activity types as buttons',

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' => 'Show calendar timeline in day view: false = dayGridDay, true = timeGridDay',

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

        'default' => true,

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

        'default' => true,

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

        'default' => ['LBL_CSV' => 'csv', 'LBL_XML' => 'xml', 'LBL_ICAL' => 'ical'],

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

        'description' => 'Shows the switch button or filter list in the calendar widget: switch - Switch "To realize" and "History", list - filter list',

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

        'description' => 'Send mail notification to participants',

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

        'description' => 'Show number of current records in record preview for related modules',

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

        'description' => 'Supported file types for data export.',

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

    'showPinUser' => [

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

        'default' => true,

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' => '\App\Validator::bool',

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

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

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' => false,

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

    'AUTOFILL_TIME' => [

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

    'SHOW_ACTIVITY_BUTTONS_IN_EDIT_FORM' => [

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

    ],

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

        'description' => 'Select event free time automatically',

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

    'ALL_DAY_SLOT' => [

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

        'description' => 'Shows "all day" row in timeGridWeek and timeGridDay view',

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' => 'Whether to display the add to favorite users button',

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