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

@ -20,14 +20,14 @@
reading_time.flux = flux_list[i];
reading_time.words_count = reading_time.flux_words_count(flux_list[i]); // count the words
// change this number (in words) to your prefered reading speed:
// change this number (in words) to your preferred reading speed:
reading_time.reading_time = reading_time.calc_read_time(reading_time.words_count, 300);
flux_list[i].dataset.readingTime = reading_time.reading_time;
const li = document.createElement('li');
li.setAttribute('class', 'item date');
li.style.width = "40px";
li.style.width = '40px';
li.style.overflow = 'hidden';
li.style.textAlign = 'right';
li.style.display = 'table-cell';