]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/api/controllers/Links.php
PSR: use elseif instead of else if
[github/shaarli/Shaarli.git] / application / api / controllers / Links.php
index eb78dd266608d8690a033bf56b78c234514bd1ae..3a9c03553a30fbe5247e48a2a6c30eb4f34e7b51 100644 (file)
@@ -59,9 +59,9 @@ class Links extends ApiController
         $limit = $request->getParam('limit');
         if (empty($limit)) {
             $limit = self::$DEFAULT_LIMIT;
-        } else if (ctype_digit($limit)) {
+        } elseif (ctype_digit($limit)) {
             $limit = intval($limit);
-        } else if ($limit === 'all') {
+        } elseif ($limit === 'all') {
             $limit = count($links);
         } else {
             throw new ApiBadParametersException('Invalid limit');