PR cleanup and reorganization

This commit is contained in:
Chris Kankiewicz
2021-09-18 23:36:11 -07:00
parent 8af26cd927
commit 033559da59
4 changed files with 10 additions and 13 deletions

View File

@@ -8,7 +8,6 @@ APP_LANGUAGE=en
DISPLAY_READMES=true
READMES_FIRST=false
ZIP_DOWNLOADS=true
HIDE_DOT_FILES=true
GOOGLE_ANALYTICS_ID=false

View File

@@ -128,6 +128,13 @@ return [
*/
'hide_app_files' => DI\env('HIDE_APP_FILES', true),
/**
* Whether or not to hide dot files/directories from the listing.
*
* Default value: true
*/
'hide_dot_files' => DI\env('HIDE_DOT_FILES', true),
/**
* Hide the files Version Control System (i.e. Git and Mercurial) use to
* store their metadata.
@@ -159,12 +166,4 @@ return [
* Default value: 1000000000
*/
'max_hash_size' => DI\env('MAX_HASH_SIZE', 1000000000),
/**
* Whether or not to hide dot files/directories from the listing.
* Like '.env' or '.ssh/'.
*
* Default value: true
*/
'hide_dot_files' => DI\env('HIDE_DOT_FILES', true),
];

View File

@@ -17,7 +17,7 @@ return [
'views_path' => DI\string('{app_path}/views'),
/** Array of application files (to be hidden) */
'app_files' => ['app', 'index.php', '.hidden', '.env', '.env.example'],
'app_files' => ['app', 'index.php', '.env', '.env.example', '.hidden'],
/** Array of application middlewares */
'middlewares' => function (): array {

View File

@@ -51,13 +51,12 @@ class HiddenFilesTest extends TestCase
],
'App files' => [
[], 'NOT_A_REAL_FILE', true, [
'app', 'index.php', '.hidden', '.env', '.env.example',
'app', 'index.php', '.env', '.env.example', '.hidden',
],
],
'All' => [
['foo', 'alpha'], $this->filePath('.hidden'), true, [
'foo', 'alpha', 'bravo', 'app', 'index.php', '.hidden', '.env',
'.env.example',
'foo', 'alpha', 'bravo', 'app', 'index.php', '.env', '.env.example', '.hidden',
],
],
];