EpormasCategoryTableSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 7 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\EpormasCategory;
5
6
class EpormasCategoryTableSeeder extends Seeder {
7
8
	public function run()
9
	{
10
		//DB::table('epormas_category')->delete();
11
12
		// create_epormas_category_20171201000000
13
		EpormasCategory::create(array(
14
				'name' => 'Pendidikan'
15
			));
16
	}
17
}
18