Code Duplication    Length = 63-63 lines in 3 locations

src/Modules/Core/Console/Commands/Stubs/Module/Database/Seeds/DummyTableSeeder.php 1 location

@@ 7-69 (lines=63) @@
4
5
use Illuminate\Database\Seeder;
6
7
class DummyTableSeeder extends Seeder
8
{
9
    /**
10
     * Run the database seeds.
11
     *
12
     * @return void
13
     */
14
    public function run()
15
    {
16
        /**
17
         * Insert the permissions related to DummyModelName table.
18
         */
19
        \DB::table('permissions')->insert(
20
            [
21
                /**
22
                 * DummyModelName model permissions.
23
                 */
24
                [
25
                'name'       => 'index',
26
                'model'      => 'DummyModelName',
27
                'created_at' => \DB::raw('NOW()'),
28
                'updated_at' => \DB::raw('NOW()')
29
                ],
30
                [
31
                'name'       => 'find',
32
                'model'      => 'DummyModelName',
33
                'created_at' => \DB::raw('NOW()'),
34
                'updated_at' => \DB::raw('NOW()')
35
                ],
36
                [
37
                'name'       => 'insert',
38
                'model'      => 'DummyModelName',
39
                'created_at' => \DB::raw('NOW()'),
40
                'updated_at' => \DB::raw('NOW()')
41
                ],
42
                [
43
                'name'       => 'update',
44
                'model'      => 'DummyModelName',
45
                'created_at' => \DB::raw('NOW()'),
46
                'updated_at' => \DB::raw('NOW()')
47
                ],
48
                [
49
                'name'       => 'delete',
50
                'model'      => 'DummyModelName',
51
                'created_at' => \DB::raw('NOW()'),
52
                'updated_at' => \DB::raw('NOW()')
53
                ],
54
                [
55
                'name'       => 'deleted',
56
                'model'      => 'DummyModelName',
57
                'created_at' => \DB::raw('NOW()'),
58
                'updated_at' => \DB::raw('NOW()')
59
                ],
60
                [
61
                'name'       => 'restore',
62
                'model'      => 'DummyModelName',
63
                'created_at' => \DB::raw('NOW()'),
64
                'updated_at' => \DB::raw('NOW()')
65
                ]
66
            ]
67
        );
68
    }
69
}
70

src/Modules/PushNotificationDevices/Database/Seeds/PushNotificationDevicesTableSeeder.php 1 location

@@ 7-69 (lines=63) @@
4
5
use Illuminate\Database\Seeder;
6
7
class PushNotificationDevicesTableSeeder extends Seeder
8
{
9
    /**
10
     * Run the database seeds.
11
     *
12
     * @return void
13
     */
14
    public function run()
15
    {
16
        /**
17
         * Insert the permissions related to settings table.
18
         */
19
        \DB::table('permissions')->insert(
20
            [
21
                /**
22
                 * pushNotificationDevices model permissions.
23
                 */
24
                [
25
                'name'       => 'index',
26
                'model'      => 'pushNotificationDevice',
27
                'created_at' => \DB::raw('NOW()'),
28
                'updated_at' => \DB::raw('NOW()')
29
                ],
30
                [
31
                'name'       => 'find',
32
                'model'      => 'pushNotificationDevice',
33
                'created_at' => \DB::raw('NOW()'),
34
                'updated_at' => \DB::raw('NOW()')
35
                ],
36
                [
37
                'name'       => 'insert',
38
                'model'      => 'pushNotificationDevice',
39
                'created_at' => \DB::raw('NOW()'),
40
                'updated_at' => \DB::raw('NOW()')
41
                ],
42
                [
43
                'name'       => 'update',
44
                'model'      => 'pushNotificationDevice',
45
                'created_at' => \DB::raw('NOW()'),
46
                'updated_at' => \DB::raw('NOW()')
47
                ],
48
                [
49
                'name'       => 'delete',
50
                'model'      => 'pushNotificationDevice',
51
                'created_at' => \DB::raw('NOW()'),
52
                'updated_at' => \DB::raw('NOW()')
53
                ],
54
                [
55
                'name'       => 'deleted',
56
                'model'      => 'pushNotificationDevice',
57
                'created_at' => \DB::raw('NOW()'),
58
                'updated_at' => \DB::raw('NOW()')
59
                ],
60
                [
61
                'name'       => 'restore',
62
                'model'      => 'pushNotificationDevice',
63
                'created_at' => \DB::raw('NOW()'),
64
                'updated_at' => \DB::raw('NOW()')
65
                ]
66
            ]
67
        );
68
    }
69
}
70

src/Modules/Roles/Database/Seeds/RolesTableSeeder.php 1 location

@@ 7-69 (lines=63) @@
4
5
use Illuminate\Database\Seeder;
6
7
class RolesTableSeeder extends Seeder
8
{
9
    /**
10
     * Run the database seeds.
11
     *
12
     * @return void
13
     */
14
    public function run()
15
    {
16
        /**
17
         * Insert the permissions related to role table.
18
         */
19
        \DB::table('permissions')->insert(
20
            [
21
                /**
22
                 * role model permissions.
23
                 */
24
                [
25
                'name'       => 'index',
26
                'model'      => 'role',
27
                'created_at' => \DB::raw('NOW()'),
28
                'updated_at' => \DB::raw('NOW()')
29
                ],
30
                [
31
                'name'       => 'find',
32
                'model'      => 'role',
33
                'created_at' => \DB::raw('NOW()'),
34
                'updated_at' => \DB::raw('NOW()')
35
                ],
36
                [
37
                'name'       => 'insert',
38
                'model'      => 'role',
39
                'created_at' => \DB::raw('NOW()'),
40
                'updated_at' => \DB::raw('NOW()')
41
                ],
42
                [
43
                'name'       => 'update',
44
                'model'      => 'role',
45
                'created_at' => \DB::raw('NOW()'),
46
                'updated_at' => \DB::raw('NOW()')
47
                ],
48
                [
49
                'name'       => 'delete',
50
                'model'      => 'role',
51
                'created_at' => \DB::raw('NOW()'),
52
                'updated_at' => \DB::raw('NOW()')
53
                ],
54
                [
55
                'name'       => 'deleted',
56
                'model'      => 'role',
57
                'created_at' => \DB::raw('NOW()'),
58
                'updated_at' => \DB::raw('NOW()')
59
                ],
60
                [
61
                'name'       => 'restore',
62
                'model'      => 'role',
63
                'created_at' => \DB::raw('NOW()'),
64
                'updated_at' => \DB::raw('NOW()')
65
                ]
66
            ]
67
        );
68
    }
69
}
70