aboutsummaryrefslogtreecommitdiff
path: root/p/api/greader.php
diff options
context:
space:
mode:
authorGravatar Frans de Jonge <fransdejonge@gmail.com> 2022-01-05 00:52:24 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-05 00:52:24 +0100
commitd339b6dd454d814ffc323fa9077b70e33339c479 (patch)
treebf82e2b4beda3958502465ef76c223175a978afd /p/api/greader.php
parenta6ea90e58b807d18fff601135e3e697b38895ca1 (diff)
[CI] PHPCS: check for opening brace on same line (#4122)
* [CI] PHPCS: check for opening brace on same line * make fix-all * Minor comments Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'p/api/greader.php')
-rw-r--r--p/api/greader.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/p/api/greader.php b/p/api/greader.php
index d233fd957..1d7b1595b 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -49,7 +49,8 @@ if (PHP_INT_SIZE < 8) { //32-bit
* @param string|int $dec
* @return string
*/
- function dec2hex($dec) { //http://code.google.com/p/google-reader-api/wiki/ItemId
+ function dec2hex($dec) {
+ //http://code.google.com/p/google-reader-api/wiki/ItemId
return str_pad(dechex($dec), 16, '0', STR_PAD_LEFT);
}
/**
@@ -81,7 +82,8 @@ function headerVariable($headerName, $varName) {
return isset($pairs[$varName]) ? $pairs[$varName] : null;
}
-function multiplePosts($name) { //https://bugs.php.net/bug.php?id=51633
+function multiplePosts($name) {
+ //https://bugs.php.net/bug.php?id=51633
global $ORIGINAL_INPUT;
$inputs = explode('&', $ORIGINAL_INPUT);
$result = array();
@@ -197,7 +199,8 @@ function authorizationToUser() {
return '';
}
-function clientLogin($email, $pass) { //http://web.archive.org/web/20130604091042/http://undoc.in/clientLogin.html
+function clientLogin($email, $pass) {
+ //http://web.archive.org/web/20130604091042/http://undoc.in/clientLogin.html
if (FreshRSS_user_Controller::checkUsername($email)) {
FreshRSS_Context::initUser($email);
if (FreshRSS_Context::$user_conf == null) {
@@ -247,7 +250,8 @@ function checkToken($conf, $token) {
unauthorized();
}
-function userInfo() { //https://github.com/theoldreader/api#user-info
+function userInfo() {
+ //https://github.com/theoldreader/api#user-info
$user = Minz_Session::param('currentUser', '_');
exit(json_encode(array(
'userId' => $user,
@@ -459,7 +463,8 @@ function quickadd($url) {
}
}
-function unreadCount() { //http://blog.martindoms.com/2009/10/16/using-the-google-reader-api-part-2/#unread-count
+function unreadCount() {
+ //http://blog.martindoms.com/2009/10/16/using-the-google-reader-api-part-2/#unread-count
header('Content-Type: application/json; charset=UTF-8');
$totalUnreads = 0;