Code Duplication    Length = 8-8 lines in 2 locations

app/Models/Port.php 2 locations

@@ 234-241 (lines=8) @@
231
        ]);
232
    }
233
234
    public function scopeIsUp($query)
235
    {
236
        return $query->where([
237
            ['deleted', '=', 0],
238
            ['ignore', '=', 0],
239
            ['ifOperStatus', '=', 'up']
240
        ]);
241
    }
242
243
    public function scopeIsDown($query)
244
    {
@@ 261-268 (lines=8) @@
258
        ]);
259
    }
260
261
    public function scopeIsDisabled($query)
262
    {
263
        return $query->where([
264
            ['deleted', '=', 0],
265
            ['ignore', '=', 0],
266
            ['ifAdminStatus', '=', 'down']
267
        ]);
268
    }
269
270
    // ---- Define Helper Functions ----
271