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

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