WorkflowStatesSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 43
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 40 1
1
<?php
2
namespace Jawaraegov\Workflows\database\seeds;
3
use Illuminate\Database\Seeder;
4
5
class WorkflowStatesSeeder extends Seeder {
6
7
	public function run()
8
	{
9
		//DB::table('workflow_states')->delete();
10
		$data1 = array(
11
					'name' => 'propose',
12
					'label' => 'Propose',
13
					'status' => '1'
14
				);
15
		\DB::table('workflow_states')->insert($data1);
16
		$data2 = array(
17
					'name' => 'request',
18
					'label' => 'Request',
19
					'status' => '1'
20
				);
21
		\DB::table('workflow_states')->insert($data2);
22
		$data3 = array(
23
					'name' => 'approved',
24
					'label' => 'Approved',
25
					'status' => '1'
26
				);
27
		\DB::table('workflow_states')->insert($data3);
28
		$data4 = array(
29
					'name' => 'rejected',
30
					'label' => 'Rejected',
31
					'status' => '1'
32
				);
33
		\DB::table('workflow_states')->insert($data4);
34
		$data5 = array(
35
					'name' => 'needs_completed_document',
36
					'label' => 'Needs Dompleted Document',
37
					'status' => '1'
38
				);
39
		\DB::table('workflow_states')->insert($data5);
40
		$data6 = array(
41
					'name' => 'document_submitted',
42
					'label' => 'Document Submitted',
43
					'status' => '1'
44
				);
45
		\DB::table('workflow_states')->insert($data6);
46
	}
47
}
48