mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 17:25:05 +02:00
Applied code style rules to src/
This commit is contained in:
parent
700c049d26
commit
f861de791f
186 changed files with 1462 additions and 1059 deletions
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
|
||||
*
|
||||
|
@ -40,16 +43,6 @@ class BuiltinAttachmentsFinder
|
|||
$this->cache = $cache;
|
||||
}
|
||||
|
||||
protected function configureOptions(OptionsResolver $resolver)
|
||||
{
|
||||
$resolver->setDefaults([
|
||||
'limit' => 15, //Given only 15 entries
|
||||
//'allowed_extensions' => [], //Filter the filenames. For example ['jpg', 'jpeg'] to only get jpegs.
|
||||
//'placeholders' => Attachment::BUILTIN_PLACEHOLDER, //By default use all builtin ressources,
|
||||
'empty_returns_all' => false, //Return the whole list of ressources when empty keyword is given
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all builtin ressources.
|
||||
* The array is a list of the relative filenames using the %PLACEHOLDERS%.
|
||||
|
@ -138,4 +131,14 @@ class BuiltinAttachmentsFinder
|
|||
|
||||
return preg_grep($regex, $base_list);
|
||||
}
|
||||
|
||||
protected function configureOptions(OptionsResolver $resolver): void
|
||||
{
|
||||
$resolver->setDefaults([
|
||||
'limit' => 15, //Given only 15 entries
|
||||
//'allowed_extensions' => [], //Filter the filenames. For example ['jpg', 'jpeg'] to only get jpegs.
|
||||
//'placeholders' => Attachment::BUILTIN_PLACEHOLDER, //By default use all builtin ressources,
|
||||
'empty_returns_all' => false, //Return the whole list of ressources when empty keyword is given
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue