LeagueTableSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 24
ccs 16
cts 16
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 21 1
1
<?php
2
3
class LeagueTableSeeder extends Seeder {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
5 9
	public function run() {
6
		$league = [
7 9
			'id'          => 1,
8 9
			'name'        => 'NSFWshow Summer Movie Draft 2013',
9 9
			'description' => 'It\'s back, bitches!',
10 9
			'url'         => 'http://draft.nsfwshow.com/',
11
12 9
			'mode'        => 'bid',
13 9
			'money'       => 100,
14 9
			'units'       => '₪',
15 9
			'extra_weeks' => 4,
16
17 9
			'start_date'  => '2013-04-19',
18 9
			'end_date'    => '2013-09-20',
19
20 9
			'private'     => false,
21 9
			'featured'    => true,
22 9
		];
23
24 9
		League::create($league);
25
	}
26
}