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

GetTipComments   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 4 1
1
<?php
2
3
namespace App\Domains\TechTips;
4
5
use App\TechTipComments;
6
use Illuminate\Support\Facades\Auth;
7
use Illuminate\Support\Facades\Log;
8
9
10
class GetTipComments
11
{
12 4
    public function execute($tipID)
13
    {
14 4
        $comments = TechTipComments::where('tip_id', $tipID)->with('User')->get();
15 4
        return $comments;
16
    }
17
}
18