Code Duplication    Length = 8-8 lines in 2 locations

app/Models/Device.php 2 locations

@@ 245-252 (lines=8) @@
242
        return $from->diff($to)->format('%a d, %h h, %i m and %s s');
243
    }
244
245
    public function scopeIsUp($query)
246
    {
247
        return $query->where([
248
            ['status', '=', 1],
249
            ['ignore', '=', 0],
250
            ['disabled', '=', 0]
251
        ]);
252
    }
253
254
    public function scopeIsDown($query)
255
    {
@@ 254-261 (lines=8) @@
251
        ]);
252
    }
253
254
    public function scopeIsDown($query)
255
    {
256
        return $query->where([
257
            ['status', '=', 0],
258
            ['ignore', '=', 0],
259
            ['disabled', '=', 0]
260
        ]);
261
    }
262
263
    public function scopeIsIgnored($query)
264
    {