fix-phpstan-error-level-1 #1579

Merged
MrPetovan merged 34 commits from MrPetovan/friendica-addons:fix-phpstan-error-level-1 into develop 2024-12-12 22:37:43 +01:00
Showing only changes of commit 50912fdc17 - Show all commits

View file

@ -8,7 +8,6 @@
*
*/
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\DI;
@ -120,6 +119,8 @@ function nsfw_prepare_body_content_filter(&$hook_data)
}
$found = false;
$tag_search = false;
if (count($word_list)) {
$body = $hook_data['item']['title'] . "\n" . nsfw_extract_photos($hook_data['item']['body']);
@ -129,7 +130,6 @@ function nsfw_prepare_body_content_filter(&$hook_data)
continue;
}
$tag_search = false;
switch ($word[0]) {
case '/'; // Regular expression
$found = @preg_match($word, $body);