aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/controllers/History.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-10-13 00:19:03 +0200
committerVirtualTam <virtualtam@flibidi.net>2018-12-02 22:39:16 +0100
commitf211e417bf637b8a83988175c29ee072c69f7642 (patch)
treec33378b38ff1bd16e90934b5c60467a7e0395f53 /application/api/controllers/History.php
parent04ec8fedd91642d4c0fc96258868086b8a51c899 (diff)
downloadShaarli-f211e417bf637b8a83988175c29ee072c69f7642.tar.gz
Shaarli-f211e417bf637b8a83988175c29ee072c69f7642.tar.zst
Shaarli-f211e417bf637b8a83988175c29ee072c69f7642.zip
lint: apply phpcbf to application/
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'application/api/controllers/History.php')
-rw-r--r--application/api/controllers/History.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/application/api/controllers/History.php b/application/api/controllers/History.php
index 5cc453bf..4582e8b2 100644
--- a/application/api/controllers/History.php
+++ b/application/api/controllers/History.php
@@ -35,8 +35,7 @@ class History extends ApiController
35 $offset = $request->getParam('offset'); 35 $offset = $request->getParam('offset');
36 if (empty($offset)) { 36 if (empty($offset)) {
37 $offset = 0; 37 $offset = 0;
38 } 38 } elseif (ctype_digit($offset)) {
39 elseif (ctype_digit($offset)) {
40 $offset = (int) $offset; 39 $offset = (int) $offset;
41 } else { 40 } else {
42 throw new ApiBadParametersException('Invalid offset'); 41 throw new ApiBadParametersException('Invalid offset');