Code Duplication    Length = 8-8 lines in 2 locations

app/Models/Device.php 2 locations

@@ 236-243 (lines=8) @@
233
        $this->attributes['ip'] = inet_pton($ip);
234
    }
235
236
    public function scopeIsUp($query)
237
    {
238
        return $query->where([
239
            ['status', '=', 1],
240
            ['ignore', '=', 0],
241
            ['disabled', '=', 0]
242
        ]);
243
    }
244
245
    public function scopeIsDown($query)
246
    {
@@ 245-252 (lines=8) @@
242
        ]);
243
    }
244
245
    public function scopeIsDown($query)
246
    {
247
        return $query->where([
248
            ['status', '=', 0],
249
            ['ignore', '=', 0],
250
            ['disabled', '=', 0]
251
        ]);
252
    }
253
254
    // ---- Define Relationships ----
255