SettingTranslation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 13
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTable() 0 5 1
1
<?php
2
3
namespace A17\Twill\Models\Translations;
4
5
use A17\Twill\Models\Model;
6
use Illuminate\Support\Str;
7
8
class SettingTranslation extends Model
9
{
10
    protected $fillable = [
11
        'value',
12
        'active',
13
        'locale',
14
    ];
15
16
    public function getTable()
17
    {
18
        $twillSettingsTable = config('twill.settings_table', 'twill_settings');
19
20
        return Str::singular($twillSettingsTable) . '_translations';
21
    }
22
}
23