EpormasCategoryTableSeeder::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
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