diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2019-01-07 19:31:39 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2019-01-07 19:31:39 +0300 |
commit | 23c35798044de9c18811f2623f7133f3dcb33bde (patch) | |
tree | 88f37dce26d1a31e7e8920b3724e618b9f5b158c /libraries/config.values.php | |
parent | 4cee0cbc12528a2c30adcf28eacf4f4674bb0993 (diff) |
Format array declarations
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'libraries/config.values.php')
-rw-r--r-- | libraries/config.values.php | 197 |
1 files changed, 165 insertions, 32 deletions
diff --git a/libraries/config.values.php b/libraries/config.values.php index 1b06100e16..05fb879507 100644 --- a/libraries/config.values.php +++ b/libraries/config.values.php @@ -23,17 +23,40 @@ return [ 'Servers' => [ 1 => [ 'port' => 'integer', - 'auth_type' => ['config', 'http', 'signon', 'cookie'], + 'auth_type' => [ + 'config', + 'http', + 'signon', + 'cookie', + ], 'AllowDeny' => [ - 'order' => ['', 'deny,allow', 'allow,deny', 'explicit'], + 'order' => [ + '', + 'deny,allow', + 'allow,deny', + 'explicit', + ], ], 'only_db' => 'array', ], ], - 'RecodingEngine' => ['auto', 'iconv', 'recode', 'mb', 'none'], - 'OBGzip' => ['auto', true, false], + 'RecodingEngine' => [ + 'auto', + 'iconv', + 'recode', + 'mb', + 'none', + ], + 'OBGzip' => [ + 'auto', + true, + false, + ], 'MemoryLimit' => 'short_string', - 'NavigationLogoLinkWindow' => ['main', 'new'], + 'NavigationLogoLinkWindow' => [ + 'main', + 'new', + ], 'NavigationTreeDefaultTabTable' => [ // fields list 'structure' => __('Structure'), @@ -68,8 +91,18 @@ return [ 'text' => __('Text'), 'both' => __('Both'), ], - 'MaxRows' => [25, 50, 100, 250, 500], - 'Order' => ['ASC', 'DESC', 'SMART'], + 'MaxRows' => [ + 25, + 50, + 100, + 250, + 500, + ], + 'Order' => [ + 'ASC', + 'DESC', + 'SMART', + ], 'RowActionLinks' => [ 'none' => __('Nowhere'), 'left' => __('Left'), @@ -81,8 +114,16 @@ return [ 'ASC' => __('Ascending'), 'DESC' => __('Descending'), ], - 'ProtectBinary' => [false, 'blob', 'noblob', 'all'], - 'CharEditing' => ['input', 'textarea'], + 'ProtectBinary' => [ + false, + 'blob', + 'noblob', + 'all', + ], + 'CharEditing' => [ + 'input', + 'textarea', + ], 'TabsMode' => [ 'icons' => __('Icons'), 'text' => __('Text'), @@ -175,8 +216,14 @@ return [ $GLOBALS['cfg']['AvailableCharsets'] ), 'sql_compatibility' => [ - 'NONE', 'ANSI', 'DB2', 'MAXDB', 'MYSQL323', - 'MYSQL40', 'MSSQL', 'ORACLE', + 'NONE', + 'ANSI', + 'DB2', + 'MAXDB', + 'MYSQL323', + 'MYSQL40', + 'MSSQL', + 'ORACLE', // removed; in MySQL 5.0.33, this produces exports that // can't be read by POSTGRESQL (see our bug #1596328) //'POSTGRESQL', @@ -188,7 +235,11 @@ return [ 'ldi_terminated' => 'short_string', 'ldi_enclosed' => 'short_string', 'ldi_escaped' => 'short_string', - 'ldi_local_option' => ['auto', true, false], + 'ldi_local_option' => [ + 'auto', + true, + false, + ], ], 'Export' => [ @@ -205,24 +256,47 @@ return [ ), ], 'format' => [ - 'codegen', 'csv', 'excel', 'htmlexcel', 'htmlword', 'latex', 'ods', - 'odt', 'pdf', 'sql', 'texytext', 'xml', 'yaml', + 'codegen', + 'csv', + 'excel', + 'htmlexcel', + 'htmlword', + 'latex', + 'ods', + 'odt', + 'pdf', + 'sql', + 'texytext', + 'xml', + 'yaml', + ], + 'compression' => [ + 'none', + 'zip', + 'gzip', ], - 'compression' => ['none', 'zip', 'gzip'], 'charset' => array_merge( [''], $GLOBALS['cfg']['AvailableCharsets'] ), 'sql_compatibility' => [ - 'NONE', 'ANSI', 'DB2', 'MAXDB', 'MYSQL323', - 'MYSQL40', 'MSSQL', 'ORACLE', + 'NONE', + 'ANSI', + 'DB2', + 'MAXDB', + 'MYSQL323', + 'MYSQL40', + 'MSSQL', + 'ORACLE', // removed; in MySQL 5.0.33, this produces exports that // can't be read by POSTGRESQL (see our bug #1596328) //'POSTGRESQL', 'TRADITIONAL', ], 'codegen_format' => [ - '#', 'NHibernate C# DO', 'NHibernate XML', + '#', + 'NHibernate C# DO', + 'NHibernate XML', ], 'csv_separator' => 'short_string', 'csv_terminated' => 'short_string', @@ -240,7 +314,11 @@ return [ 'data' => __('data'), 'structure_and_data' => __('structure and data'), ], - 'sql_type' => ['INSERT', 'UPDATE', 'REPLACE'], + 'sql_type' => [ + 'INSERT', + 'UPDATE', + 'REPLACE', + ], 'sql_insert_syntax' => [ 'complete' => __('complete inserts'), 'extended' => __('extended inserts'), @@ -269,10 +347,21 @@ return [ ], 'Console' => [ - 'Mode' => ['info', 'show', 'collapse'], + 'Mode' => [ + 'info', + 'show', + 'collapse', + ], 'Height' => 'integer', - 'OrderBy' => ['exec', 'time', 'count'], - 'Order' => ['asc', 'desc'], + 'OrderBy' => [ + 'exec', + 'time', + 'count', + ], + 'Order' => [ + 'asc', + 'desc', + ], ], /** @@ -293,12 +382,42 @@ return [ 'Export/sql_max_query_size' => 'validatePositiveNumber', 'FirstLevelNavigationItems' => 'validatePositiveNumber', 'ForeignKeyMaxLimit' => 'validatePositiveNumber', - 'Import/csv_enclosed' => [['validateByRegex', '/^.?$/']], - 'Import/csv_escaped' => [['validateByRegex', '/^.$/']], - 'Import/csv_terminated' => [['validateByRegex', '/^.$/']], - 'Import/ldi_enclosed' => [['validateByRegex', '/^.?$/']], - 'Import/ldi_escaped' => [['validateByRegex', '/^.$/']], - 'Import/ldi_terminated' => [['validateByRegex', '/^.$/']], + 'Import/csv_enclosed' => [ + [ + 'validateByRegex', + '/^.?$/', + ], + ], + 'Import/csv_escaped' => [ + [ + 'validateByRegex', + '/^.$/', + ], + ], + 'Import/csv_terminated' => [ + [ + 'validateByRegex', + '/^.$/', + ], + ], + 'Import/ldi_enclosed' => [ + [ + 'validateByRegex', + '/^.?$/', + ], + ], + 'Import/ldi_escaped' => [ + [ + 'validateByRegex', + '/^.$/', + ], + ], + 'Import/ldi_terminated' => [ + [ + 'validateByRegex', + '/^.$/', + ], + ], 'Import/skip_queries' => 'validateNonNegativeNumber', 'InsertRows' => 'validatePositiveNumber', 'NumRecentTables' => 'validateNonNegativeNumber', @@ -311,7 +430,12 @@ return [ 'MaxCharactersInDisplayedSQL' => 'validatePositiveNumber', 'MaxRows' => 'validatePositiveNumber', 'MaxTableList' => 'validatePositiveNumber', - 'MemoryLimit' => [['validateByRegex', '/^(-1|(\d+(?:[kmg])?))$/i']], + 'MemoryLimit' => [ + [ + 'validateByRegex', + '/^(-1|(\d+(?:[kmg])?))$/i', + ], + ], 'NavigationTreeTableLevel' => 'validatePositiveNumber', 'NavigationWidth' => 'validateNonNegativeNumber', 'QueryHistoryMax' => 'validatePositiveNumber', @@ -330,13 +454,22 @@ return [ */ '_userValidators' => [ 'MaxDbList' => [ - ['validateUpperBound', 'value:MaxDbList'], + [ + 'validateUpperBound', + 'value:MaxDbList', + ], ], 'MaxTableList' => [ - ['validateUpperBound', 'value:MaxTableList'], + [ + 'validateUpperBound', + 'value:MaxTableList', + ], ], 'QueryHistoryMax' => [ - ['validateUpperBound', 'value:QueryHistoryMax'], + [ + 'validateUpperBound', + 'value:QueryHistoryMax', + ], ], ], ]; |