Passed
Push — dev5a ( 915c64...c2cba2 )
by Ron
07:58
created

GetTechTips   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTip() 0 5 1
1
<?php
2
3
namespace App\Domains\TechTips;
4
5
use App\TechTips;
6
use Illuminate\Support\Facades\Auth;
7
use Illuminate\Support\Facades\Log;
8
9
10
class GetTechTips
11
{
12 6
    public function getTip($id)
13
    {
14 6
        $tip = TechTips::where('tip_id', $id)->with('SystemTypes')->with('TechTipFiles.Files')->first();
15
16 6
        return $tip;
17
    }
18
}
19