Test Setup Failed
Push — dependabot/npm_and_yarn/sass-l... ( ffd9ce...ecf903 )
by
unknown
18:51 queued 11:39
created

Sortable::scopeSortedManually()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Thinktomorrow\Chief\Concerns;
6
7
trait Sortable
8
{
9
    protected $sortableAttribute = 'order';
10
11
    public function scopeSortedManually($query)
12
    {
13
        return $query->orderBy($this->sortableAttribute, 'ASC');
14
    }
15
}
16