Code Duplication    Length = 14-14 lines in 2 locations

database/seeds/ManagersTableSeeder.php 1 location

@@ 18-31 (lines=14) @@
15
        $this->managerModel = new $managerModelName();
16
    }
17
18
    public function run()
19
    {
20
        $managerTable = $this->managerModel->getTable();
21
        if ($managerTable != 'users') {
22
            DB::table($managerTable)->insert([
23
                'id'         => 1,
24
                'name'       => 'admin',
25
                'email'      => '[email protected]',
26
                'password'   => bcrypt('123456'),
27
                'created_at' => Carbon::now(),
28
                'updated_at' => Carbon::now(),
29
            ]);
30
        }
31
    }
32
}
33

database/seeds/RbacTableSeeder.php 1 location

@@ 36-49 (lines=14) @@
33
        DB::connection()->getPdo()->exec($database);
34
    }
35
36
    private function insertManager()
37
    {
38
        $managerTable = $this->managerModel->getTable();
39
        if ($managerTable != 'users') {
40
            DB::table($managerTable)->insert([
41
                'id'         => 1,
42
                'name'       => 'admin',
43
                'email'      => '[email protected]',
44
                'password'   => bcrypt('123456'),
45
                'created_at' => Carbon::now(),
46
                'updated_at' => Carbon::now(),
47
            ]);
48
        }
49
    }
50
51
    private function insertRoleUser()
52
    {