SubmFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A definition() 0 13 1
1
<?php
2
3
namespace Database\Factories;
4
5
use App\Models\Addr;
0 ignored issues
show
Bug introduced by
The type App\Models\Addr was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use App\Models\Subm;
0 ignored issues
show
Bug introduced by
The type App\Models\Subm was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Illuminate\Database\Eloquent\Factories\Factory;
0 ignored issues
show
Bug introduced by
The type Illuminate\Database\Eloquent\Factories\Factory was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
class SubmFactory extends Factory
10
{
11
    /**
12
     * The name of the factory's corresponding model.
13
     *
14
     * @var string
15
     */
16
    protected $model = Subm::class;
17
18
    /**
19
     * Define the model's default state.
20
     *
21
     * @return array
22
     */
23
    public function definition()
24
    {
25
        return [
26
            'group'      => $this->faker->word(),
27
            'gid'        => $this->faker->randomElement('1', '2'),
28
            'name'       => $this->faker->word(),
29
            'addr_id'    => Addr::factory(),
30
            'rin'        => $this->faker->word(),
31
            'rfn'        => $this->faker->word(),
32
            'lang'       => $this->faker->languageCode(),
33
            'phon'       => $this->faker->phoneNumber(),
34
            'email'      => $this->faker->email(), 'fax' => $this->faker->word(), 'www' => $this->faker->url(),
35
            'created_at' => $this->faker->date(), 'updated_at',
36
        ];
37
    }
38
}
39