Code Duplication    Length = 6-6 lines in 2 locations

src/Loader/AlertLoader.php 1 location

@@ 87-92 (lines=6) @@
84
            'value' => 1
85
        ]);
86
87
        if (! empty($args['serverID'])) {
88
            $queryObject->addWhere([
89
                'col'   => 'ResultServer',
90
                'value' => $args['serverID']
91
            ]);
92
        }
93
94
        $this->setCacheable(false);
95

src/Loader/Statistics/AlertStatisticsLoader.php 1 location

@@ 277-282 (lines=6) @@
274
            'value' => $maxDate
275
        ]);
276
277
        if (! empty($post['server'])) {
278
            $queryObject->addWhere([
279
                'col'   => 'ResultServer',
280
                'value' => $post['server']
281
            ]);
282
        }
283
284
        if (! empty($post['faction'])) {
285
            $queryObject->addWhere([