EpormasCityTableSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 30
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B run() 0 28 1
1
<?php
2
3
use Illuminate\Database\Seeder;
0 ignored issues
show
Bug introduced by
The type Illuminate\Database\Seeder was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
use Bantenprov\DashboardEpormas\Models\EpormasCity;
5
6
class EpormasCityTableSeeder extends Seeder {
7
8
	public function run()
9
	{
10
		//DB::table('epormas_city')->delete();
11
12
		// create_epormas_city_20171201000000
13
		EpormasCity::create(array(
14
				'name' => 'Kabupaten Pandeglang'
15
			));
16
		EpormasCity::create(array(
17
				'name' => 'Kabupaten Lebak'
18
			));
19
		EpormasCity::create(array(
20
				'name' => 'Kabupaten Tangerang'
21
			));
22
		EpormasCity::create(array(
23
				'name' => 'Kabupaten Serang'
24
			));
25
		EpormasCity::create(array(
26
				'name' => 'Kota Tangerang'
27
			));
28
		EpormasCity::create(array(
29
				'name' => 'Kota Cilegon'
30
			));
31
		EpormasCity::create(array(
32
				'name' => 'Kota Serang'
33
			));
34
		EpormasCity::create(array(
35
				'name' => 'Kota Tangerang Selatan'
36
			));
37
	}
38
}
39