UserGetAll   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A performAction() 0 9 1
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
}