Passed
Push — hotfix/salary_label ( f0401d )
by Josh
10:04
created

ReviewStatus   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTranslationAttribute() 0 2 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Models\Lookup;
4
5
use App\Models\BaseModel;
6
use Illuminate\Support\Facades\Lang;
7
8
/**
9
 * Class ReviewStatus
10
 *
11
 * @property int $id
12
 * @property string $name
13
 * @property \Jenssegers\Date\Date $created_at
14
 * @property \Jenssegers\Date\Date $updated_at
15
 *
16
 * Acessors:
17
 * @property string $translation
18
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
19
class ReviewStatus extends BaseModel {
0 ignored issues
show
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
20
21
    protected $fillable = [];
22
23
    public function getTranslationAttribute() {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getTranslationAttribute()
Loading history...
24
        return Lang::get('common/lookup/review_status')[$this->name];
25
    }
26
27
}
28