Completed
Push — master ( a449a7...7f0061 )
by Gino
12:11
created

PostsRelationTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A scopeListFrontend() 0 4 1
1
<?php
2
3
namespace GinoPane\BlogTaxonomy\Models;
4
5
trait PostsRelationTrait
6
{
7
    /**
8
     * Gets a list of items related to Posts for frontend use
9
     *
10
     * @param       $query
11
     * @param array $options Available options are "sort", "displayEmpty", "limit"
12
     */
13
    public function scopeListFrontend($query, array $options = [])
0 ignored issues
show
Unused Code introduced by
The parameter $query is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $options is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
14
    {
15
16
    }
17
}