mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-09-03 13:12:48 +02:00
ci: disallow the sizeof function in linter (#4134)
This commit is contained in:
@@ -63,7 +63,7 @@ class MagellantvBridge extends BridgeAbstract
|
||||
|
||||
// Check whether items exists
|
||||
$article_list = $dom->find('div.articlePreview_preview-card__mLMOm');
|
||||
if (sizeof($article_list) == 0) {
|
||||
if (count($article_list) == 0) {
|
||||
throw new Exception(sprintf('Unable to find css selector on `%s`', $url));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user