mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 03:54:04 +02:00
ci: disallow the sizeof function in linter (#4134)
This commit is contained in:
@@ -228,7 +228,7 @@ class PatreonBridge extends BridgeAbstract
|
||||
//post attachments
|
||||
if (
|
||||
isset($post->relationships->attachments->data) &&
|
||||
sizeof($post->relationships->attachments->data) > 0
|
||||
count($post->relationships->attachments->data) > 0
|
||||
) {
|
||||
$item['enclosures'] = [];
|
||||
$item['content'] .= '<hr><p><b>Attachments:</b><ul>';
|
||||
|
Reference in New Issue
Block a user