Code Duplication    Length = 8-8 lines in 2 locations

app/Models/Device.php 2 locations

@@ 242-249 (lines=8) @@
239
240
    // ---- Query scopes ----
241
242
    public function scopeIsUp($query)
243
    {
244
        return $query->where([
245
            ['status', '=', 1],
246
            ['ignore', '=', 0],
247
            ['disabled', '=', 0]
248
        ]);
249
    }
250
251
    public function scopeIsDown($query)
252
    {
@@ 251-258 (lines=8) @@
248
        ]);
249
    }
250
251
    public function scopeIsDown($query)
252
    {
253
        return $query->where([
254
            ['status', '=', 0],
255
            ['ignore', '=', 0],
256
            ['disabled', '=', 0]
257
        ]);
258
    }
259
260
    public function scopeIsIgnored($query)
261
    {