mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-13 13:09:35 +00:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
|
@ -33,13 +33,8 @@ use Symfony\Contracts\Cache\CacheInterface;
|
|||
*/
|
||||
class BuiltinAttachmentsFinder
|
||||
{
|
||||
protected AttachmentPathResolver $pathResolver;
|
||||
protected CacheInterface $cache;
|
||||
|
||||
public function __construct(CacheInterface $cache, AttachmentPathResolver $pathResolver)
|
||||
public function __construct(protected CacheInterface $cache, protected AttachmentPathResolver $pathResolver)
|
||||
{
|
||||
$this->pathResolver = $pathResolver;
|
||||
$this->cache = $cache;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -49,7 +44,6 @@ class BuiltinAttachmentsFinder
|
|||
* '%FOOTPRINTS%/path/to/folder/file1.png',
|
||||
* '%FOOTPRINTS%/path/to/folder/file2.png',
|
||||
* ]
|
||||
* @return array
|
||||
*/
|
||||
public function getListOfFootprintsGroupedByFolder(): array
|
||||
{
|
||||
|
|
@ -109,7 +103,7 @@ class BuiltinAttachmentsFinder
|
|||
|
||||
return $results;
|
||||
});
|
||||
} catch (InvalidArgumentException $invalidArgumentException) {
|
||||
} catch (InvalidArgumentException) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue