mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-15 22:28:14 +00:00
Small code changes for @ctrl-f5's PR.
- Dropped some "setParameters" calls if unused in transformer. - Add correct copyright - Sprintf instead of string concat - Small ident changes courtesy of phpstorm.
This commit is contained in:
@@ -65,8 +65,6 @@ class IndexController extends Controller
|
||||
$paginator = new LengthAwarePaginator($administrations, $count, $limit, $page);
|
||||
$transformer = new UserGroupTransformer();
|
||||
|
||||
$transformer->setParameters($request->attributes); // give params to transformer
|
||||
|
||||
return response()
|
||||
->json($this->jsonApiList(self::RESOURCE_KEY, $paginator, $transformer))
|
||||
->header('Content-Type', self::CONTENT_TYPE)
|
||||
|
||||
Reference in New Issue
Block a user