Add PHPStan and other quality checks

Similar to FreshRSS core
Contributes to https://github.com/FreshRSS/Extensions/issues/184
This commit is contained in:
Alexandre Alapetite 2023-11-23 22:41:09 +01:00
parent a86467db48
commit b49596818c
No known key found for this signature in database
GPG key ID: A24378C38E812B23
59 changed files with 1173 additions and 404 deletions

View file

@ -1,6 +1,6 @@
Extension for FressRSS (https://github.com/FreshRSS)
Extension for FressRSS (<https://github.com/FreshRSS>)
It helps to find the feed IDs of each feed.
It helps to find the feed IDs of each feed.
Feed IDs are used f.e. for the search or user queries.

View file

@ -3,7 +3,7 @@
declare(strict_types=1);
class ShowFeedIdExtension extends Minz_Extension {
public function init() {
public function init(): void {
Minz_View::appendScript($this->getFileUrl('showfeedid.js', 'js'));
}
}

View file

@ -1,6 +1,6 @@
'use strict';
const url = new URL(window.location);
const url = new URL(window.location);
if (url.searchParams.get('c') === 'subscription') {
const div = document.querySelector('h1 ~ div');
const button = document.createElement('Button');