diff options
| author | 2023-03-21 18:57:57 +0100 | |
|---|---|---|
| committer | 2023-03-21 18:57:57 +0100 | |
| commit | 247215ffaa2966919115f283fb67a0096df8dc1c (patch) | |
| tree | 16ff9d0ec502bd95f0a1e2d6b49f853cf963e804 /app/Controllers/entryController.php | |
| parent | e679d3df0e55530c056d701b4773ff7e74f5c82c (diff) | |
Typehint some Controllers (#5106)
* Typehint to Controllers
* Remarque's from Alkarex
* Remarque's from Alkarex
* Remarque's from Alkarex
* Remarque's from Alkarex
* Remarque's from Alkarex
* Remarque's from Alkarex
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Diffstat (limited to 'app/Controllers/entryController.php')
| -rw-r--r-- | app/Controllers/entryController.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php index 165e1437e..d27276cbb 100644 --- a/app/Controllers/entryController.php +++ b/app/Controllers/entryController.php @@ -13,10 +13,10 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { /** * This action is called before every other action in that class. It is - * the common boiler plate for every action. It is triggered by the + * the common boilerplate for every action. It is triggered by the * underlying framework. */ - public function firstAction() { + public function firstAction(): void { if (!FreshRSS_Auth::hasAccess()) { Minz_Error::error(403); } @@ -42,7 +42,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { * - idMax (default: 0) * - is_read (default: true) */ - public function readAction() { + public function readAction(): void { $id = Minz_Request::param('id'); $get = Minz_Request::param('get'); $next_get = Minz_Request::param('nextGet', $get); @@ -133,7 +133,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { * - is_favorite (default: true) * If id is false, nothing happened. */ - public function bookmarkAction() { + public function bookmarkAction(): void { $id = Minz_Request::param('id'); $is_favourite = (bool)Minz_Request::param('is_favorite', true); if ($id !== false) { @@ -157,7 +157,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { * @todo move this action in configure controller. * @todo call this action through web-cron when available */ - public function optimizeAction() { + public function optimizeAction(): void { $url_redirect = array( 'c' => 'configure', 'a' => 'archiving', @@ -185,7 +185,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { * @todo should be a POST request * @todo should be in feedController */ - public function purgeAction() { + public function purgeAction(): void { @set_time_limit(300); $feedDAO = FreshRSS_Factory::createFeedDao(); |
