Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class UserFactory extends Factory |
||
13 | { |
||
14 | protected $model = User::class; |
||
15 | |||
16 | /** |
||
17 | * Define the model's default state. |
||
18 | * |
||
19 | * @return array<string, mixed> |
||
20 | */ |
||
21 | public function definition(): array |
||
22 | { |
||
23 | return [ |
||
24 | 'name' => fake()->name(), |
||
25 | 'email' => fake()->unique()->safeEmail(), |
||
26 | 'email_verified_at' => now(), |
||
27 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password |
||
28 | 'remember_token' => Str::random(10), |
||
29 | ]; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Indicate that the model's email address should be unverified. |
||
34 | */ |
||
35 | public function unverified(): static |
||
39 | ]); |
||
40 | } |
||
42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.