Discuss   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getThreads() 0 6 1
1
<?php
2
3
namespace Seongbae\Discuss;
4
5
use Seongbae\Discuss\Models\Thread;
6
7
class Discuss
8
{
9
    public function getThreads($count=10, $orderBy='id', $orderDir='desc')
10
    {
11
        $threads = Thread::orderBy($orderBy,$orderDir)->take($count)->get();
12
13
        return $threads;
14
    }
15
16
}
17