LeagueTableSeeder::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 21
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 16
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 16
cts 16
cp 1
rs 9.3142
c 0
b 0
f 0
cc 1
eloc 15
nc 1
nop 0
crap 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
}