Fix PHPCS ControlSignature (#6896)

Regression from https://github.com/FreshRSS/FreshRSS/pull/6666
We were not checking anymore for whitespace rules in e.g. `if (true) {`
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2024-10-15 10:56:33 +02:00
1 parent 93346bc3b3
commit b552d9f4bc
3 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
}
}
}
if(!empty($headers)) {
if (!empty($headers)) {
$headers = array_filter(array_map('trim', $headers));
$opts[CURLOPT_HTTPHEADER] = array_merge($headers, $opts[CURLOPT_HTTPHEADER] ?? []);
}