EpormasCounterTableSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 14 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\EpormasCounter;
5
6
class EpormasCounterTableSeeder extends Seeder {
7
8
	public function run()
9
	{
10
		//DB::table('epormas_counter')->delete();
11
12
		// create_epormas_counter_20171201000000
13
		EpormasCounter::create(array(
14
				'tanggal' => '2017-12-01 00:00:12',
15
				'count' => 1,
16
				'via' => 'form',
17
				'user_id' => 1,
18
				'tahun' => 2017,
19
				'bulan' => 12,
20
				'category_id' => 1,
21
				'city_id' => 1
22
			));
23
	}
24
}
25