summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Command/SystemTag/ListCommand.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Command/SystemTag/ListCommand.php b/core/Command/SystemTag/ListCommand.php
index 06c39b4977a..7993eb87891 100644
--- a/core/Command/SystemTag/ListCommand.php
+++ b/core/Command/SystemTag/ListCommand.php
@@ -23,8 +23,8 @@
namespace OC\Core\Command\SystemTag;
use OC\Core\Command\Base;
-use OCP\SystemTag\ISystemTagManager;
use OCP\SystemTag\ISystemTag;
+use OCP\SystemTag\ISystemTagManager;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@@ -70,7 +70,9 @@ class ListCommand extends Base {
* @param ISystemtag[] $tags
* @return array
*/
- private function formatTags(array $tags) {
+ private function formatTags(array $tags): array {
+ $result = [];
+
foreach ($tags as $tag) {
$result[$tag->getId()] = [
'name' => $tag->getName(),