Remove int cast

This commit is contained in:
Nicolas Lœuillet 2016-04-10 14:15:21 +02:00
parent 5c3ca4fe9e
commit 0135c98b24
No known key found for this signature in database
GPG key ID: 5656BE27E1E34D0A

View file

@ -43,8 +43,8 @@ class WallabagRestController extends FOSRestController
{
$this->validateAuthentication();
$isArchived = (null === $request->query->get('archive')) ? null : (bool) (int) $request->query->get('archive');
$isStarred = (null === $request->query->get('starred')) ? null : (bool) (int) $request->query->get('starred');
$isArchived = (null === $request->query->get('archive')) ? null : (bool) $request->query->get('archive');
$isStarred = (null === $request->query->get('starred')) ? null : (bool) $request->query->get('starred');
$sort = $request->query->get('sort', 'created');
$order = $request->query->get('order', 'desc');
$page = (int) $request->query->get('page', 1);