Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | trait Kabsa |
||
9 | { |
||
10 | public function getRows() |
||
11 | { |
||
12 | return $this->rows; |
||
13 | } |
||
14 | |||
15 | public static function all($columns = []) |
||
|
|||
16 | { |
||
17 | self::unguard(); |
||
18 | $self = new self(); |
||
19 | |||
20 | return Collection::make($self->getRows() ?? [])->map(function ($row) { return new self($row); }); |
||
21 | } |
||
22 | |||
23 | public function __call($method, $parameters) |
||
26 | } |
||
27 | } |
||
28 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.