mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 02:12:37 +02:00
Static analysis fixes
This commit is contained in:
@@ -30,7 +30,7 @@ class FilesComposer
|
||||
|
||||
$this->hiddenFiles = Collection::make(
|
||||
$this->config->get('hidden_files', [])
|
||||
)->when($config->get('hide_app_files', true), function ($collection) {
|
||||
)->when($config->get('hide_app_files', true), function (Collection $collection) {
|
||||
return $collection->merge(self::APP_FILES);
|
||||
})->map(function (string $file) {
|
||||
return glob($file, GLOB_BRACE | GLOB_NOSORT);
|
||||
|
@@ -31,7 +31,7 @@ class DirectoryController
|
||||
/**
|
||||
* Invoke the DirectoryController.
|
||||
*
|
||||
* @param \Symfony\Component\Finder\Finder $finder
|
||||
* @param \Symfony\Component\Finder\Finder $files
|
||||
* @param \Slim\Psr7\Response $response
|
||||
* @param string $path
|
||||
*
|
||||
|
@@ -25,8 +25,8 @@ return [
|
||||
/**
|
||||
* Retrieve an item from the theme config.
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
* @param string $key
|
||||
* @param mixed|null $default
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
|
Reference in New Issue
Block a user