Code Duplication    Length = 9-9 lines in 2 locations

src/models/Backup.php 1 location

@@ 49-57 (lines=9) @@
46
        ]);
47
    }
48
49
    public function getObj()
50
    {
51
        return Yii::createObject([
52
            'class' => Obj::class,
53
            'id' => $this->object_id,
54
            'name' => $this->name,
55
            'class_name' => $this->object,
56
        ]);
57
    }
58
}
59

src/models/Backuping.php 1 location

@@ 71-79 (lines=9) @@
68
        ]);
69
    }
70
71
    public function getObj()
72
    {
73
        return Yii::createObject([
74
            'class' => Obj::class,
75
            'id' => $this->id,
76
            'name' => $this->name,
77
            'class_name' => $this->object,
78
        ]);
79
    }
80
81
    public function canBeDeleted() : bool
82
    {