Passed
Push — develop ( a95732...cd40df )
by Septianata
12:51
created

ConfigurationSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 7 1
1
<?php
2
3
namespace Database\Seeders;
4
5
use App\Models\Configuration;
6
use Illuminate\Database\Seeder;
7
8
class ConfigurationSeeder extends Seeder
9
{
10
    /**
11
     * Run the database seeds.
12
     *
13
     * @return void
14
     */
15
    public function run()
16
    {
17
        array_map(fn (array $attributes) => Configuration::create($attributes), [
18
            [
19
                'key' => 'maximum_total_order_value',
20
                'value' => 44000000,
21
                'description' => 'Maximum total order value in one transaction/order',
22
            ],
23
        ]);
24
    }
25
}
26