Fix PHPStan 'empty() always exists and is not falsy' errors
- Remove redundant empty() checks where variables are guaranteed to exist and be non-falsy
- Replace empty() with simple null/false checks where appropriate
- Maintain original logic while fixing static analysis issues
- Affected files:
- app/Http/Controllers/GroupController.php
- app/Http/Controllers/ProfileAliasController.php
- app/Jobs/ImageOptimizePipeline/ImageUpdate.php
- app/Jobs/InboxPipeline/DeleteWorker.php
- app/Jobs/InboxPipeline/InboxValidator.php
- app/Jobs/InboxPipeline/InboxWorker.php
- app/Jobs/ProfilePipeline/HandleUpdateActivity.php
- app/Rules/ExpoPushTokenRule.php
- app/Services/AutospamService.php
- app/Services/CollectionService.php
- app/Services/NotificationAppGatewayService.php
- app/Services/WebfingerService.php
- app/Util/ActivityPub/Helpers.php
|