Fix errors in Model namespace

This commit is contained in:
Art4 2024-12-03 22:46:40 +00:00
parent 06e3051ad1
commit 2c801abb06
6 changed files with 99 additions and 105 deletions

View file

@ -15,6 +15,7 @@ use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\ItemURI;
use Friendica\Network\HTTPException\InternalServerErrorException;
use PDOException;
/**
@ -130,7 +131,7 @@ class User
* @param boolean $blocked Is the contact blocked or unblocked?
* @param boolean $only_set Only set the block flag, don't execute any block transmission
* @return void
* @throws \Exception
* @throws Exception
*/
public static function setBlocked(int $cid, int $uid, bool $blocked, bool $only_set = false)
{
@ -171,7 +172,7 @@ class User
* @param int $uid User ID
*
* @return boolean is the contact id blocked for the given user?
* @throws \Exception
* @throws Exception
*/
public static function isBlocked(int $cid, int $uid): bool
{
@ -212,7 +213,7 @@ class User
* @param int $uid User ID
* @param boolean $ignored Is the contact ignored or unignored?
* @return void
* @throws \Exception
* @throws Exception
*/
public static function setIgnored(int $cid, int $uid, bool $ignored)
{
@ -234,7 +235,7 @@ class User
* @param int $cid Either public contact id or user's contact id
* @param int $uid User ID
* @return boolean is the contact id ignored for the given user?
* @throws \Exception
* @throws Exception
*/
public static function isIgnored(int $cid, int $uid): bool
{
@ -275,7 +276,7 @@ class User
* @param int $uid User ID
* @param boolean $collapsed are the contact's posts collapsed or uncollapsed?
* @return void
* @throws \Exception
* @throws Exception
*/
public static function setCollapsed(int $cid, int $uid, bool $collapsed)
{
@ -293,7 +294,7 @@ class User
* @param int $cid Either public contact id or user's contact id
* @param int $uid User ID
* @return boolean is the contact id blocked for the given user?
* @throws HTTPException\InternalServerErrorException
* @throws InternalServerErrorException
* @throws \ImagickException
*/
public static function isCollapsed(int $cid, int $uid): bool
@ -314,7 +315,7 @@ class User
* @param int $uid User ID
* @param int $frequency Type of post frequency in channels
* @return void
* @throws \Exception
* @throws Exception
*/
public static function setChannelFrequency(int $cid, int $uid, int $frequency)
{
@ -332,7 +333,7 @@ class User
* @param int $cid Either public contact id or user's contact id
* @param int $uid User ID
* @return int Type of post frequency in channels
* @throws HTTPException\InternalServerErrorException
* @throws InternalServerErrorException
* @throws \ImagickException
*/
public static function getChannelFrequency(int $cid, int $uid): int
@ -349,11 +350,11 @@ class User
/**
* Set the channel only value for contact id and user id
*
* @param int $cid Either public contact id or user's contact id
* @param int $uid User ID
* @param int $isChannelOnly Is channel only
* @param int $cid Either public contact id or user's contact id
* @param int $uid User ID
* @param bool $isChannelOnly Is channel only
* @return void
* @throws \Exception
* @throws Exception
*/
public static function setChannelOnly(int $cid, int $uid, bool $isChannelOnly)
{
@ -371,7 +372,7 @@ class User
* @param int $cid Either public contact id or user's contact id
* @param int $uid User ID
* @return bool Contact is channel only
* @throws HTTPException\InternalServerErrorException
* @throws InternalServerErrorException
* @throws \ImagickException
*/
public static function getChannelOnly(int $cid, int $uid): bool
@ -392,7 +393,7 @@ class User
* @param int $uid User ID
* @param boolean $blocked Is the user blocked or unblocked by the contact?
* @return void
* @throws \Exception
* @throws Exception
*/
public static function setIsBlocked(int $cid, int $uid, bool $blocked)
{
@ -410,7 +411,7 @@ class User
* @param int $cid Either public contact id or user's contact id
* @param int $uid User ID
* @return boolean Is the user blocked or unblocked by the contact?
* @throws \Exception
* @throws Exception
*/
public static function isIsBlocked(int $cid, int $uid): bool
{