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

CurrencyFactory::definition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 9
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 11
rs 9.9666
1
<?php
2
3
namespace PWWEB\Localisation\Database\Factories;
4
5
use PWWEB\Localisation\Models\Currency;
6
7
 /**
8
  * The database factory for Currency.
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 CurrencyFactory 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 = Currency::class;
25
26
     /**
27
      * Define the model's default state.
28
      *
29
      * @return array
30
      */
31
     public function definition()
32
     {
33
         return [
34
             'name' => $this->faker->word,
35
             'iso' => $this->faker->word,
36
             'numeric_code' => $this->faker->randomDigitNotNull,
37
             'entity_code' => $this->faker->word,
38
             'active' => $this->faker->word,
39
             'standard' => $this->faker->word,
40
             'created_at' => $this->faker->date('Y-m-d H:i:s'),
41
             'updated_at' => $this->faker->date('Y-m-d H:i:s'),
42
         ];
43
     }
44
 }
45