Issues (40)

tests/factories/ModelFactory.php (1 issue)

1
<?php
2
3
$factory->define(
4
    \RafflesArgentina\ResourceController\Models\User::class, function (\Faker\Generator $faker) {
5
        return [
6
        'name' => $faker->name,
7
        'email' => $faker->email,
8
        'password' => bcrypt($faker->password),
9
        ];
10
    }
11
);
12
13
$factory->define(
14
    \RafflesArgentina\ResourceController\Models\Related::class, function (\Faker\Generator $faker) {
0 ignored issues
show
The parameter $faker is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

14
    \RafflesArgentina\ResourceController\Models\Related::class, function (/** @scrutinizer ignore-unused */ \Faker\Generator $faker) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
15
        return [
16
        'a' => str_random(),
17
        'b' => str_random(),
18
        'c' => str_random(),
19
        ];
20
    }
21
);
22