Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class TeamCultureSeeder extends Seeder |
||
|
|||
8 | { |
||
9 | protected $faker; |
||
10 | protected $faker_fr; |
||
11 | |||
12 | public function __construct(Faker\Generator $faker) { |
||
13 | $this->faker = $faker; |
||
14 | $this->faker_fr = Faker\Factory::create('fr'); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Run the Users table seeds. |
||
19 | * |
||
20 | * @return void |
||
21 | */ |
||
22 | public function run() |
||
51 | } |
||
52 | } |
||
54 |
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.