Code Duplication    Length = 17-17 lines in 2 locations

server/app/GraphQL/Queries/SearchQuery.php 1 location

@@ 80-96 (lines=17) @@
77
    /**
78
     * @return array
79
     */
80
    public function args(): array
81
    {
82
        return [
83
            '_limit' => [
84
                'type'        => Type::int(),
85
                'description' => 'Search results limit',
86
            ],
87
            'type'  => [
88
                'type'        => Type::nonNull(Type::string()),
89
                'description' => 'Search category',
90
            ],
91
            'query' => [
92
                'type'        => Type::nonNull(Type::string()),
93
                'description' => 'Search query',
94
            ],
95
        ];
96
    }
97
}

server/app/GraphQL/Types/TagType.php 1 location

@@ 31-47 (lines=17) @@
28
    /**
29
     * @return array
30
     */
31
    public function fields(): array
32
    {
33
        return [
34
            'id'    => [
35
                'type'        => Type::nonNull(Type::id()),
36
                'description' => 'Tag identifier',
37
            ],
38
            'name'  => [
39
                'type'        => Type::nonNull(Type::string()),
40
                'description' => 'Tag name',
41
            ],
42
            'color' => [
43
                'type'        => Type::nonNull(Type::string()),
44
                'description' => 'Tag color',
45
            ],
46
        ];
47
    }
48
}
49