Passed
Push — master ( 27aec2...7fccaf )
by Richard
09:23
created

AddressFactory::definition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 13
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 15
rs 9.8333
1
<?php
2
3
namespace PWWEB\Localisation\Database\Factories;
4
5
use PWWEB\Localisation\Models\Address;
6
7
 /**
8
  * The database factory for Address.
9
  * Class AppBaseController.
10
  *
11
  * @author    Frank Pillukeit <[email protected]>
12
  * @author    Richard Browne <[email protected]
13
  * @copyright 2020 pw-websolutions.com
14
  * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
15
  * @var       \Illuminate\Database\Eloquent\Factory $factory
16
  */
17
 class AddressFactory extends Factory
0 ignored issues
show
Bug introduced by
The type PWWEB\Localisation\Database\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...
18
 {
19
     /**
20
      * The name of the factory's corresponding model.
21
      *
22
      * @var string
23
      */
24
     protected $model = Address::class;
25
26
     /**
27
      * Define the model's default state.
28
      *
29
      * @return array
30
      */
31
     public function definition()
32
     {
33
         return [
34
             'country_id' => $this->faker->word,
35
             'type_id' => $this->faker->word,
36
             'street' => $this->faker->word,
37
             'street2' => $this->faker->word,
38
             'city' => $this->faker->word,
39
             'state' => $this->faker->word,
40
             'postcode' => $this->faker->word,
41
             'lat' => $this->faker->randomDigitNotNull,
42
             'lng' => $this->faker->randomDigitNotNull,
43
             'primary' => $this->faker->word,
44
             'created_at' => $this->faker->date('Y-m-d H:i:s'),
45
             'updated_at' => $this->faker->date('Y-m-d H:i:s'),
46
         ];
47
     }
48
 }
49