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

ConfigurationSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
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