diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-10 14:15:21 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-10 14:15:21 +0200 |
commit | 0135c98b2480d4cc643ba39cbc47e747e2c9e1d4 (patch) | |
tree | bbb8c3268d2035f2aec51883fdbcb18e64420d46 /src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |
parent | 5c3ca4fe9eb1db2fa11c0809c54538430b89b1fc (diff) | |
download | wallabag-0135c98b2480d4cc643ba39cbc47e747e2c9e1d4.tar.gz wallabag-0135c98b2480d4cc643ba39cbc47e747e2c9e1d4.tar.zst wallabag-0135c98b2480d4cc643ba39cbc47e747e2c9e1d4.zip |
Remove int cast
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index fe3495f8..da671a61 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -43,8 +43,8 @@ class WallabagRestController extends FOSRestController | |||
43 | { | 43 | { |
44 | $this->validateAuthentication(); | 44 | $this->validateAuthentication(); |
45 | 45 | ||
46 | $isArchived = (null === $request->query->get('archive')) ? null : (bool) (int) $request->query->get('archive'); | 46 | $isArchived = (null === $request->query->get('archive')) ? null : (bool) $request->query->get('archive'); |
47 | $isStarred = (null === $request->query->get('starred')) ? null : (bool) (int) $request->query->get('starred'); | 47 | $isStarred = (null === $request->query->get('starred')) ? null : (bool) $request->query->get('starred'); |
48 | $sort = $request->query->get('sort', 'created'); | 48 | $sort = $request->query->get('sort', 'created'); |
49 | $order = $request->query->get('order', 'desc'); | 49 | $order = $request->query->get('order', 'desc'); |
50 | $page = (int) $request->query->get('page', 1); | 50 | $page = (int) $request->query->get('page', 1); |