Completed
Push — master ( fcadec...5798cc )
by Mahmoud
03:32
created

SettingsDefaultSettingsSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 12 1
1
<?php
2
3
namespace App\Containers\Settings\Data\Seeders;
4
5
use App\Containers\Settings\Models\Settings;
6
use App\Port\Seeder\Abstracts\Seeder;
7
8
/**
9
 * Class SettingsDefaultSettingsSeeder
10
 *
11
 * @author  Mahmoud Zalt  <[email protected]>
12
 */
13
class SettingsDefaultSettingsSeeder extends Seeder
14
{
15
16
    /**
17
     * Run the database seeds.
18
     *
19
     * @return void
20
     */
21
    public function run()
22
    {
23
//        $settings = new Settings();
0 ignored issues
show
Unused Code Comprehensibility introduced by
45% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
24
//        $settings->key = 'referring_user_points';
25
//        $settings->value = '200';
26
//        $settings->save();
27
//
28
//        $settings = new Settings();
29
//        $settings->key = 'referred_user_points';
30
//        $settings->value = '200';
31
//        $settings->save();
32
    }
33
}
34