@@ -50,10 +50,8 @@ class SystemTagManager implements ISystemTagManager {
5050
5151 /**
5252 * Prepared query for selecting tags directly
53- *
54- * @var \OCP\DB\QueryBuilder\IQueryBuilder
5553 */
56- private $ selectTagQuery ;
54+ private IQueryBuilder $ selectTagQuery ;
5755
5856 public function __construct (
5957 protected IDBConnection $ connection ,
@@ -219,7 +217,12 @@ public function createTag(string $tagName, bool $userVisible, bool $userAssignab
219217 /**
220218 * {@inheritdoc}
221219 */
222- public function updateTag (string $ tagId , string $ newName , bool $ userVisible , bool $ userAssignable ) {
220+ public function updateTag (
221+ string $ tagId ,
222+ string $ newName ,
223+ bool $ userVisible ,
224+ bool $ userAssignable ,
225+ ): void {
223226 try {
224227 $ tags = $ this ->getTagsByIds ($ tagId );
225228 } catch (TagNotFoundException $ e ) {
@@ -271,7 +274,7 @@ public function updateTag(string $tagId, string $newName, bool $userVisible, boo
271274 /**
272275 * {@inheritdoc}
273276 */
274- public function deleteTags ($ tagIds ) {
277+ public function deleteTags ($ tagIds ): void {
275278 if (!\is_array ($ tagIds )) {
276279 $ tagIds = [$ tagIds ];
277280 }
@@ -363,14 +366,14 @@ public function canUserSeeTag(ISystemTag $tag, IUser $user): bool {
363366 return false ;
364367 }
365368
366- private function createSystemTagFromRow ($ row ) {
369+ private function createSystemTagFromRow ($ row ): SystemTag {
367370 return new SystemTag ((string )$ row ['id ' ], $ row ['name ' ], (bool )$ row ['visibility ' ], (bool )$ row ['editable ' ]);
368371 }
369372
370373 /**
371374 * {@inheritdoc}
372375 */
373- public function setTagGroups (ISystemTag $ tag , array $ groupIds ) {
376+ public function setTagGroups (ISystemTag $ tag , array $ groupIds ): void {
374377 // delete relationships first
375378 $ this ->connection ->beginTransaction ();
376379 try {
0 commit comments