mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-25 00:35:40 -04:00
Add PHPStan (#4021)
* Add PHPStan #fix https://github.com/FreshRSS/FreshRSS/issues/4016 https://phpstan.org/ ```sh composer run-script phpstan ``` * More fixes * Fix global variables * Add .phtml * Fix merge https://github.com/FreshRSS/FreshRSS/pull/4090 * Fix more warnings * Fix view errors and enable in CI * ReturnTypeWillChange * Dynamic view type * Fix Minz static/self bug
This commit is contained in:
committed by
GitHub
parent
09c84fb3bc
commit
77e9877316
@@ -44,8 +44,8 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
|
||||
* It displays categories and associated feeds.
|
||||
*/
|
||||
public function indexAction() {
|
||||
Minz_View::appendScript(Minz_Url::display('/scripts/category.js?' . @filemtime(PUBLIC_PATH . '/scripts/category.js')));
|
||||
Minz_View::prependTitle(_t('sub.title') . ' · ');
|
||||
FreshRSS_View::appendScript(Minz_Url::display('/scripts/category.js?' . @filemtime(PUBLIC_PATH . '/scripts/category.js')));
|
||||
FreshRSS_View::prependTitle(_t('sub.title') . ' · ');
|
||||
|
||||
$this->view->onlyFeedsWithError = Minz_Request::paramTernary('error');
|
||||
|
||||
@@ -104,7 +104,7 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
|
||||
$feed = $this->view->feeds[$id];
|
||||
$this->view->feed = $feed;
|
||||
|
||||
Minz_View::prependTitle(_t('sub.title.feed_management') . ' · ' . $feed->name() . ' · ');
|
||||
FreshRSS_View::prependTitle(_t('sub.title.feed_management') . ' · ' . $feed->name() . ' · ');
|
||||
|
||||
if (Minz_Request::isPost()) {
|
||||
$user = trim(Minz_Request::param('http_user_feed' . $id, ''));
|
||||
@@ -282,13 +282,13 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
|
||||
* This action displays the bookmarklet page.
|
||||
*/
|
||||
public function bookmarkletAction() {
|
||||
Minz_View::prependTitle(_t('sub.title.subscription_tools') . ' . ');
|
||||
FreshRSS_View::prependTitle(_t('sub.title.subscription_tools') . ' . ');
|
||||
}
|
||||
|
||||
/**
|
||||
* This action displays the page to add a new feed
|
||||
*/
|
||||
public function addAction() {
|
||||
Minz_View::prependTitle(_t('sub.title.add') . ' . ');
|
||||
FreshRSS_View::prependTitle(_t('sub.title.add') . ' . ');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user