Add phpstan for static analysis (#3718)

This commit is contained in:
Dane Everitt
2021-10-30 13:41:38 -07:00
committed by GitHub
parent 871d0bdd1c
commit cdd8eabcc0
103 changed files with 1286 additions and 877 deletions
@@ -66,7 +66,7 @@ class ClientController extends ClientApiController
$builder = $builder->whereIn('servers.id', $user->accessibleServers()->pluck('id')->all());
}
$servers = $builder->paginate(min($request->query('per_page', 50), 100))->appends($request->query());
$servers = $builder->paginate(min((int) $request->query('per_page', '50'), 100))->appends($request->query());
return $this->fractal->transformWith(new ServerTransformer())->collection($servers)->toArray();
}