Code Duplication    Length = 12-12 lines in 2 locations

src/QueryBuilderRequest.php 2 locations

@@ 16-27 (lines=12) @@
13
        return static::createFrom($request, new self());
14
    }
15
16
    public function includes()
17
    {
18
        $parameter = config('query-builder.parameters.include');
19
20
        $includeParts = $this->getPartsOfRequest($parameter);
21
22
        if (!is_array($includeParts)) {
23
            $includeParts = explode(',', strtolower($this->getPartsOfRequest($parameter)));
24
        }
25
26
        return collect($includeParts)->filter();
27
    }
28
29
    public function appends()
30
    {
@@ 29-40 (lines=12) @@
26
        return collect($includeParts)->filter();
27
    }
28
29
    public function appends()
30
    {
31
        $appendParameter = config('query-builder.parameters.append');
32
33
        $appendParts = $this->getPartsOfRequest($appendParameter);
34
35
        if (!is_array($appendParts)) {
36
            $appendParts = explode(',', strtolower($appendParts));
37
        }
38
39
        return collect($appendParts)->filter();
40
    }
41
42
    public function filters()
43
    {