Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 16 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
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 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.