refactor: remove useless code
This commit is contained in:
parent
d85c62eedc
commit
4bfbb1081d
|
@ -28,10 +28,6 @@ class Filters
|
||||||
$data = json_decode(json_encode($data), false);
|
$data = json_decode(json_encode($data), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
$data->filters ??= [];
|
|
||||||
$data->orders ??= [];
|
|
||||||
$data->pagination ??= null;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return $mapper->map($data, \App\Facade\Filters\Filters::class);
|
return $mapper->map($data, \App\Facade\Filters\Filters::class);
|
||||||
} catch (Error $err) {
|
} catch (Error $err) {
|
||||||
|
|
Loading…
Reference in New Issue