type hinting javascriptController (#5032)

This commit is contained in:
Luc SANCHEZ
2023-01-21 23:19:26 +01:00
committed by GitHub
parent 4755a12c96
commit 2216940f00

View File

@@ -1,11 +1,11 @@
<?php
class FreshRSS_javascript_Controller extends FreshRSS_ActionController {
public function firstAction() {
public function firstAction(): void {
$this->view->_layout(false);
}
public function actualizeAction() {
public function actualizeAction(): void {
header('Content-Type: application/json; charset=UTF-8');
Minz_Session::_param('actualize_feeds', false);
@@ -16,7 +16,7 @@ class FreshRSS_javascript_Controller extends FreshRSS_ActionController {
$this->view->feeds = $feedDAO->listFeedsOrderUpdate(FreshRSS_Context::$user_conf->ttl_default);
}
public function nbUnreadsPerFeedAction() {
public function nbUnreadsPerFeedAction(): void {
header('Content-Type: application/json; charset=UTF-8');
$catDAO = FreshRSS_Factory::createCategoryDao();
$this->view->categories = $catDAO->listCategories(true, false);
@@ -25,7 +25,7 @@ class FreshRSS_javascript_Controller extends FreshRSS_ActionController {
}
//For Web-form login
public function nonceAction() {
public function nonceAction(): void {
header('Content-Type: application/json; charset=UTF-8');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s \G\M\T'));
header('Expires: 0');