SettingTranslation::getTable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
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