UserGetAll::performAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
4
namespace App\Actions\User;
5
6
use App\Lib\Slime\RestAction\ApiAction;
7
use App\Lib\Slime\RestAction\Traits\Pagination;
8
use App\Models\Users\User;
9
10
class UserGetAll extends ApiAction
11
{
12
    use Pagination;
13
14
    protected function performAction()
15
    {
16
        $this->pagination = $this->getPaginationParams($this->request);
17
        $this->payload = User::filter(
0 ignored issues
show
Bug introduced by
The method filter() does not exist on App\Models\Users\User. Did you maybe mean filterModelEventResults()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
18
            $this->getQueryParams()
19
        )->page(
20
            $this->pagination
21
        )->get();
22
    }
23
}