Code Duplication    Length = 8-8 lines in 2 locations

app/Models/Device.php 2 locations

@@ 262-269 (lines=8) @@
259
260
    // ---- Query scopes ----
261
262
    public function scopeIsUp($query)
263
    {
264
        return $query->where([
265
            ['status', '=', 1],
266
            ['ignore', '=', 0],
267
            ['disabled', '=', 0]
268
        ]);
269
    }
270
271
    public function scopeIsDown($query)
272
    {
@@ 271-278 (lines=8) @@
268
        ]);
269
    }
270
271
    public function scopeIsDown($query)
272
    {
273
        return $query->where([
274
            ['status', '=', 0],
275
            ['ignore', '=', 0],
276
            ['disabled', '=', 0]
277
        ]);
278
    }
279
280
    public function scopeIsIgnored($query)
281
    {