summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
2021-11-11Address PHPStan warnings in 'classes/rssutils.php'.wn_
This also includes a minor tweak in 'update.php' to account for 'getopt()' potentially returning false (indicating failure).
2021-11-11Address PHPStan warnings in 'classes/prefs.php'.wn_
2021-11-11Address PHPStan warnings in 'classes/counters.php'.wn_
2021-11-11Fix some additional PHPStan warnings in UrlHelper.wn_
2021-11-10Initial go at PHPStan rule level 6.wn_
2021-11-10add two helper account access levels:Andrew Dolgov
- read only - can't subscribe to more feeds, feed updates are skipped - disabled - can't login define used access levels as UserHelper constants and refactor code to use them instead of hardcoded numbers
2021-11-01Address PHPStan warnings in 'classes/urlhelper.php'.wn_
Intentionally skipping the line 66 one for now; adding an 'is_array' check clears the warning, but there's a larger topic of how to handle an invalid '' that doesn't result in an array. ------ --------------------------------------------------------------------- Line classes/urlhelper.php ------ --------------------------------------------------------------------- 66 Offset 'path' on array{scheme: string} in isset() does not exist. 165 Parameter #2 $associative of function get_headers expects bool, int given. 167 Parameter #2 $associative of function get_headers expects bool, int given. 278 Negated boolean expression is always true. 309 Negated boolean expression is always true. ------ ---------------------------------------------------------------------
2021-11-01Address PHPStan warning in 'classes/pref/users.php'.wn_
------ ------------------------------- Line classes/pref/users.php ------ ------------------------------- 170 If condition is always false. ------ -------------------------------
2021-11-01Address PHPStan warning in 'classes/pref/prefs.php'.wn_
------ ------------------------------------------------ Line classes/pref/prefs.php ------ ------------------------------------------------ 1328 Expression on left side of ?? is not nullable. ------ ------------------------------------------------
2021-11-01Address PHPStan warnings in 'classes/pluginhost.php'.wn_
------ -------------------------------------------------------------------- Line classes/pluginhost.php ------ -------------------------------------------------------------------- 16 Property PluginHost::$last_registered is never read, only written. 386 If condition is always true. ------ --------------------------------------------------------------------
2021-11-01Address PHPStan warning in 'classes/logger/sql.php'.wn_
------ -------------------------------------- Line classes/logger/sql.php ------ -------------------------------------- 4 Property Logger_SQL::$pdo is unused. ------ --------------------------------------
2021-11-01Address PHPStan warning in 'classes/feeds.php'.wn_
------ ------------------------------------ Line classes/feeds.php ------ ------------------------------------ 8 Property Feeds::$params is unused. ------ ------------------------------------
2021-11-01Address PHPStan warning in 'classes/feeditem/common.php'.wn_
------ --------------------------------------------- Line classes/feeditem/common.php ------ --------------------------------------------- 194 No error to ignore is reported on line 194. ------ ---------------------------------------------
2021-11-01Address PHPStan warnings in 'classes/db.php'.wn_
------ -------------------------------------------------- Line classes/db.php ------ -------------------------------------------------- 7 Property Db::$link is unused. 86 Property Db::pdo (PDO) in empty() is not falsy. ------ --------------------------------------------------
2021-11-01Address PHPStan warnings in 'classes/config.php'.wn_
------ ----------------------------------------------------------------------- Line classes/config.php ------ ----------------------------------------------------------------------- 3 Constant Config::_ENVVAR_PREFIX is unused. 177 Constant Config::_DEFAULTS is unused. 237 Property Config::$schema_version is never read, only written. 352 Property Config::$migrations (Db_Migrations) in empty() is not falsy. ------ -----------------------------------------------------------------------
2021-10-26HOOK_ARTICLE_BUTTON/HOOK_ARTICLE_LEFT_BUTTON: only try to parse markup if ↵Andrew Dolgov
its actually there
2021-10-24css: make plugin button container a flexboxAndrew Dolgov
backend: pass plugin button generated code through domdocument to ensure its correctness; set data-plugin-name attribute on children to make them sortable via css
2021-10-22minor phpstan tweaksAndrew Dolgov
2021-10-22pluginhost: update comments for HOOK_ constants to use phpdoc syntax; add ↵Andrew Dolgov
HOOK_PRE_SUBSCRIBE
2021-10-15Fix undefined array key "output" when adding new labelPhilip Klempin
2021-10-15OPML improvements/fixes:Andrew Dolgov
* allow CLI import of OPML files (--opml-import) * visualize OPML structure when importing * add strict type hints to most OPML class methods
2021-10-10feed tree context menu: add an entry to open originating websiteAndrew Dolgov
2021-09-24properly sanitize video poster attributeAndrew Dolgov
2021-09-08OPML: multiple fixesAndrew Dolgov
- remove unused integer indexes when exporting filters as JSON - fix warning when importing filters without rules - properly assign category IDs for category filter rules - fix warning: check if outline attributes like xmlUrl are set before trying to use them - fix warning: don't try to use libxml_disable_entity_loader on PHP 8
2021-09-08classes/opml: fix indentation; when importing, don't produce warningAndrew Dolgov
on filters with no rules defined.
2021-09-02fix label ordering in feed treeAndrew Dolgov
2021-08-25fix password recoveryjmechnich
2021-08-23block useless usort() E_DEPRECATED for the time beingAndrew Dolgov
2021-08-23remove SELF_USER_AGENT custom constant, replaced with configurable ↵Andrew Dolgov
Config::HTTP_USER_AGENT / Config::get_user_agent()
2021-08-23Pref_Feeds:calculate_children_count - fix operator precedenceAndrew Dolgov
2021-08-18fix broken feed tree generation when categories are disabledAndrew Dolgov
2021-08-17Make prefs feed search case-insensitive.wn_
Previously the search query had to match lower title or feed_url (i.e. searching w/ uppercase wouldn't match).
2021-08-17Use ORM more in 'classes/pref/feeds.php'.wn_
2021-07-28fix rendering of category filters on UncategorizedAndrew Dolgov
2021-06-19Rewrite feed entry link as href contentPhilip Klempin
2021-06-18Fix operator precedencePhilip Klempin
2021-06-18revise previous a little bit moreAndrew Dolgov
2021-06-18revise previous a little bitAndrew Dolgov
2021-06-18UrlHelper::rewrite_relative():Andrew Dolgov
- support invoking specifying owner URL element/attribute - restrict mailto/magnet/tel schemes for A href - allow some data: base64 image types for IMG src Sanitizer::sanitize(): - when checking href and src attributes, pass element tagname and attribute to rewrite_relative()
2021-06-17Merge pull request 'Skip all urls with schemes different from base_url in ↵fox
rewrite_relative' (#38) from klempin/tt-rss:fix/mailto into master Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/38
2021-06-16Skip URI base on ALLOWED_RELATIVE_SCHEMES in rewrite_relativePhilip Klempin
2021-06-16add settings profile cloningAndrew Dolgov
2021-05-21UrlHelper::rewrite_relative: don't try to feed NULL to with_trailing_slash()Andrew Dolgov
2021-05-21feeditem_atom: support xml:base for enclosures and entry contentAndrew Dolgov
UrlHelper::rewrite_relative: use base URL path if relative url path is not absolute (experimental)
2021-05-20add hotkeys J/K to move between unread feedsAndrew Dolgov
2021-05-18API: bump api level to 17Andrew Dolgov
2021-05-18provide base configuration object in login response to skip on initial getConfigAndrew Dolgov
2021-05-18Merge branch 'master' of git.tt-rss.org:fox/tt-rssAndrew Dolgov
2021-05-18API: return custom sort types in getConfigAndrew Dolgov
2021-05-11checking for PDO there is rather uselessAndrew Dolgov