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 ace19814d7 - Show all commits

View file

@ -6,7 +6,6 @@
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
*/
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\DI;
@ -149,7 +148,7 @@ function leistungsschutzrecht_is_member_site(string $url): bool
$cleanedurlpart = explode('%', $urldata['host']);
$hostname = explode('.', $cleanedurlpart[0]);
if (empty($hostname)) {
if ($hostname === false || $hostname === '') {
return false;
}