mirror of
https://github.com/nextcloud/server.git
synced 2026-03-28 21:33:40 -04:00
refactor: save unnecessary method_exists
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
22c417d70b
commit
dfbedda0a2
1 changed files with 1 additions and 4 deletions
|
|
@ -336,10 +336,7 @@ class FilesReportPlugin extends ServerPlugin {
|
|||
|
||||
// type check to ensure searchBySystemTag is available, it is not
|
||||
// exposed in API yet
|
||||
if (
|
||||
!empty($systemTagIds)
|
||||
&& (method_exists($this->userFolder, 'searchBySystemTag'))
|
||||
) {
|
||||
if (!empty($systemTagIds)) {
|
||||
$tags = $this->tagManager->getTagsByIds($systemTagIds, $this->userSession->getUser());
|
||||
foreach ($tags as $tag) {
|
||||
$tagName = $tag->getName();
|
||||
|
|
|
|||
Loading…
Reference in a new issue